Revisions of python-cmd2
Dominique Leuenberger (dimstar_suse)
accepted
request 1061746
from
Dirk Mueller (dirkmueller)
(revision 46)
- update to 2.4.3: * Fixed ValueError caused when passing `Cmd.columnize()` strings wider than `display_width`. * Renamed `utils.str_to_bool()` -> `utils.to_bool()`. * Enhanced `utils.to_bool()` so that it accepts and converts `bool`, `int`, and `float` in addition to `str`.
Dominique Leuenberger (dimstar_suse)
accepted
request 998089
from
Dirk Mueller (dirkmueller)
(revision 45)
Dominique Leuenberger (dimstar_suse)
accepted
request 980775
from
Dirk Mueller (dirkmueller)
(revision 44)
- update to 2.4.1: * Fixed value for `ansi.Bg.YELLOW`. * Fixed unit tests for `ansi.allow_style`. * `async_alert()` raises a `RuntimeError` if called from the main thread.
Dominique Leuenberger (dimstar_suse)
accepted
request 960149
from
Dirk Mueller (dirkmueller)
(revision 43)
Dominique Leuenberger (dimstar_suse)
accepted
request 941446
from
Factory Maintainer (factory-maintainer)
(revision 42)
Automatic submission by obs-autosubmit
Dominique Leuenberger (dimstar_suse)
accepted
request 936100
from
Dirk Mueller (dirkmueller)
(revision 41)
- update to 2.3.2: * Fixed issue where a `ns_provider` could be passed `None` instead of its correct `cmd2.Cmd` or `CommandSet` value. * Fixed issue introduced in 2.3.0 with `AlternatingTable`, `BorderedTable`, and `SimpleTable` that caused header alignment settings to be overridden by data alignment settings. * `CompletionItems` now saves the original object from which it creates a string. * Using `CompletionItems` as argparse choices is fully supported. * `ArgparseCompleter` now does the following if a list of `CompletionItems` was created with numerical types: * Fixed `AttributeError` in `rl_get_prompt()` when prompt is `None`. * Fixed bug where using choices on a Settable didn't verify that a valid choice had been entered. * Fixed bug introduced in cmd2 2.0.0 in which `select()` converts return values to strings. * Added settings to Column class which prevent a table from overriding existing styles in header and/or data text. This allows for things like nesting an AlternatingTable in another AlternatingTable. * AlternatingTable no longer automatically applies background color to borders. This was done to improve appearance since the background color extended beyond the borders of the table. * Added ability to colorize all aspects of `AlternatingTable`, `BorderedTable`, and `SimpleTable`. * Added support for 8-bit/256-colors with the `cmd2.EightBitFg` and `cmd2.EightBitBg` classes. * Added support for 24-bit/RGB colors with the `cmd2.RgbFg` and `cmd2.RgbBg` classes. * Removed dependency on colorama. * Changed type of `ansi.allow_style` from a string to an `ansi.AllowStyle` Enum class. * To support the color upgrade, all cmd2 colors now inherit from either `ansi.FgColor` or `ansi.BgColor`. Therefore, `ansi.style()` no longer accepts colors as strings.
Dominique Leuenberger (dimstar_suse)
accepted
request 925761
from
Dirk Mueller (dirkmueller)
(revision 40)
- update to 2.2.0: * Fixed extra space appended to each alias by "alias list" command * New function `set_default_ap_completer_type()` * Added `ArgumentParser.get_ap_completer_type()` and `ArgumentParser.set_ap_completer_type()`. * Added `ap_completer_type` keyword arg to `Cmd2ArgumentParser.__init__()` which saves a call to `set_ap_completer_type()`. This keyword will also work with `add_parser()` when creating subcommands if the base command's parser is a `Cmd2ArgumentParser`. * New function `register_argparse_argument_parameter()` * Using `SimpleTable` in the output for the following commands * Tab completion of `CompletionItems` now includes divider row * Removed `--verbose` flag from set command since descriptions always show now. * All cmd2 built-in commands now populate `self.last_result`. * Argparse tab completer will complete remaining flag names if there are no more positionals to complete. * Updated `async_alert()` to account for `self.prompt` not matching Readline's current prompt. * Deleted ``set_choices_provider()`` and ``set_completer()`` which were deprecated in 2.1.2
Dominique Leuenberger (dimstar_suse)
accepted
request 906726
from
Dirk Mueller (dirkmueller)
(revision 39)
- update to 2.1.2: * Added the following accessor methods for cmd2-specific attributes to the `argparse.Action` class * `get_choices_callable()` * `set_choices_provider()` * `set_completer()` * `get_descriptive_header()` * `set_descriptive_header()` * `get_nargs_range()` * `set_nargs_range()` * `get_suppress_tab_hint()` * `set_suppress_tab_hint()` * Now that `set_choices_provider()` and `set_completer()` have been added as methods to the `argparse.Action` class, the standalone functions of the same name will be removed in version 2.2.0. To update to the new convention, do the following: * Change `set_choices_provider(action, provider)` to `action.set_choices_provider(provider)` * Change `set_completer(action, completer)` to `action.set_completer(completer)` * Fixed handling of argparse's default options group name which was changed in Python 3.10 * Restored `plugins` and `tests_isolated` directories to tarball published to PyPI for `cmd2` release
Dominique Leuenberger (dimstar_suse)
accepted
request 888419
from
Dirk Mueller (dirkmueller)
(revision 36)
Dominique Leuenberger (dimstar_suse)
accepted
request 850944
from
Dirk Mueller (dirkmueller)
(revision 34)
- update to 1.4.0: * Fixed tab completion crash on Windows * Changed how multiline doc string help is formatted to match style of other help messages
Dominique Leuenberger (dimstar_suse)
accepted
request 847331
from
Dirk Mueller (dirkmueller)
(revision 33)
- update to 1.3.8: * a few hundred changes, see included CHANGELOG.md for details
Dominique Leuenberger (dimstar_suse)
accepted
request 811458
from
Tomáš Chvátal (scarabeus_iv)
(revision 32)
- Do not restrict pytest4 as it works quite fine with pytest5
Dominique Leuenberger (dimstar_suse)
accepted
request 780065
from
Dirk Mueller (dirkmueller)
(revision 31)
- go back to 0.8.9, cliff (which is the only user) is not compatible with >= 0.9.0 atm - Same commit like december, november and october last year.
Dominique Leuenberger (dimstar_suse)
accepted
request 760618
from
Matej Cepl (mcepl)
(revision 30)
- 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()
Dominique Leuenberger (dimstar_suse)
accepted
request 750700
from
Dirk Mueller (dirkmueller)
(revision 29)
- Fix up dependencies and everything after last update to 0.9.20
Dominique Leuenberger (dimstar_suse)
accepted
request 748740
from
Matej Cepl (mcepl)
(revision 28)
- Update to 0.9.20: - the list of changes is too long, complete changelog is in CHANGELOG.md included in this package. - Package is python3-only now. - go back to 0.8.9, cliff (which is the only user) is not compatible with >= 0.9.0 atm
Dominique Leuenberger (dimstar_suse)
accepted
request 730677
from
Tomáš Chvátal (scarabeus_iv)
(revision 27)
- Update to 0.9.16: * Fixed inconsistent parsing/tab completion behavio * Create directory for the persistent history file if it does not already exist * Aliases and macros can no longer have the same name as a command
Displaying revisions 1 - 20 of 46