Revisions of python-cmd2

Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 699499 from Matej Cepl's avatar Matej Cepl (mcepl) (revision 25)
- fix previous commit
- Update to 0.9.12:
  - Bug Fixes
        - Fixed a bug in how redirection and piping worked inside
          py or pyscript commands
        - Fixed bug in async_alert where it didn't account for
          prompts that contained newline characters
        - Fixed path completion case when CWD is just a slash.
          Relative path matches were incorrectly prepended with
          a slash.
  - Enhancements
        - Added ability to include command name placeholders in
          the message printed when trying to run a disabled
          command.
        - Added instance attributes to customize error messages
          without having to override methods. Theses messages can
          also be colored.
        - The with_argparser decorators now add the Statement
          object created when parsing the command line to the
          argparse.Namespace object they pass to the do_*
          methods. It is stored in an attribute called
          __statement__.
        - This can be useful if a command function needs to know
          the command line for things like logging.
        - Added a -t option to the load command for automatically
          generating a transcript based on a script file
        - When in a pyscript, the stdout and stderr streams of
          shell commands and processes being piped to are now
          captured and included in the CommandResult structure.
  - Potentially breaking changes
        - The following commands now write to stderr instead of
          stdout when printing an error. This will make catching
          errors easier in pyscript.
        - Removed *** from beginning of error messages printed by
          do_help() and default()
        - Significantly refactored cmd.Cmd class so that all
          class attributes got converted to instance attributes,
          also: self.pipe_proc is now called
          self.cur_pipe_proc_reader and is a ProcReader class.
        - Shell commands and commands being piped to while in
          a pyscript will function as if their output is going to
          a pipe and not a tty. This was necessary to be able to
          capture their output.
- fix build for SLE12 and older
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 692517 from Thomas Bechtold's avatar Thomas Bechtold (tbechtold) (revision 24)
- Fix Requires for older python3 versions
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 680103 from Thomas Bechtold's avatar Thomas Bechtold (tbechtold) (revision 22)
- 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
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 656831 from Factory Maintainer's avatar Factory Maintainer (factory-maintainer) (revision 21)
Automatic submission by obs-autosubmit
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) committed (revision 19)
Revert to the version with py2 support. There are other things, newly ring, depending on it
Yuchen Lin's avatar Yuchen Lin (maxlin_factory) accepted request 635404 from Factory Maintainer's avatar Factory Maintainer (factory-maintainer) (revision 17)
Automatic submission by obs-autosubmit
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 576369 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 16)
- update to 0.7.9:
* Bug Fixes
    * Fixed a couple broken examples
* Enhancements
    * Improved documentation for modifying shortcuts (command aliases)
    * Made ``pyreadline`` a dependency on Windows to ensure tab-completion works
* Other changes
    * Abandoned official support for Python 3.3.  It should still work, just don't have an easy way to test it anymore.
* Bug Fixes
    * Fixed ``poutput()`` so it can print an integer zero and other **falsy** things
    * Fixed a bug which was causing autodoc to fail for building docs on Readthedocs
    * Fixed bug due to ``pyperclip`` dependency radically changing its project structure in latest version
* Enhancements
    * Improved documentation for user-settable environment parameters
    * Improved documentation for overriding the default supported comment styles
    * Added ``runcmds_plus_hooks()`` method to run multiple commands w/o a cmdloop
* Bug Fixes
    * Added workaround for bug which occurs in Python 2.7 on Linux when ``pygtk`` is installed
    * ``pfeedback()`` now honors feedback_to_output setting and won't redirect when it is ``False``
    * For ``edit`` command, both **editor** and **filename** can now have spaces in the name/path
    * Fixed a bug which occurred when stdin was a pipe instead of a tty due to input redirection
* Enhancements
    * ``feedback_to_output`` now defaults to ``False`` so info like command timing won't redirect
    * Transcript regular expressions now have predictable, tested, and documented behavior
        * This makes a breaking change to the format and expectations of transcript testing
        * The prior behavior removed whitespace before making the comparison, now whitespace must match exactly
        * Prior version did not allow regexes with whitespace, new version allows any regex
    * Improved display for ``load`` command and input redirection when **echo** is ``True``
* Bug Fixes
   * Case-sensitive command parsing was completely broken and has been fixed
Yuchen Lin's avatar Yuchen Lin (maxlin_factory) accepted request 514847 from Thomas Bechtold's avatar Thomas Bechtold (tbechtold) (revision 15)
- convert to singlespec

- update to 0.7.5:
  * `case_insensitive` is no longer a runtime-settable parameter, but it was still listed as such
  * Fixed a recursive loop bug when abbreviated commands are enabled and it could get stuck in the editor forever
  * Fixed argparse_example.py and pirate.py examples and transcript_regex.txt transcript
  * Fixed a bug in a unit test which occurred under unusual circumstances
  * Organized all attributes used to configure the ParserManager into a single location
  * Set the default value of `abbrev` to `False` (which controls whether or not abbreviated commands are allowed)
  * Improved implementation of `load` to use command queue instead of nested inner loop
  * Fixed a couple bugs in interacting with pastebuffer/clipboard on macOS and Linux
  * Fixed a couple bugs in edit and save commands if called when history is empty
  * Ability to pipe ``cmd2`` command output to a shell command is now more reliable, particularly on Windows
  * Fixed a bug in ``pyscript`` command on Windows related to ``\`` being interpreted as an escape
  * Ensure that path and shell command tab-completion results are alphabetically sorted
  * Removed feature for load command to load scripts from URLS
  * Removed presence of a default file name and default file extension
  * ``load`` command has better error checking and reporting
  * Clipboard copy and paste functionality is now handled by the **pyperclip** module
  * ``shell`` command now supports redirection and piping of output
  * Added a lot of unit tests
  * Removed pause command
  * Added a dependency on the **pyperclip** module
  * Fixed a bug in displaying a span of history items when only an end index is supplied
  * Fixed a bug which caused transcript test failures to display twice
  * Added the ability to exclude commands from the help menu (**eof** included by default)
  * Redundant **list** command removed and features merged into **history** command
  * Added **pyscript** command which supports tab-completion and running Python scripts with arguments
  * Improved tab-completion of file system paths, command names, and shell commands
  * Changed default value of USE_ARG_LIST to True - this affects the beavhior of all **@options** commands
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 441229 from Factory Maintainer's avatar Factory Maintainer (factory-maintainer) (revision 14)
Automatic submission by obs-autosubmit
Adrian Schröter's avatar Adrian Schröter (adrianSuSE) committed (revision 12)
Split 13.2 from Factory
Stephan Kulow's avatar Stephan Kulow (coolo) accepted request 201417 from Sascha Peilicke's avatar Sascha Peilicke (saschpe) (revision 11)
- update to 0.6.7:
  * various python 3.x compat fixes
- remove cmd2-pyparsing201.patch, merged upstream (forwarded request 201200 from dirkmueller)
Stephan Kulow's avatar Stephan Kulow (coolo) accepted request 199492 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 10)
- Add cmd2-pyparsing201.patch: Allow running with pyparsing>=2.0.1
Adrian Schröter's avatar Adrian Schröter (adrianSuSE) committed (revision 9)
Split 13.1 from Factory
Stephan Kulow's avatar Stephan Kulow (coolo) accepted request 197220 from Sascha Peilicke's avatar Sascha Peilicke (saschpe) (revision 8)
- update to 0.6.6.1:
  * go back to pyparsing 1.5.7 (forwarded request 197217 from dirkmueller)
Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_factory) accepted request 186934 from Sascha Peilicke's avatar Sascha Peilicke (saschpe) (revision 7)
- update to 0.6.6:
  * include editor search stderr fix (forwarded request 186919 from dirkmueller)
Displaying revisions 21 - 40 of 46
openSUSE Build Service is sponsored by