ishell
ishell copied to clipboard
Create shell environments with Python
```python from ishell.command import Command class SetTimezoneCommand(Command): command_list = ['Africa/Dakar', 'Africa/Conakry'] def args(self): return self.command_list def run(self, line): pass ``` ```console linux@louis$ python myshell.py >>>>>>>>>>>>>Hello
Apologies if this isn't an appropriate use of the issue tracker. I'm new at this... I came across ishell recently and it looks very nice! Seems like a good fit...
Fixes #16 I added this feature by using gnu readline's bind feature to map ? to press Enter. But I needed to differentiate normal Enter and ? Enter, so that...
auto-complete cannot differentiate between similar sub-commands Signed-off-by: Faseela K
It would be nice to be able to allow arbitrary arguments in command sequences. For example for your example Cisco-like CLI... interface encapsulation dot1ad dot1q The arbitrary elements could be...
It would be useful to have visibility into the command line being completed in Command.args(). For instance, if you wanted to do bash-style path completion, you could simply: ``` Python...
Hi, it would be great if you press key "?" and trigger a help function, similar to Cisco IOS.
Every command should have a "help" dynamic arg, that displays a help text (Maybe the same text as in the help statement in the command definition).