Overview

Request 760618 accepted

- Update to 0.9.22:
- Fixed bug where a redefined ansi.style_error was not being
used in all cmd2 files
- Enabled line buffering when redirecting output to a file
- Added align_left(), align_center(), and align_right() to
utils.py. All 3 of these functions support ANSI escape
sequences and characters with display widths greater than 1.
They wrap align_text() which is also in utils.py.
- Fixed bug where pipe processes were not being stopped by Ctrl-C
- Added exception handling to account for non-standard Python
environments in which readline is not loaded dynamically from
a shared library file
- Added read_input() function that is used to read from stdin.
Unlike the Python built-in input(), it also has an argument
to disable tab completion while input is being entered.
- Added capability to override the argument parser class used
by cmd2 built-in commands. See override_parser.py example for
more details.
- Added end argument to pfeedback() to be consistent with the
other print functions like poutput().
- Added apply_style to pwarning().
- For consistency between all the print functions:
- Made end and chop keyword-only arguments of ppaged()
- end is always added to message in ppaged()

Loading...
Request History
Matej Cepl's avatar

mcepl created request

- Update to 0.9.22:
- Fixed bug where a redefined ansi.style_error was not being
used in all cmd2 files
- Enabled line buffering when redirecting output to a file
- Added align_left(), align_center(), and align_right() to
utils.py. All 3 of these functions support ANSI escape
sequences and characters with display widths greater than 1.
They wrap align_text() which is also in utils.py.
- Fixed bug where pipe processes were not being stopped by Ctrl-C
- Added exception handling to account for non-standard Python
environments in which readline is not loaded dynamically from
a shared library file
- Added read_input() function that is used to read from stdin.
Unlike the Python built-in input(), it also has an argument
to disable tab completion while input is being entered.
- Added capability to override the argument parser class used
by cmd2 built-in commands. See override_parser.py example for
more details.
- Added end argument to pfeedback() to be consistent with the
other print functions like poutput().
- Added apply_style to pwarning().
- For consistency between all the print functions:
- Made end and chop keyword-only arguments of ppaged()
- end is always added to message in ppaged()


Factory Auto's avatar

factory-auto added opensuse-review-team as a reviewer

Please review sources


Factory Auto's avatar

factory-auto accepted review

Check script succeeded


Saul Goodman's avatar

licensedigger accepted review

ok


Dominique Leuenberger's avatar

dimstar accepted review


Dominique Leuenberger's avatar

dimstar_suse set openSUSE:Factory:Staging:F as a staging project

Being evaluated by staging project "openSUSE:Factory:Staging:F"


Dominique Leuenberger's avatar

dimstar_suse accepted review

Picked "openSUSE:Factory:Staging:F"


Dominique Leuenberger's avatar

dimstar_suse accepted review

Staging Project openSUSE:Factory:Staging:F got accepted.


Dominique Leuenberger's avatar

dimstar_suse approved review

Staging Project openSUSE:Factory:Staging:F got accepted.


Dominique Leuenberger's avatar

dimstar_suse accepted request

Staging Project openSUSE:Factory:Staging:F got accepted.

openSUSE Build Service is sponsored by