Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically change menu prompt #199

Open
stephb9959 opened this issue Apr 4, 2023 · 0 comments
Open

Dynamically change menu prompt #199

stephb9959 opened this issue Apr 4, 2023 · 0 comments
Assignees

Comments

@stephb9959
Copy link

Hi,

I am looking for a way to change the menu prompt dynamically during the use of the CLI. This is to mimic the behavior of CLIs by companies like Cisco/Juniper/etc. In those CLIs, when you enter a menu, you can select a device identifier for example, and the menu prompt now changes to include the device identifier. That signifies to the user that you have chosen a specific device to work with.

Here is an example:

cli> modify 11:22:33:44:55:66
modify 11:22:33:44:55:66> set name router1
modify 11:22:33:44:55:66> set DNS 8.8.8.8
modify 11:22:33:44:55:66> save
cli> 

I hope that this helps.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants