45d2a824aaAccepting request 1232033 from devel:languages:python
factory
Ana Guerrero
2024-12-19 20:40:14 +00:00
c4b3151610- Update to version 2.5.8 Bug Fixes * Rolled back undocumented changes to printing functions introduced in 2.5.0.
devel
Steve Kowalik
2024-12-19 08:21:07 +00:00
7fca6b6cf8Accepting request 1226013 from devel:languages:python
Ana Guerrero
2024-11-26 19:55:21 +00:00
0b61a039c6- 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.Matej Cepl2024-11-23 22:32:42 +00:00
8fce606d76Accepting request 1224394 from devel:languages:python
Ana Guerrero
2024-11-15 14:38:22 +00:00
158893169b- 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.Markéta Machová2024-11-15 08:40:30 +00:00
59eaf493fdAccepting request 1222604 from devel:languages:python
Dominique Leuenberger
2024-11-09 19:52:46 +00:00
19da392b61- 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.Matej Cepl2024-11-07 23:51:59 +00:00
c2f40fbd78Accepting request 1221615 from devel:languages:python
Ana Guerrero
2024-11-06 15:49:23 +00:00
7cc1bbd489- 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.patchMatej Cepl2024-11-05 21:50:12 +00:00
d8aa0afa6bAccepting request 1061746 from devel:languages:python
Dominique Leuenberger
2023-01-29 13:10:35 +00:00
b28278e34c- 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.Dirk Mueller2023-01-28 14:34:34 +00:00
93dcd3ab6cAccepting request 998089 from devel:languages:python
Dominique Leuenberger
2022-08-20 18:27:44 +00:00
3541eecab2Accepting request 998015 from home:bnavigator:branches:devel:languages:pythonDirk Mueller2022-08-19 06:47:20 +00:00
1107411c82Accepting request 980775 from devel:languages:python
Dominique Leuenberger
2022-06-06 09:10:31 +00:00
b331e65472- 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.Dirk Mueller2022-06-04 15:08:44 +00:00
ccfe37de1fAccepting request 960149 from devel:languages:python
Dominique Leuenberger
2022-03-09 17:46:59 +00:00
9fd5e7ff18Accepting request 960147 from home:pgajdos:pythonDirk Mueller2022-03-08 07:47:21 +00:00
0e71e38249Accepting request 941446 from devel:languages:python
Dominique Leuenberger
2021-12-25 19:16:26 +00:00
30d6e29131- update to 2.3.3: * Added clearer exception handling to BorderedTable and SimpleTable.Dirk Mueller2021-12-11 22:10:05 +00:00
e41d55bc61Accepting request 936100 from devel:languages:python
Dominique Leuenberger
2021-12-09 18:45:17 +00:00
2244e74b39- 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.Dirk Mueller2021-12-06 18:06:27 +00:00
6a4d214de8Accepting request 925761 from devel:languages:python
Dominique Leuenberger
2021-10-20 18:23:35 +00:00
098697623a- 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.2Dirk Mueller2021-10-16 21:50:56 +00:00
bdbc345c5bAccepting request 906726 from devel:languages:python
Dominique Leuenberger
2021-07-21 17:05:27 +00:00
b11720804f- 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 releaseDirk Mueller2021-07-16 19:59:10 +00:00
a893a4a32eAccepting request 899979 from devel:languages:python
Dominique Leuenberger
2021-06-18 08:13:14 +00:00
dd17205b20Accepting request 899964 from home:mnhaukeMatej Cepl2021-06-14 18:30:27 +00:00
af7bdd9956Accepting request 898082 from devel:languages:python
Dominique Leuenberger
2021-06-11 20:29:53 +00:00
34c77d5206Accepting request 897994 from home:mnhaukeMatej Cepl2021-06-07 12:24:18 +00:00
70b590ea3cAccepting request 888419 from devel:languages:python
Dominique Leuenberger
2021-04-27 19:34:11 +00:00
dac9ff4e72Accepting request 888322 from home:mnhaukeDirk Mueller2021-04-26 09:10:41 +00:00
4505d33b3bAccepting request 852846 from devel:languages:python
Dominique Leuenberger
2020-12-04 20:27:27 +00:00
285ddaed04Accepting request 852788 from home:bnavigator:branches:devel:languages:pythonMatej Cepl2020-12-03 06:41:20 +00:00
b9b92b5ba3Accepting request 850944 from devel:languages:python
Dominique Leuenberger
2020-11-29 11:19:40 +00:00
254fae6ad9- 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 messagesDirk Mueller2020-11-26 09:25:34 +00:00
61c05b20c9Accepting request 847331 from devel:languages:python
Dominique Leuenberger
2020-11-13 17:53:19 +00:00
4b31c38c8d- update to 1.3.8: * a few hundred changes, see included CHANGELOG.md for detailsDirk Mueller2020-11-09 18:06:00 +00:00
52c3ea25d0Accepting request 811458 from devel:languages:python
Dominique Leuenberger
2020-06-05 18:01:15 +00:00
07ebdeaf96- Do not restrict pytest4 as it works quite fine with pytest5
Tomáš Chvátal
2020-06-04 12:38:22 +00:00
8ac6074506Accepting request 780065 from devel:languages:python
Dominique Leuenberger
2020-03-01 20:26:02 +00:00
6ef271d09b- 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.Dirk Mueller2020-02-27 22:08:52 +00:00
796e687fd1Accepting request 760618 from devel:languages:python
Dominique Leuenberger
2020-01-06 15:02:08 +00:00
4c3abffbfe- 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()Matej Cepl2020-01-03 10:37:15 +00:00
df7312e740Accepting request 755773 from home:mcepl:branches:Cloud:OpenStack:FactoryMatej Cepl2019-12-11 10:02:05 +00:00
6ad3671ba3- go back to 0.8.9, cliff (which is the only user) is not compatible with >= 0.9.0 atm - Same commit like October 23thDirk Mueller2019-12-02 12:17:31 +00:00
65280796b5Accepting request 750700 from devel:languages:python
Dominique Leuenberger
2019-11-29 14:55:49 +00:00
8126b7d63d- Fix up dependencies and everything after last update to 0.9.20
Tomáš Chvátal
2019-11-22 11:18:25 +00:00
0f95a17098Accepting request 748740 from devel:languages:python
Dominique Leuenberger
2019-11-22 09:24:39 +00:00
9c13c82210- 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.Matej Cepl2019-11-14 15:52:45 +00:00
928aaa9bb2- go back to 0.8.9, cliff (which is the only user) is not compatible with >= 0.9.0 atmDirk Mueller2019-10-23 07:38:43 +00:00
d426658170Accepting request 730677 from devel:languages:python
Dominique Leuenberger
2019-09-23 10:09:41 +00:00
c75d75a4a2- 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
Tomáš Chvátal
2019-09-13 10:58:44 +00:00
ad20bfbfc7Accepting request 720196 from devel:languages:python
Dominique Leuenberger
2019-08-07 11:56:40 +00:00
ee96ea4e4cAccepting request 720184 from home:pgajdos
Tomáš Chvátal
2019-08-01 11:46:45 +00:00
60e456ccfeAccepting request 720160 from home:pgajdos
Tomáš Chvátal
2019-08-01 09:01:41 +00:00
3bd4d36cc5Accepting request 699499 from devel:languages:python
Dominique Leuenberger
2019-05-05 19:19:18 +00:00
4f426c0b2eAccepting request 699492 from home:mcepl:branches:devel:languages:pythonMatej Cepl2019-04-29 19:26:01 +00:00
7aecbaca12Accepting request 692517 from devel:languages:python
Dominique Leuenberger
2019-04-12 07:10:53 +00:00
532bc8676d- Fix Requires for older python3 versions
Thomas Bechtold
2019-04-09 07:35:33 +00:00
8a3b1678e6Accepting request 685423 from devel:languages:python
Dominique Leuenberger
2019-03-29 19:35:39 +00:00
fe67ea8f78Accepting request 685422 from home:mcepl:branches:devel:languages:pythonMatej Cepl2019-03-15 15:51:48 +00:00
769ab7c19d- Add vim to depends as it is used in tests as an editor
Tomáš Chvátal
2019-03-15 10:31:33 +00:00
7d593a5635- Update to 0.9.11: * too many changes to enumerate, see CHANGELOG.md - Really run tests
Tomáš Chvátal
2019-03-14 15:01:58 +00:00
2268724ecdAccepting request 680103 from devel:languages:python
Dominique Leuenberger
2019-03-04 08:09:46 +00:00
f8072ff6c1- 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
Thomas Bechtold
2019-02-28 12:07:14 +00:00
4278d1277eAccepting request 656831 from devel:languages:python
Dominique Leuenberger
2018-12-14 19:48:20 +00:00
cdaa4d1044- update to 0.8.9: * Bug Fixes * Fixed extra slash that could print when tab completing users on Windows * Prevent crashes that could occur attempting to open a file in non-existent directory or with very long filename * Make sure pip installs version 0.8.x if you have python 2.7 * Commands using the @with_argparser_and_unknown_args were not correctly recognized when tab completing * Fixed issue where completion display function was overwritten when a submenu quits * Fixed `AttributeError on Windows when running a select command cause by **pyreadline** not implementing remove_history_item * Bug Fixes * Fixed a bug with all argument decorators where the wrapped function wasn't returning a value and thus couldn't cause the cmd2 app to quit * Enhancements * Added warning about **libedit** variant of **readline** not being supported on macOS * Added tab-completion of alias names in value filed of **alias** command * Enhanced the py console in the following ways * Added tab completion of Python identifiers instead of **cmd2** commands * Separated the py console history from the **cmd2** history * Added support for verbose help with -v where it lists a brief summary of what each command does * Added support for categorizing commands into groups within the help menu * See the [Grouping Commands](http://cmd2.readthedocs.io/en/latest/argument_processing.html?highlight=verbose#grouping-commands) section of the docs for more info * See [help_categories.py](https://github.com/python-cmd2/cmd2/blob/master/examples/help_categories.py) for an example * Tab completion of paths now supports ~user user path expansion * Simplified implementation of various tab completion functions so they no longer require ctypes * Expanded documentation of display_matches list to clarify its purpose. See cmd2.py for this documentation. * Adding opening quote to tab completion if any of the completion suggestions have a space. * Tab completion has been overhauled and now supports completion of strings with quotes and spaces. * Tab completion will automatically add an opening quote if a string with a space is completed. * Added delimiter_complete function for tab completing delimited strings * Added more control over tab completion behavior including the following flags. The use of these flags is documented in cmd2.py * allow_appended_space * allow_closing_quote`Dirk Mueller2018-09-05 20:19:13 +00:00
ff49d2574cAccepting request 576369 from devel:languages:python
Dominique Leuenberger
2018-02-14 09:52:11 +00:00
408ee37caa- 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 fixedDirk Mueller2018-02-13 18:35:44 +00:00
0b6f9da0c9Accepting request 514847 from devel:languages:python
Yuchen Lin
2017-08-12 18:26:44 +00:00
28bd7f8a75- convert to singlespec
Thomas Bechtold
2017-08-07 07:58:37 +00:00
440f9644e9- 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 * Refactored code to encapsulate most of the pyparsing logic into a ParserManager class * Added a MANIFEST.ini file to make sure a few extra files get included in the PyPI source distribution
Thomas Bechtold
2017-08-07 07:56:10 +00:00
4f0c2a9113Accepting request 441229 from devel:languages:python
Dominique Leuenberger
2016-11-24 20:23:00 +00:00
96b9250d17- update to 0.6.9: * Support Python 3 input()Dirk Mueller2016-11-14 14:23:30 +00:00
8b97665dd4Accepting request 280589 from devel:languages:python
Dominique Leuenberger
2015-01-09 19:50:59 +00:00
d20f15907bAccepting request 280524 from Cloud:OpenStack:Master
Jan Matejek
2015-01-09 13:51:06 +00:00
75fca09a18Accepting request 201417 from devel:languages:python
Stephan Kulow
2013-10-01 06:27:01 +00:00
1302ac276dAccepting request 201200 from home:dirkmueller:branches:devel:languages:python
Sascha Peilicke
2013-09-30 07:18:22 +00:00
e1acb26305Accepting request 199492 from devel:languages:python
Stephan Kulow
2013-09-23 08:56:08 +00:00