summaryrefslogtreecommitdiff
path: root/cmd2
Commit message (Collapse)AuthorAgeFilesLines
* Moved code from deprecated postparsing_postcmd into _run_cmdfinalization_hooksKevin Van Brunt2018-09-121-6/+8
|
* Fix bug in `parse_command_only`kotfu2018-09-091-7/+8
| | | | More robust unit tests identified a bug, which is also fixed in this commit.
* Docstring updatesKevin Van Brunt2018-09-091-11/+11
|
* Added/updated documentation for `Statement`kotfu2018-09-091-15/+73
|
* Took a stab at improving documentation and unit tests for ↵Todd Leonhardt2018-09-081-0/+1
| | | | | | Statement.parse_command_only() Also slightly improved a few other unit tests
* Simplified override of __new__Todd Leonhardt2018-09-061-13/+2
| | | | Eliminated redundant type information, since that is all being provided by attr.ib() calls
* Use attrs on Statement object to do immutabilityTodd Leonhardt2018-09-061-59/+40
|
* Replace previously removed Statement initialization parameterskotfu2018-09-051-2/+3
| | | | Statement is a subclass of str. Statement.__new__ should behave like str.__new__. Meaning it should accept any object as it’s argument, and our extended initialization parameters (i.e. command, arg_list) should not be allowed as positional arguments, only named arguments.
* Add back previously removed tests for statement.argskotfu2018-09-051-1/+1
|
* Made it possible for editors like Pycharm to see members of Statement in tab ↵Kevin Van Brunt2018-09-051-40/+37
| | | | completion. This also fixed many warnings.
* 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
|
* Updated commentKevin Van Brunt2018-09-011-3/+2
|
* Removed unused importKevin Van Brunt2018-09-011-1/+1
|
* Using empty strings and lists instead of None for default values in StatmentKevin Van Brunt2018-09-012-65/+72
|
* No longer returning None from tokens_for_completion()Kevin Van Brunt2018-09-011-26/+26
|
* Merge branch 'master' into quoted_argsTodd Leonhardt2018-08-272-11/+9
|\
| * Merge branch 'master' into ac_parserTodd Leonhardt2018-08-241-0/+6
| |\
| * | ACHelpFormatter now inherits from argparse.RawTextHelpFormatter to make it ↵Kevin Van Brunt2018-08-242-11/+9
| | | | | | | | | | | | 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-232-25/+14
| | | | | | | | list of args with quotes preserved.
* | No longer returning None from arg_listKevin Van Brunt2018-08-231-3/+3
| |
* | Fixed bug where alias was dropping quotesKevin Van Brunt2018-08-232-22/+41
|/
* 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
|
* parse_command_only now appropriately sets multiline_commandkotfu2018-08-081-4/+11
|
* Addeded utility function for combining unicode normalization and casefolding ↵Todd Leonhardt2018-08-021-6/+16
| | | | | | | | into a single step Also: - Updated the alphabetical sort utility function to use this - Started adding explicit unit tests for functions in utils.py
* Updated argparse_completer to automatically set the matches_sorted flag for ↵Eric Lin2018-08-011-0/+1
| | | | tabular results. Updated the example to demonstrate pre-sorted tabular results.
* Added alphabetical_sort() functionKevin Van Brunt2018-08-012-7/+14
|
* Added matches_sorted member to support custom sorting order of ↵Kevin Van Brunt2018-08-012-17/+40
| | | | | | | 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-292-4/+10
|
* Merged master with bug fix for #474Todd Leonhardt2018-07-171-10/+8
|\
| * Bug fix and unit tests for #474kotfu2018-07-161-10/+8
| |
* | 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-122-63/+62
|\ \ | |/
| * Merge branch 'master' into historyTodd Leonhardt2018-07-122-38/+0
| |\
| | * Deleted the CmdResult helper classTodd Leonhardt2018-07-112-38/+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-112-24/+61
| | | | | | | | | | | | | | | | | | 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
* | Merge branch 'master' into plugin_functionskotfu2018-07-101-1/+1
|\ \ | |/
| * Use instance attribute for terminatorsKyle Sunden2018-07-101-1/+1
| | | | | | If the `terminators` is the default, `None`, the function fails because the local variable was not updated.