Dynamically changing cli prompt #198
Replies: 3 comments 2 replies
-
Thank you for using CLI library, @stephb9959 !
However, if you think it's an important feature, you can fill a new GitHub issue with the request to add a function to change the current prompt shown by the library. (If you like the library, please consider becoming a sponsor by clicking the heart button at the top of this page. You can also donate once.) |
Beta Was this translation helpful? Give feedback.
-
Thanks, @daniele77 ! I am trying to duplicate the behavior you see in Cisco equipment CLI for example. You can enter a menu level and then by entering a device's name, MAC address, or some identifier, the prompt changes to the 'menu name' + 'identifier'. The user now knows that they are dealing with a specific device. The identifier is unpredictable, so you cannot create a menu of that name when you set up the CLI structure. I'll file an issue. |
Beta Was this translation helpful? Give feedback.
-
Fine, it seems a nice feature to have in the library. |
Beta Was this translation helpful? Give feedback.
-
Hi,
great project. I just found this and I love it.
We would like to do something like the following:
I have reviewed the examples and the code and I cannot see an obvious way to do this. Do I need better glasses or this is not available?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions