abiosoft / ishell

Library for creating interactive cli applications.
MIT License
1.68k stars 195 forks source link

Example of multiple level subcommands #145

Closed mike-pittelko closed 3 years ago

mike-pittelko commented 3 years ago

I'd like to implement something more complex than a simple one level command set, for example. Subcommands and help are listed as completed in the roadmap, but it's not clear how to make this work. Is there a simple example that could be added?

I'm trying to accomplish something like this:

>>> help
a
b
c
>>> a
does something
>>> c
c >>>  help
d
e
..
c >>> e
does something
c >>>  ..
>>> help
a
b
c
mike-pittelko commented 3 years ago

Found the example I needed in branch v2. Thanks for the good work!