cmd2
cmd2 copied to clipboard
cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python
I'd like to run some type conversion on a few arguments inside a command set, but it needs access to `self`. If I simply add the methods as the `type`...
Hi, I like to use docopt for simple scripts. I wrote an integration with Cmd2 yearas ago and have been using it at work. I only noticed recently that there...
It would be nice to have a supported way to disable clipboard feature altogether. Purpose: Bypass checks and save a few milliseconds startup time (up to 400ms on systems I...
use pybridge to capture stderr when running transcripts as tests. Think this addresses at least part of #1185, as stderr is part of the comparison. But this does not address...
Hello team, Cool project! for the history part, it's working well, except when it's an "unrecognized" command, it would be nice to log/persist the history of those failed commands, or...
I found my usage of Cmd2 to be enhanced by using [rich](https://rich.readthedocs.io/en/stable/introduction.html) to format exceptions. ```python class RichCmd(cmd2.Cmd): def __init__(self): super().__init__() self.console=Console() [-] def pexcept(self, msg: Any, *, end: str...
```Python import sys from cmd2 import cmd2 instance_1 = cmd2.Cmd() instance_2 = cmd2.Cmd() sys.exit(instance_2.cmdloop()) ``` With this program, run `alias -h`. The subcommand help gets repeated. ```subcommands: SUBCOMMAND create create...
Filing as a separate issue, but related to #1185 and #1207. Currently run_script also suffers from not seeing the error caused by a command that doesn't exist. A similar issue...
Quack, I'm using cmd2 2.3.3 on Python 3.9.9 on Debian unstable. I am trying to test my application using transcripts. Depending on the gravity of the situation it uses `pwarning()`...
Currently the only way to handle a SIGINT is overriding `sigint_handler()` in the `cmd2.Cmd` main class. We now have CommandSets, allowing different sets of functionality to be written in relative...