cmd2 icon indicating copy to clipboard operation
cmd2 copied to clipboard

cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python

Results 42 cmd2 issues
Sort by recently updated
recently updated
newest added

Hi all, I am wondering how disable any parsing of redirection commands. I am aware of the feature `allow_redirection`. If set to `False`, redirection symbols and whatever follows are ignored....

Hello all, I am looking for some help in formatting the help text automatically generated by the cmd2. I have a program which produces a help message as follows: ```...

The current type signature of `with_default_category` is: ```python def with_default_category(category: str, *, heritable: bool = True) -> Callable[[Type['CommandSet']], Type['CommandSet']]: ``` as a result, type analyzers such as pyright may treat...

The lzma library may be missing in some environments as it is an optional dependency [1]. Fall back to bz2 in this instance. [1] https://devguide.python.org/getting-started/setup-building/

# Steps to Reproduce 1. Run the following cmd2 application: ```py import cmd2 class FirstApp(cmd2.Cmd): """A simple cmd2 application.""" def do_hello_world(self, _: cmd2.Statement): self.poutput('Hello World') if __name__ == '__main__': import...

# Steps to Reproduce Color reset sequences (reset foreground, reset background), etc. do not work on Windows when using `async_alert`. Given the following (baseline) code: ```py from cmd2 import Cmd,...

# Version Info Here is my version info. - `python: 3.12.4` - `cmd2: 2.4.3` - `windows: Windows 11` - `powershell: 7.4.5` # Issue I'm using `cmd2` to create an interative...

The default recommendation from python seems to be `hatch` now. It has impressive features including declaring build/test configurations and managing venv environments. In my trial of it on a couple...

[rich-argparse](https://github.com/hamdanal/rich-argparse) is a `rich` help formatter for `argparse`. It formats `argparse` help using [rich](https://pypi.org/project/rich). `rich-argparse` improves the look and readability of argparse's help while requiring minimal changes to the code....

enhancement

In Osmocom, we use [cmd2](https://github.com/python-cmd2/cmd2) in [pysim](https://gitea.osmocom.org/sim-card/pysim) — command-line tools for SIM/UICC/USIM/ISIM card analysis and programming. For documentation, we rely on [sphinx](https://github.com/sphinx-doc/sphinx) together with [sphinx-argparse](https://github.com/osmocom/sphinx-argparse) to auto-generate docs for each...