summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | The set command now tab-completes the setting namesTodd Leonhardt2018-09-191-0/+4
| | |/ / / / / | |/| | | | |
* | | | | | | Updated documentationKevin Van Brunt2018-09-201-32/+38
| | | | | | |
* | | | | | | Merge branch 'master' into macroKevin Van Brunt2018-09-201-5/+5
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Add natural sorting (sorting case insensitively as well as numerically)Lance Starr2018-09-191-4/+4
| | |_|_|_|/ | |/| | | |
| * | | | | Merge branch 'master' into fix_minor_warningsTodd Leonhardt2018-09-171-4/+4
| |\ \ \ \ \ | | |/ / / /
| * | | | | This just fixes a couple minor lint warnings related to raw strings and escapesTodd Leonhardt2018-09-131-1/+1
| | |_|_|/ | |/| | |
* | | | | Converted alias command to one with subcommandsKevin Van Brunt2018-09-181-97/+111
| |/ / / |/| | |
* | | | Corrected callable checkKevin Van Brunt2018-09-171-4/+4
|/ / /
* | | Moved code from deprecated postparsing_postcmd into _run_cmdfinalization_hooksKevin Van Brunt2018-09-121-6/+8
| | |
* | | Docstring updatesKevin Van Brunt2018-09-091-11/+11
| | |
* | | Updated docstringKevin Van Brunt2018-09-051-1/+1
| | |
* | | Updated alias help textKevin Van Brunt2018-09-051-1/+1
| | |
* | | Updated commentKevin Van Brunt2018-09-021-1/+1
| | |
* | | Using empty strings and lists instead of None for default values in StatmentKevin Van Brunt2018-09-011-1/+1
| | |
* | | No longer returning None from tokens_for_completion()Kevin Van Brunt2018-09-011-26/+26
| | |
* | | Merge branch 'master' into quoted_argsTodd Leonhardt2018-08-271-7/+8
|\ \ \ | | |/ | |/|
| * | Merge branch 'master' into ac_parserTodd Leonhardt2018-08-241-0/+6
| |\ \
| * | | ACHelpFormatter now inherits from argparse.RawTextHelpFormatter to make it ↵Kevin Van Brunt2018-08-241-7/+8
| | | | | | | | | | | | | | | | easier to format help/description text
* | | | Merge branch 'master' into quoted_argsKevin Van Brunt2018-08-241-0/+6
|\ \ \ \ | | |/ / | |/| |
| * | | Added way of returning a non-zero exit code to the shellTodd Leonhardt2018-08-231-0/+6
| |/ /
* | | Removed Statement.args since it was redundant. Replaced with already parsed ↵Kevin Van Brunt2018-08-231-1/+1
| | | | | | | | | | | | list of args with quotes preserved.
* | | Fixed bug where alias was dropping quotesKevin Van Brunt2018-08-231-21/+29
|/ /
* | Deleted a line which was added to support the SubMenu featureTodd Leonhardt2018-08-221-1/+0
| | | | | | | | The SubMenu feature is now a plugin in a separate repo and is no longer part of the main cmd2 package.
* | Fixed get_all_commands and get_help_topics to only return function namesKevin Van Brunt2018-08-211-2/+4
| |
* | Fixed type hinting for select functionKevin Van Brunt2018-08-211-1/+1
|/
* Allow newlines inside unclosed quotes. Fixes #495kotfu2018-08-081-3/+24
|
* Added alphabetical_sort() functionKevin Van Brunt2018-08-011-7/+5
|
* Added matches_sorted member to support custom sorting order of ↵Kevin Van Brunt2018-08-011-17/+27
| | | | | | | tab-completion matches Made all sorting alphabetical Fixed case where extra slash was printing when tab completing users on Windows
* Fix Sphinx warning in preparse docstringTodd Leonhardt2018-07-301-2/+2
|
* Use setuptools_scm for version numberskotfu2018-07-291-2/+0
|
* Started updating CHANGELOGTodd Leonhardt2018-07-161-1/+1
| | | | | | Also: - Bumped version to 0.9.4 - Updated info in Readme and Sphinx docs to reflect new dependency on attrs
* Add usage warning to preparse() for #417kotfu2018-07-151-3/+13
|
* Fix for #417, call preparse()kotfu2018-07-151-1/+1
|
* Resolved merge conflict from merging master into plugin_functionsTodd Leonhardt2018-07-121-45/+60
|\
| * Merge branch 'master' into historyTodd Leonhardt2018-07-121-22/+0
| |\
| | * Deleted the CmdResult helper classTodd Leonhardt2018-07-111-22/+0
| | | | | | | | | | | | | | | | | | | | | | | | The CmdResult helper class was deprecated in the previous release. This commit deletes it. - The new CommandResult class is an improved replacement Also: - Deleted the namedtuple_with_two_defaults helper function which is now no longer used
| * | Merge branch 'master' into historyKevin Van Brunt2018-07-121-2/+7
| |\ \ | | |/
| * | Added --clear argument to history commandKevin Van Brunt2018-07-111-22/+59
| | | | | | | | | | | | | | | | | | Added better error checking when loading readline history file Improved some error messages Changed IOError usages to OSError since they were merged in Python 3.3.
* | | Merge branch 'master' into plugin_functionsTodd Leonhardt2018-07-111-2/+7
|\ \ \ | | |/ | |/|
| * | Allow onecmd to accept a raw string for backward compatibility with cmdTodd Leonhardt2018-07-101-2/+7
| |/ | | | | | | This addresses #464
* | Fixed a Sphinx autodoc warning due to minor formatting issues in docstring ↵Todd Leonhardt2018-07-091-2/+3
| | | | | | | | of ppaged method
* | Fixed a couple type hints and minor pep8-style formatting issuesTodd Leonhardt2018-07-091-9/+7
| |
* | Add type hinting to hook methodskotfu2018-07-071-12/+12
| |
* | Merge branch 'master' into plugin_functionskotfu2018-07-051-4/+3
|\ \ | |/
| * Bumped version to 0.9.3 now that 0.9.2 release is outTodd Leonhardt2018-06-281-1/+1
| |
| * Bump version to 0.9.2 in preparation for releaseTodd Leonhardt2018-06-281-1/+1
| |
| * Fix bug for startup script with spacesTodd Leonhardt2018-06-261-1/+1
| |
| * Merge branch 'master' into command_resultTodd Leonhardt2018-06-251-1/+0
| |\
| | * Removed unused class memberKevin Van Brunt2018-06-251-1/+0
| | |
| * | Deprecated CmdResult helper class and promoted CommandResultTodd Leonhardt2018-06-231-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | These classes are subtly different, particularly in terms of their truthiness. CmdResult - attributes: out, err, war - truthy: if err is falsy CommandResult - attributes: stdout, stderr, data - truthy: if err is falsy AND data is not None So CmdResult was oriented to provide essentially info, error, and warning messages to the user (typically as stirngs), whereas CommandResult is geared towards providing info and error messages to the user as strings in addition to data to the user in a command-specific format which is arbitrary other than it should never be None if the command succeeds.