From 098697623a06b366a69b40dcce63ea3a5a7f10d6643b4052f5b06cb51374d07e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 16 Oct 2021 21:50:56 +0000 Subject: [PATCH] - 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 --- cmd2-2.1.2.tar.gz | 3 --- cmd2-2.2.0.tar.gz | 3 +++ python-cmd2.changes | 24 ++++++++++++++++++++++++ python-cmd2.spec | 2 +- 4 files changed, 28 insertions(+), 4 deletions(-) delete mode 100644 cmd2-2.1.2.tar.gz create mode 100644 cmd2-2.2.0.tar.gz diff --git a/cmd2-2.1.2.tar.gz b/cmd2-2.1.2.tar.gz deleted file mode 100644 index 25b97d8..0000000 --- a/cmd2-2.1.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:25dbb2e9847aaa686a8a21e84e3d101db8b79f5cb992e044fc54210ab8c0ad41 -size 660849 diff --git a/cmd2-2.2.0.tar.gz b/cmd2-2.2.0.tar.gz new file mode 100644 index 0000000..4023d10 --- /dev/null +++ b/cmd2-2.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:34cd12424d9e2835eff125146af3d9f4a4c2931c6bc5a3cea9790bd4f55756d9 +size 667076 diff --git a/python-cmd2.changes b/python-cmd2.changes index 56c5c39..f327e67 100644 --- a/python-cmd2.changes +++ b/python-cmd2.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Sat Oct 16 21:48:02 UTC 2021 - Dirk Müller + +- 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 + ------------------------------------------------------------------- Fri Jul 16 19:57:26 UTC 2021 - Dirk Müller diff --git a/python-cmd2.spec b/python-cmd2.spec index 7386503..ea4864d 100644 --- a/python-cmd2.spec +++ b/python-cmd2.spec @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-cmd2 -Version: 2.1.2 +Version: 2.2.0 Release: 0 Summary: Extra features for standard library's cmd module License: MIT