Skip to content

Commit 7b73a1d

Browse files
committed
Addressed PR comments.
1 parent 3ee5666 commit 7b73a1d

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ prompt is displayed.
7979
- **pre_prompt**: hook method that is called before the prompt is displayed, but after
8080
`prompt-toolkit` event loop has started
8181
- **read_secret**: read secrets like passwords without displaying them to the terminal
82+
- **ppretty**: a cmd2-compatible replacement for `rich.pretty.pprint()`
8283
- New settables:
8384
- **max_column_completion_results**: (int) the maximum number of completion results to
8485
display in a single column
@@ -88,7 +89,6 @@ prompt is displayed.
8889
- Add support for Python 3.15 by fixing various bugs related to internal `argparse` changes
8990
- Added `common_prefix` method to `cmd2.string_utils` module as a replacement for
9091
`os.path.commonprefix` since that is now deprecated in Python 3.15
91-
- Added `Cmd.ppretty()` as a cmd2-compatible replacement for `rich.pretty.pprint()`.
9292

9393
## 3.4.0 (March 3, 2026)
9494

examples/pretty_print.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"age": 30,
99
"address": {"street": "123 Main St", "city": "Anytown", "state": "CA"},
1010
"hobbies": ["reading", "hiking", "coding", "cooking", "running", "painting", "music", "photography", "cycling"],
11+
"member": True,
12+
"vip": False,
13+
"phone": None,
1114
}
1215

1316

0 commit comments

Comments
 (0)