forked from pool/python-cmd2
- update to 0.9.10:
* Fixed unit test that hangs on Windows * Fixed bug where the ``set`` command was not tab completing from the current ``settable`` dictionary. * Changed edit command to use do_shell() instead of calling os.system() * Fixed issue with echoing strings in StdSim. Because they were being sent to a binary buffer, line buffering was being ignored. * Made quit() and exit() functions available to scripts run with pyscript. This allows those scripts to exit back to the console's prompt instead of exiting the whole application. * Fixed bug when user chooses a zero or negative index when calling ``Cmd.select()`` * Restored behavior where ``cmd_echo`` always starts as False in a py script. This was broken in 0.9.5. * **cmdloop** now only attempts to register a custom signal handler for SIGINT if running in the main thread * commands run as a result of ``default_to_shell`` being **True** now run via ``do_shell()`` and are saved to history. * Added more tab completion to pyscript command. * Deleted ``Cmd.colorize()`` and ``Cmd._colorcodes`` which were deprecated in 0.9.5 * Replaced ``dir_exe_only`` and ``dir_only`` flags in ``path_complete`` with optional ``path_filter`` function that is used to filter paths out of completion results. * ``perror()`` no longer prepends "ERROR: " to the error message being printed * Fixed bug introduced in 0.9.5 caused by backing up and restoring `self.prompt` in `pseudo_raw_input`. As part of this fix, continuation prompts will not be redrawn with `async_update_prompt` or `async_alert`. * All platforms now depend on [wcwidth](https://pypi.python.org/pypi/wcwidth) to assist with asynchronous alerts. * Macros now accept extra arguments when called. These will be tacked onto the resolved command. * All cmd2 commands run via `py` now go through `onecmd_plus_hooks`. * Fixed bug where ``get_all_commands`` could return non-callable attributes * Fixed bug where **alias** command was dropping quotes around arguments * Fixed bug where running help on argparse commands didn't work if they didn't support -h * Fixed transcript testing bug where last command in transcript has no expected output * Fixed bugs with how AutoCompleter and ArgparseFunctor handle argparse arguments with nargs=argparse.REMAINDER. Tab completion now correctly matches how argparse will parse the values. Command strings generated by OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=41
This commit is contained in:
committed by
Git OBS Bridge
parent
43b1c71d56
commit
f8072ff6c1
@@ -1,3 +1,65 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 28 11:43:56 UTC 2019 - Thomas Bechtold <tbechtold@suse.com>
|
||||
|
||||
- update to 0.9.10:
|
||||
* Fixed unit test that hangs on Windows
|
||||
* Fixed bug where the ``set`` command was not tab completing from the current ``settable`` dictionary.
|
||||
* Changed edit command to use do_shell() instead of calling os.system()
|
||||
* Fixed issue with echoing strings in StdSim. Because they were being sent to a binary buffer, line buffering
|
||||
was being ignored.
|
||||
* Made quit() and exit() functions available to scripts run with pyscript. This allows those scripts to exit
|
||||
back to the console's prompt instead of exiting the whole application.
|
||||
* Fixed bug when user chooses a zero or negative index when calling ``Cmd.select()``
|
||||
* Restored behavior where ``cmd_echo`` always starts as False in a py script. This was broken in 0.9.5.
|
||||
* **cmdloop** now only attempts to register a custom signal handler for SIGINT if running in the main thread
|
||||
* commands run as a result of ``default_to_shell`` being **True** now run via ``do_shell()`` and are saved
|
||||
to history.
|
||||
* Added more tab completion to pyscript command.
|
||||
* Deleted ``Cmd.colorize()`` and ``Cmd._colorcodes`` which were deprecated in 0.9.5
|
||||
* Replaced ``dir_exe_only`` and ``dir_only`` flags in ``path_complete`` with optional ``path_filter`` function
|
||||
that is used to filter paths out of completion results.
|
||||
* ``perror()`` no longer prepends "ERROR: " to the error message being printed
|
||||
* Fixed bug introduced in 0.9.5 caused by backing up and restoring `self.prompt` in `pseudo_raw_input`.
|
||||
As part of this fix, continuation prompts will not be redrawn with `async_update_prompt` or `async_alert`.
|
||||
* All platforms now depend on [wcwidth](https://pypi.python.org/pypi/wcwidth) to assist with asynchronous alerts.
|
||||
* Macros now accept extra arguments when called. These will be tacked onto the resolved command.
|
||||
* All cmd2 commands run via `py` now go through `onecmd_plus_hooks`.
|
||||
* Fixed bug where ``get_all_commands`` could return non-callable attributes
|
||||
* Fixed bug where **alias** command was dropping quotes around arguments
|
||||
* Fixed bug where running help on argparse commands didn't work if they didn't support -h
|
||||
* Fixed transcript testing bug where last command in transcript has no expected output
|
||||
* Fixed bugs with how AutoCompleter and ArgparseFunctor handle argparse
|
||||
arguments with nargs=argparse.REMAINDER. Tab completion now correctly
|
||||
matches how argparse will parse the values. Command strings generated by
|
||||
ArgparseFunctor should now be compliant with how argparse expects
|
||||
REMAINDER arguments to be ordered.
|
||||
* Fixed bugs with how AutoCompleter handles flag prefixes. It is no
|
||||
longer hard-coded to use '-' and will check against the prefix_chars in
|
||||
the argparse object. Also, single-character tokens that happen to be a
|
||||
prefix char are not treated as flags by argparse and AutoCompleter now
|
||||
matches that behavior.
|
||||
* 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)
|
||||
* Added ``exit_code`` attribute of ``cmd2.Cmd`` class
|
||||
* Enables applications to return a non-zero exit code when exiting from ``cmdloop``
|
||||
* ``ACHelpFormatter`` now inherits from ``argparse.RawTextHelpFormatter`` to make it easier
|
||||
for formatting help/description text
|
||||
* Aliases are now sorted alphabetically
|
||||
* The **set** command now tab-completes settable parameter names
|
||||
* Added ``async_alert``, ``async_update_prompt``, and ``set_window_title`` functions
|
||||
* These allow you to provide feedback to the user in an asychronous fashion, meaning alerts can
|
||||
display when the user is still entering text at the prompt.
|
||||
* Cross-platform colored output support
|
||||
* Deprecated the built-in ``cmd2`` support for colors including ``Cmd.colorize()`` and ``Cmd._colorcodes``
|
||||
* The ``preparse``, ``postparsing_precmd``, and ``postparsing_postcmd`` methods *deprecated* in the previous release
|
||||
have been deleted
|
||||
* The new application lifecycle hook system allows for registration of callbacks to be called at various points
|
||||
in the lifecycle and is more powerful and flexible than the previous system
|
||||
* ``alias`` is now a command with sub-commands to create, list, and delete aliases. Therefore its syntax
|
||||
has changed. All current alias commands in startup scripts or transcripts will break with this release.
|
||||
* `unalias` was deleted since ``alias delete`` replaced it
|
||||
- Drop remove-typing.patch . Applied upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 3 11:13:35 UTC 2018 - Matěj Cepl <mcepl@suse.com>
|
||||
|
||||
|
Reference in New Issue
Block a user