119 Commits

Author SHA256 Message Date
a0d92b1b05 Accepting request 1333674 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1333674
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=54
2026-02-18 16:04:30 +00:00
49de21c168 - Update to 3.2.0
* cmd2 now has a dependency on rich for rich text and pretty formatting
    in the terminal. Previously, cmd2 had a large amount of custom code
    for this purpose that predated the existence of rich.
  * Removed the legacy table_creator.py module in favor of rich tables
  * Moved most string-related functions from utils.py and ansi.py to
    string_utils.py
  * Added colors.py and styles.py to provide easy access to rich color
    names
  * cmd2 no longer has a dependency on cmd and cmd2.Cmd no longer inherits
    from cmd.Cmd
  * Fixed incompatibilities with Python 3.14.3.
  * To avoid future incompatibilities with argparse, we removed most of
    our overridden help functions.
  * Many more potentially breaking changes, see CHANGELOG.md

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=112
2026-02-18 08:08:34 +00:00
416273b62b Accepting request 1303569 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1303569
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=53
2025-09-11 12:38:09 +00:00
13d6018334 Accepting request 1303211 from home:mcalabkova:branches:devel:languages:python
- Update to 2.7.0
  * removed support for Python 3.8
  * Added support for Python 3.14
  * Added new Cmd.ppretty() method for pretty printing arbitrary
    Python data structures
  * Clarified help text for -t/--transcript argument to the history
    command
  * Added explicit support for free-threaded versions of Python,
    starting with version 3.14
  * Integrated rich-argparse with cmd2's default argparse help
    formatter (Cmd2HelpFormatter).

OBS-URL: https://build.opensuse.org/request/show/1303211
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=110
2025-09-10 09:11:38 +00:00
15ca2c9bb3 Accepting request 1290634 from devel:languages:python
- update to 2.5.11:
  * Fixed duplicated parameter tables in API documentation.
  * Fixed docstring style for MkDocs API documentation so
    parameters are displayed properly.
  * Fixed 'index out of range' error when passing no arguments to
    an argparse-based command function.

  * Added `ArgumentParser.get_ap_completer_type()` and
  * Fixed bug where AutoCompleter was not distinguishing between a negative number and a flag
  * Fixed bug where AutoCompleter did not handle -- the same way argparse does (all args after -- are non-options)
  * The ``preparse``, ``postparsing_precmd``, and ``postparsing_postcmd`` methods *deprecated* in the previous release
    * Fixed bug in parsing of multiline commands where matching quote is on another line
- update to 0.6.5.1:

OBS-URL: https://build.opensuse.org/request/show/1290634
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=52
2025-07-06 15:03:49 +00:00
cf0465200b - update to 2.5.11:
* Fixed duplicated parameter tables in API documentation.
  * Fixed docstring style for MkDocs API documentation so
    parameters are displayed properly.
  * Fixed 'index out of range' error when passing no arguments to
    an argparse-based command function.
  * Added `ArgumentParser.get_ap_completer_type()` and
  * Fixed bug where AutoCompleter was not distinguishing between a negative number and a flag
  * Fixed bug where AutoCompleter did not handle -- the same way argparse does (all args after -- are non-options)
  * The ``preparse``, ``postparsing_precmd``, and ``postparsing_postcmd`` methods *deprecated* in the previous release
    * Fixed bug in parsing of multiline commands where matching quote is on another line
- update to 0.6.5.1:

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=108
2025-07-04 09:05:31 +00:00
249172a04b Accepting request 1232033 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1232033
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=51
2024-12-19 20:40:14 +00:00
7c3e7ce1f2 Accepting request 1231942 from home:mnhauke
- Update to version 2.5.8
  Bug Fixes
  * Rolled back undocumented changes to printing functions
    introduced in 2.5.0.

OBS-URL: https://build.opensuse.org/request/show/1231942
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=106
2024-12-19 08:21:07 +00:00
367d525a7a Accepting request 1226013 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1226013
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=50
2024-11-26 19:55:21 +00:00
46cbc20cb7 Accepting request 1225968 from home:mnhauke
- Update to version 2.5.7
  * Fixed issue where argument parsers for overridden commands
    were not being created..
  * Fixed issue where Cmd.ppaged() was not writing to the passed
    in destination.

OBS-URL: https://build.opensuse.org/request/show/1225968
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=104
2024-11-23 22:32:42 +00:00
77cce8793f Accepting request 1224394 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1224394
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=49
2024-11-15 14:38:22 +00:00
81e45d0256 Accepting request 1224302 from home:mnhauke
- Update to version 2.5.6
  * Fixed type hint for with_default_category decorator which
    caused type checkers to mistype a subclass of CommandSet as a
    plain CommandSet.
- Update to version 2.5.5
  * Fixed type hints for passing a class method to with_argparser
    and as_subcommand_to.
  * Fixed issue where set command was not always printing a
    settable's current value.

OBS-URL: https://build.opensuse.org/request/show/1224302
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=102
2024-11-15 08:40:30 +00:00
b911f36b82 Accepting request 1222604 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1222604
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=48
2024-11-09 19:52:46 +00:00
d049e7ea01 Accepting request 1222510 from home:mnhauke
- Update to versino 2.5.4
  * Fixed ZeroDivisionError in async_alert() when
    shutil.get_terminal_size().columns is 0.
- Update to version 2.5.3
  * Changed CommandSet._cmd to a read-only property which never
    returns None because it is meant to be called after the
    CommandSet is registered. This addresses type checker errors
    that occurred if CommandSet._cmd wasn't cast or checked if
    None before use.

OBS-URL: https://build.opensuse.org/request/show/1222510
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=100
2024-11-07 23:51:59 +00:00
cb1008e97b Accepting request 1221615 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1221615
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=47
2024-11-06 15:49:23 +00:00
503c0961fd Accepting request 1221253 from home:mnhauke
- Update to version 2.5.2
  * Fixed default pytest execution when not using cmd2's custom
    invoke command via inv pytest.
- Update to version 2.5.1
  * Fixed readline bug when using ipy command with gnureadline
    and Python 3.13.
- Add patch:
  * cmd2-no-coverage-tests.patch

- Update to version 2.5.0
  Breaking Change
  * cmd2 2.5 supports Python 3.8+
    (removed support for Python 3.6 and 3.7).
  Bug Fixes
  * Fixed issue where persistent history file was not saved upon
    SIGHUP and SIGTERM signals.
  * Multiline commands are no longer fragmented in up-arrow history
  * Fixed bug where async_alert() overwrites readline's incremental
    and non-incremental search prompts.
    + This fix introduces behavior where an updated prompt won't
      display after an aborted search.
    + until a user presses Enter. See async_printing.py
    + example for how to handle this case using
      Cmd.need_prompt_refresh() and Cmd.async_refresh_prompt().
  Enhancements
  * Removed dependency on attrs and replaced with dataclasses.
  * add allow_clipboard initialization parameter and attribute to
    disable ability to.
  * add output to the operating system clipboard.
  * Updated unit tests to be Python 3.13 compliant.

OBS-URL: https://build.opensuse.org/request/show/1221253
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=98
2024-11-05 21:50:12 +00:00
3e5fa0c323 Accepting request 1061746 from devel:languages:python
- 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`.

OBS-URL: https://build.opensuse.org/request/show/1061746
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=46
2023-01-29 13:10:35 +00:00
e8f23d3e85 - 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`.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=96
2023-01-28 14:34:34 +00:00
2a90acba34 Accepting request 998089 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/998089
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=45
2022-08-20 18:27:44 +00:00
df2d8fc326 Accepting request 998015 from home:bnavigator:branches:devel:languages:python
- Update to 2.4.2
  * Updated argparse decorator to remove annotations when the
    docstring is used for a command's help text.
  * Updated unit test to be Python 3.11 compliant.
- Clean specfile, remove coverage

OBS-URL: https://build.opensuse.org/request/show/998015
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=94
2022-08-19 06:47:20 +00:00
753331a0fc Accepting request 980775 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/980775
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=44
2022-06-06 09:10:31 +00:00
20f134ae57 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=92
2022-06-04 15:08:44 +00:00
1c3f17598f Accepting request 960149 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/960149
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=43
2022-03-09 17:46:59 +00:00
5efdeda040 Accepting request 960147 from home:pgajdos:python
- version update to 2.4.0
    Bug Fixes
        Fixed issue in ansi.async_alert_str() which would raise IndexError if prompt was blank.
        Fixed issue where tab completion was quoting argparse flags in some cases.
    Enhancements
        Added broader exception handling when enabling clipboard functionality via pyperclip.
        Added PassThroughException to __init__.py imports.
        cmd2 now uses pyreadline3 when running any version of Python on Windows
        Improved memory usage in certain use cases of tables (e.g. nested colored tables)
    Deletions (potentially breaking changes)
        Deleted cmd2.fg and cmd2.bg which were deprecated in 2.3.0. Use cmd2.Fg and cmd2.Bg instead.
- python-mock is actually not required for build

OBS-URL: https://build.opensuse.org/request/show/960147
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=90
2022-03-08 07:47:21 +00:00
7699cf7b4b Accepting request 941446 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/941446
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=42
2021-12-25 19:16:26 +00:00
634f3c4367 - update to 2.3.3:
* Added clearer exception handling to `BorderedTable` and `SimpleTable`.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=89
2021-12-11 22:10:05 +00:00
094c8427f5 Accepting request 936100 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/936100
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=41
2021-12-09 18:45:17 +00:00
ce18d7acba - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=88
2021-12-06 18:06:27 +00:00
b7fbc09a1f Accepting request 925761 from devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/925761
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=40
2021-10-20 18:23:35 +00:00
9d87067891 - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=87
2021-10-16 21:50:56 +00:00
2d98b9e7d5 Accepting request 906726 from devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/906726
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=39
2021-07-21 17:05:27 +00:00
cd56d35808 - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=86
2021-07-16 19:59:10 +00:00
361f2233c4 Accepting request 899979 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/899979
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=38
2021-06-18 08:13:14 +00:00
7ba7e0638d Accepting request 899964 from home:mnhauke
- Udpate to version 2.1.0
  Enhancements
  * Converted persistent history files from pickle to compressed
    JSON.

OBS-URL: https://build.opensuse.org/request/show/899964
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=84
2021-06-14 18:30:27 +00:00
973ecd3577 Accepting request 898082 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/898082
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=37
2021-06-11 20:29:53 +00:00
1b9243bdad Accepting request 897994 from home:mnhauke
- Update to version 2.0.1
  Bug Fixes
  * Exclude plugins and tests_isolated directories from tarball
    published to PyPI for cmd2 release
- Update to version 2.0.0
  Bug Fixes
  * Fixed issue where history indexes could get repeated
  * Fixed issue where TableCreator was tossing blank last line
  * Corrected help text for alias command
  Breaking Changes
  * cmd2 2.0 supports Python 3.6+ (removed support for Python 3.5)
  * Argparse Completion / Settables
    + Replaced choices_function / choices_method with
      choices_provider.
    + Replaced completer_function / completer_method with completer.
    + ArgparseCompleter now always passes cmd2.Cmd or CommandSet
      instance as the first positional
    + argument to choices_provider and completer functions.
  * Moved basic_complete from utils into cmd2.Cmd class.
  * Moved CompletionError to exceptions.py
  * Namespace.__statement__ has been removed.
    Use Namespace.cmd2_statement.get() instead.
  * Removed --silent flag from alias/macro create since startup
    scripts can be run silently.
  * Removed --with_silent flag from alias/macro list since startup
    scripts can be run silently.
  * Removed with_argparser_and_unknown_args since it was deprecated
    in 1.3.0.
  * Renamed silent_startup_script to silence_startup_script for
    clarity.

OBS-URL: https://build.opensuse.org/request/show/897994
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=82
2021-06-07 12:24:18 +00:00
27f731b894 Accepting request 888419 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/888419
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=36
2021-04-27 19:34:11 +00:00
b4a64af95f Accepting request 888322 from home:mnhauke
- Update to version 1.5.0
  * Fixed bug where setting always_show_hint=True did not show a
    hint when completing Settables.
  * Fixed bug in editor detection logic on Linux systems that do
    not have which.
  * Fixed bug in table creator where column headers with tabs
    would result in an incorrect width calculation.
  * Fixed FileNotFoundError which occurred when running history
    --clear and no history file existed.
  * Added silent_startup_script option to cmd2.Cmd.__init__().
    If True, then the startup script's output will be suppressed.
    Anything written to stderr will still display.

OBS-URL: https://build.opensuse.org/request/show/888322
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=80
2021-04-26 09:10:41 +00:00
100da508ac Accepting request 852846 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/852846
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=35
2020-12-04 20:27:27 +00:00
035d80a4ec Accepting request 852788 from home:bnavigator:branches:devel:languages:python
- Use correct sitelib macro in files section for multiple flavors
  gh#openSUSE/python-rpm-macros#66

OBS-URL: https://build.opensuse.org/request/show/852788
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=78
2020-12-03 06:41:20 +00:00
5bfe332909 Accepting request 850944 from devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/850944
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=34
2020-11-29 11:19:40 +00:00
3f9476df1c - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=76
2020-11-26 09:25:34 +00:00
3f0ad10ca7 Accepting request 847331 from devel:languages:python
- update to 1.3.8:
  * a few hundred changes, see included CHANGELOG.md for details

OBS-URL: https://build.opensuse.org/request/show/847331
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=33
2020-11-13 17:53:19 +00:00
9a67c0b90b - update to 1.3.8:
* a few hundred changes, see included CHANGELOG.md for details

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=74
2020-11-09 18:06:00 +00:00
9fa16c3916 Accepting request 811458 from devel:languages:python
- Do not restrict pytest4 as it works quite fine with pytest5

OBS-URL: https://build.opensuse.org/request/show/811458
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=32
2020-06-05 18:01:15 +00:00
Tomáš Chvátal
ff614a5dbb - Do not restrict pytest4 as it works quite fine with pytest5
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=72
2020-06-04 12:38:22 +00:00
a5aaa4e70d Accepting request 780065 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/780065
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=31
2020-03-01 20:26:02 +00:00
a9bf133138 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=70
2020-02-27 22:08:52 +00:00
d8a289c5f1 Accepting request 760618 from devel:languages:python
- 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()

OBS-URL: https://build.opensuse.org/request/show/760618
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=30
2020-01-06 15:02:08 +00:00
52f65eb482 - 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()

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=68
2020-01-03 10:37:15 +00:00