summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Start to some improvements to default categories. Next: tag CommandSet ↵default_categoriesEric Lin2020-09-082-7/+10
| | | | classes with category name and search for default categories when a command is added to cmd2.Cmd
* Made CustomCompletionSettings public since it's optionally passed to public ↵Kevin Van Brunt2020-09-052-11/+31
| | | | method cmd2.Cmd.complete().
* Added pragma: no cover to some tab completion codeKevin Van Brunt2020-09-051-7/+5
|
* Updated unit tests for read_input()Kevin Van Brunt2020-09-053-2/+42
|
* Merge branch '2.0' into read_inputKevin Van Brunt2020-09-058-78/+156
|\
| * Merge branch 'master' into 2.0Kevin Van Brunt2020-09-058-78/+156
| |\
| | * Merge pull request #993 from python-cmd2/completion_hintsKevin Van Brunt2020-09-058-55/+131
| | |\ | | | | | | | | Completion hint enhancements
| | | * Added always_show_hint settingKevin Van Brunt2020-09-058-55/+131
| | |/ | | | | | | | | | Fixed issue where flag names weren't always sorted correctly in argparse tab completion
* | | Merge branch '2.0' into read_inputKevin Van Brunt2020-09-038-29/+110
|\ \ \ | |/ /
| * | Merge branch 'master' into 2.0Kevin Van Brunt2020-09-039-33/+114
| |\ \ | | |/
| | * Fixed type hints in example code1.3.9Kevin Van Brunt2020-09-033-3/+3
| | |
| | * Merge pull request #990 from python-cmd2/on_registeredKevin Van Brunt2020-09-039-31/+111
| | |\ | | | | | | | | Added callbacks to CommandSet
| | | * Documented CommandSet event handlersKevin Van Brunt2020-09-031-1/+29
| | | |
| | | * Added CommandSet.on_unregistered()Kevin Van Brunt2020-09-034-14/+33
| | | |
| | | * Updated docsKevin Van Brunt2020-09-015-16/+15
| | | |
| | | * Added unit tests for CommandSet callbacksKevin Van Brunt2020-09-012-5/+26
| | | |
| | | * Added on_registered() callback to CommandSetKevin Van Brunt2020-09-013-2/+15
| | |/
* | | Fixed flake8 errorKevin Van Brunt2020-09-011-1/+4
| | |
* | | Removed enum.auto() for Python 3.5 compatibilityKevin Van Brunt2020-09-011-3/+3
| | |
* | | Fixed docs errorKevin Van Brunt2020-09-012-1/+6
| | |
* | | Updated change logKevin Van Brunt2020-09-011-0/+4
| | |
* | | Updated read_input exampleKevin Van Brunt2020-09-011-10/+33
| | |
* | | Updated commentsKevin Van Brunt2020-09-012-2/+6
| | |
* | | Added read_input() exampleKevin Van Brunt2020-09-011-0/+89
| | |
* | | Refactored ArgparseCompleter to support custom completionKevin Van Brunt2020-09-015-74/+66
| | |
* | | Refactored read_input to support custom completionKevin Van Brunt2020-08-311-59/+138
| | |
* | | Refactored complete() to handle custom behavior from read_input()Kevin Van Brunt2020-08-313-80/+107
|/ /
* | Merge branch 'master' into 2.0Kevin Van Brunt2020-08-288-35/+94
|\ \ | |/
| * Merge pull request #988 from python-cmd2/add_help1.3.8Kevin Van Brunt2020-08-286-31/+68
| |\ | | | | | | Removed need to set add_help to False for @as_subcommand_to decorator
| | * Fixed issue where subcommand added with @as_subcommand_to decorator did not ↵Kevin Van Brunt2020-08-276-31/+68
| |/ | | | | | | | | | | display help when called with -h/--help. 'add_help=False' no longer has to be passed to parsers used in @as_subcommand_to decorator.
| * the with_argparse() decorator was incorrectly using a parsed statement ↵1.3.7Eric Lin2020-08-273-4/+26
| | | | | | | | object to search for the original function arguments. Switched to search for the original statement value instead
* | Removed Namespace.__statement__Kevin Van Brunt2020-08-273-10/+2
| |
* | Merge branch 'master' into 2.0Kevin Van Brunt2020-08-2714-41/+88
|\ \ | |/
| * Fixed typo in change logKevin Van Brunt2020-08-271-1/+2
| |
| * Updated change log for release1.3.6Kevin Van Brunt2020-08-271-1/+1
| |
| * Merge pull request #985 from python-cmd2/dynamic_valueKevin Van Brunt2020-08-2714-41/+86
| |\ | | | | | | Added Cmd2AttributeWrapper class
| | * The functions cmd2 adds to Namespaces (get_statement() and get_handler()) ↵Kevin Van Brunt2020-08-2614-41/+86
| |/ | | | | | | | | | | | | are now Cmd2AttributeWrapper objects named cmd2_statement and cmd2_handler. This makes it easy to filter out which attributes in an argparse.Namespace were added by cmd2.
* | Merge branch 'master' into 2.0Kevin Van Brunt2020-08-258-18/+64
|\ \ | |/
| * Updated change log and docs for release1.3.5Kevin Van Brunt2020-08-252-1/+16
| |
| * Merge pull request #984 from python-cmd2/recursion_errorKevin Van Brunt2020-08-258-17/+48
| |\ | | | | | | Fixed RecursionError when printing an argparse.Namespace
| | * Fixed RecursionError when printing an argparse.Namespace caused by custom ↵Kevin Van Brunt2020-08-258-17/+48
| |/ | | | | | | | | | | attribute cmd2 was adding Added get_statement() function to argparse.Namespace which returns __statement__ attribute
| * Fixed typoKevin Van Brunt2020-08-211-1/+1
| |
* | Merge branch 'master' into 2.0Kevin Van Brunt2020-08-2014-52/+340
|\ \ | |/
| * Updated change log for release1.3.4Kevin Van Brunt2020-08-201-1/+5
| |
| * Merge pull request #980 from python-cmd2/move_module_loadingKevin Van Brunt2020-08-2014-52/+336
| |\ | | | | | | Fixed AttributeError when loading CommandSet
| | * Added tests for invalid subcommandsEric Lin2020-08-202-0/+90
| | |
| | * Minor formatting changes. Fixed some inaccurate commentsEric Lin2020-08-201-19/+72
| | |
| | * Updated documentation with more explicit discussions on testingEric Lin2020-08-209-9/+95
| | | | | | | | | | | | Added unit test to verify command name validation updates.
| | * Added validation of subcommand handler attributesEric Lin2020-08-202-8/+17
| | |
| | * Fixed AttributeError when CommandSet that uses as_subcommand_to decorator is ↵Kevin Van Brunt2020-08-193-16/+62
| |/ | | | | | | loaded during cmd2.Cmd.__init__().