Cmd2

Latest version: v2.4.3

Safety actively analyzes 621907 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 15

2.4.2

* Enhancements
* Updated argparse decorator to remove annotations when the docstring is used for a command's help text.
* Updated unit test to be Python 3.11 compliant.

2.4.1

* Bug Fixes
* Fixed value for `ansi.Bg.YELLOW`.
* Fixed unit tests for `ansi.allow_style`.
* Enhancements
* `async_alert()` raises a `RuntimeError` if called from the main thread.

2.4.0

* Bug Fixes
* Fixed issue in `ansi.async_alert_str()` which would raise `IndexError` if prompt was blank.
* Fixed issue where tab completion was quoting argparse flags in some cases.
* Enhancements
* Added broader exception handling when enabling clipboard functionality via `pyperclip`.
* Added `PassThroughException` to `__init__.py` imports.
* cmd2 now uses pyreadline3 when running any version of Python on Windows
* Improved memory usage in certain use cases of tables (e.g. nested colored tables)
* Deletions (potentially breaking changes)
* Deleted `cmd2.fg` and `cmd2.bg` which were deprecated in 2.3.0. Use `cmd2.Fg` and `cmd2.Bg` instead.

2.3.3

* Enhancements
* Added clearer exception handling to `BorderedTable` and `SimpleTable`.

2.3.2

* Bug Fixes
* Fixed issue where a `ns_provider` could be passed `None` instead of its correct `cmd2.Cmd` or `CommandSet` value.

2.3.1

* Bug Fixes
* Fixed issue introduced in 2.3.0 with `AlternatingTable`, `BorderedTable`, and `SimpleTable` that caused
header alignment settings to be overridden by data alignment settings.
* Enhancements
* `CompletionItems` now saves the original object from which it creates a string.
* Using `CompletionItems` as argparse choices is fully supported. `cmd2` patched `argparse` to compare input to
the original value instead of the `CompletionItems` instance.
* `ArgparseCompleter` now does the following if a list of `CompletionItems` was created with numerical types:
* Sorts completion hints numerically
* Right-aligns the left-most column in completion hint table

Page 1 of 15

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.