- update to 3.4.0:
* Moved cmd2-specific printing logic from `Cmd.print_to()` into
`Cmd2BaseConsole.print()` and
* `Cmd2BaseConsole.log()`. This removes need to pass a console
object to `Cmd.print_to()`.
* Addressed a bug in `rich.console.Console` where complex
renderables (like `Table` and `Rule`) may not receive
formatting settings passed to `console.print()` and
`console.log()`.
* Renamed the `destination` parameter of `Cmd.print_to()` back
to `file` since you can no longer pass in a console.
* Added ability to pass a console object to `Cmd.print_to()`.
This provides support for things like wrapping a `print_to()`
call in a `console.status()` or `console.capture()` context
manager.
* Renamed the `file` parameter of `Cmd.print_to()` to
`destination` to support file-like objects and console objects.
* `Cmd2BaseConsole(file)` argument is now a keyword-only
argument to be consistent with the `rich.console.Console` class.
OBS-URL: https://build.opensuse.org/request/show/1339303
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=56
Description
No description provided
Languages
Diff
100%