Skip to content

Commit 27e28fb

Browse files
committed
Merge branch 'main' into async_alert
2 parents 0f647bb + 4530544 commit 27e28fb

47 files changed

Lines changed: 119 additions & 1302 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ cmd2/py_bridge.py @kmvanbrunt
4444
cmd2/rich_utils.py @kmvanbrunt
4545
cmd2/string_utils.py @kmvanbrunt
4646
cmd2/styles.py @tleonhardt @kmvanbrunt
47-
cmd2/transcript.py @tleonhardt
4847
cmd2/utils.py @tleonhardt @kmvanbrunt
4948

5049
# Documentation

.pre-commit-config.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ repos:
66
- id: check-merge-conflict
77
- id: check-toml
88
- id: end-of-file-fixer
9-
exclude: ^examples/transcripts/
109
- id: trailing-whitespace
11-
exclude: ^examples/transcripts/
1210

1311
- repo: https://github.com/astral-sh/ruff-pre-commit
14-
rev: "v0.15.1"
12+
rev: "v0.15.2"
1513
hooks:
1614
- id: ruff-format
1715
args: [--config=ruff.toml]

CHANGELOG.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ frustrating developer and user experience due to small inconsistencies in these
1111
libraries. Now we have consistent cross-platform support for tab-completion, user terminal input,
1212
and history. Additionally, this opens up some cool advanced features such as support for syntax
1313
highlighting of user input while typing, auto-suggestions similar to those provided by the fish
14-
shell, and the option for a persistent bottom bar that can display realtime status updates.
14+
shell, and the option for a persistent bottom bar that can display realtime status updates while the
15+
prompt is displayed.
1516

1617
### Details
1718

@@ -21,6 +22,13 @@ shell, and the option for a persistent bottom bar that can display realtime stat
2122
each platform and provided utility functions related to `readline`
2223
- Added a dependency on `prompt-toolkit` and a new `cmd2.pt_utils` module with supporting
2324
utilities
25+
- Removed **Transcript Testing** feature set along with the `history -t` option for generating
26+
transcript files and the `cmd2.transcript` module
27+
- This was an extremely brittle regression testing framework which should never have been
28+
built into cmd2
29+
- We recommend using [pytest](https://docs.pytest.org/) for unit and integration tests and
30+
[Robot Framework](https://robotframework.org/) for acceptance tests. Both of these
31+
frameworks can be used to create tests which are far more reliable and less brittle.
2432
- Async specific: `prompt-toolkit` starts its own `asyncio` event loop in every `cmd2`
2533
application
2634
- Removed `cmd2.Cmd.terminal_lock` as it is no longer required to support things like
@@ -69,6 +77,20 @@ shell, and the option for a persistent bottom bar that can display realtime stat
6977
- **max_column_completion_results**: (int) the maximum number of completion results to
7078
display in a single column
7179

80+
## 3.2.2 (February 21, 2026)
81+
82+
- Bug Fixes
83+
- Updated `rich_utils.ANSI_STYLE_SEQUENCE_RE` to only match ANSI SGR (Select Graphic Rendition)
84+
sequences for text styling. It previously also matched DEC Private Mode sequences.
85+
86+
## 3.2.1 (February 21, 2026)
87+
88+
- Bug Fixes
89+
- The `async_alert` and `async_prompt_update` methods of `cmd2.Cmd` now respect the current
90+
value of the `allow_style` settable
91+
- If `allow_style` is `NEVER`, all style-related ANSI escape codes will be stripped to
92+
ensure plain text output
93+
7294
## 3.2.0 (February 5, 2026)
7395

7496
- Bug Fixes

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ command line argument parsing and execution of cmd2 scripting.
7777
- Text file scripting of your application with `run_script` (`@`) and `_relative_run_script` (`@@`)
7878
- Powerful and flexible built-in Python scripting of your application using the `run_pyscript`
7979
command
80-
- Transcripts for use with built-in regression can be automatically generated from `history -t` or
81-
`run_script -t`
8280

8381
## Installation
8482

0 commit comments

Comments
 (0)