File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 9
9
- id : trailing-whitespace
10
10
11
11
- repo : https://github.com/astral-sh/ruff-pre-commit
12
- rev : " v0.13.1 "
12
+ rev : " v0.13.2 "
13
13
hooks :
14
14
- id : ruff-format
15
15
args : [--config=ruff.toml]
Original file line number Diff line number Diff line change @@ -52,6 +52,12 @@ time reading the [rich documentation](https://rich.readthedocs.io/).
52
52
- Fixed a redirection bug where ` cmd2 ` could unintentionally overwrite an application's
53
53
` sys.stdout `
54
54
55
+ - Migration Aids - these will help you iteratively migrate to ` cmd2 ` 3.x in stages
56
+ - Published new [ cmd2-ansi] ( https://pypi.org/project/cmd2-ansi/ ) module which is a backport of
57
+ the ` cmd2.ansi ` module present in ` cmd2 ` 2.7.0
58
+ - Published new [ cmd2-table] ( https://pypi.org/project/cmd2-table/ ) module which is a backport of
59
+ the ` cmd2.table_creator ` module present in ` cmd2 ` 2.7.0
60
+
55
61
## 2.7.0 (June 30, 2025)
56
62
57
63
- Enhancements
Original file line number Diff line number Diff line change @@ -20,6 +20,18 @@ The functionality within the `cmd2.ansi` module has either been removed or chang
20
20
` rich ` and moved to one of the new modules: [ cmd2.string_utils] [ ] , [ cmd2.styles] [ ] , or
21
21
[ cmd2.terminal_utils] [ ] .
22
22
23
+ To ease the migration path from ` cmd2 ` 2.x to 3.x, we have created the ` cmd2-ansi ` module which is a
24
+ backport of the ` cmd2.ansi ` module present in ` cmd2 ` 2.7.0 in a standalone fashion. Relevant links:
25
+
26
+ - PyPI: [ cmd2-ansi] ( https://pypi.org/project/cmd2-ansi/ )
27
+ - GitHub: [ cmd2-ansi] ( https://github.com/python-cmd2/cmd2-ansi )
28
+
29
+ To use this backport:
30
+
31
+ ``` Python
32
+ from cmd2_ansi import ansi
33
+ ```
34
+
23
35
#### table_creator
24
36
25
37
The ` cmd2.table_creator ` module no longer exists. Please see rich's documentation on
@@ -31,6 +43,19 @@ demonstrates how to use `rich` tables in a `cmd2` application.
31
43
offered. We apologize for this backwards incompatibility, but the APIs were fundamentally different
32
44
and we could not figure out a way to create a backwards-compatibility wrapper.
33
45
46
+ To ease the migration path from ` cmd2 ` 2.x to 3.x, we have created the ` cmd2-table ` module which is
47
+ a backport of the ` cmd2.table_creator ` module present in ` cmd2 ` 2.7.0 in a standalone fashion.
48
+ Relevant links:
49
+
50
+ - PyPI: [ cmd2-table] ( https://pypi.org/project/cmd2-table/ )
51
+ - GitHub: [ cmd2-table] ( https://github.com/python-cmd2/cmd2-table )
52
+
53
+ To use this backport:
54
+
55
+ ``` Python
56
+ from cmd2_table import table_creator
57
+ ```
58
+
34
59
### Added modules
35
60
36
61
#### colors
You can’t perform that action at this time.
0 commit comments