-
Notifications
You must be signed in to change notification settings - Fork 128
Adding Multi level commands #1355
Answered
by
tleonhardt
vinaynkaranth
asked this question in
Q&A
-
How can I achieve multi level commands (nested commands) using cmd2?
The command/subcommand hierarchy may look something like this:
show -
module1
counters <args>
parameters
module2
configuration
history
set
module1
parameter <args>
config <args>
Beta Was this translation helpful? Give feedback.
All reactions
Answered by
tleonhardt
Nov 5, 2024
See our subcommands.py example for how to use subcommands. I think that will give you what you want.
Replies: 1 comment
-
See our subcommands.py example for how to use subcommands. I think that will give you what you want.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Answer selected by
tleonhardt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment