summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into silenceKevin Van Brunt2020-09-1711-20/+263
|\
| * Minor type hinting fixes.Eric Lin2020-09-112-7/+21
| |
| * Changes default category to be heritable by default - meaning that ↵Eric Lin2020-09-118-5/+228
| | | | | | | | | | | | subclasses will inherit the parent class's default category. Adds optional flag to disable heritability.
| * Fixed classifier spacingplugin-ext-test-0.2.0Eric Lin2020-09-111-2/+2
| |
| * Updated URL and documentation in preparation for cmd2-ext-test 0.2.0 releaseEric Lin2020-09-112-7/+13
| |
* | Added --silent flag to alias/macro create.Kevin Van Brunt2020-09-103-12/+70
|/ | | | Added --with_silent flag to alias/macro list.
* Updated documentation about set commandKevin Van Brunt2020-09-091-9/+10
|
* Merge pull request #994 from python-cmd2/format_flagsKevin Van Brunt2020-09-093-27/+65
|\ | | | | Group flags in argparse tab completion
| * argparse tab completion now groups flag names which run the same action. ↵Kevin Van Brunt2020-09-093-27/+65
|/ | | | | | Optional flags are wrapped in brackets like it is done in argparse usage text.
* Added type hintKevin Van Brunt2020-09-051-2/+1
|
* 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
* 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
|/
* 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
* 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.
* 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
|
* 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__().
* Updated changelog with 1.3.3 release date1.3.3Kevin Van Brunt2020-08-131-1/+1
|
* Merge pull request #975 from python-cmd2/help_format_fixKevin Van Brunt2020-08-135-38/+133
|\ | | | | Fix tuple metavar crash in Cmd2HelpFormatter and ArgparseCompleter
| * Fixed tab completion bug when using CompletionItem on an argument whose ↵Kevin Van Brunt2020-08-133-20/+98
| | | | | | | | metavar is a tuple
| * Fixed changelog commentTodd Leonhardt2020-08-121-1/+1
| |
| * Add unit test and update CHANGELOGTodd Leonhardt2020-08-122-0/+8
| |
| * Fixed bug when trying to format help text of argument which used a tuple as ↵Kevin Van Brunt2020-08-121-18/+27
|/ | | | its metavar
* When passing a ns_provider to an argparse command, will now attempt to ↵Eric Lin2020-08-126-49/+96
| | | | resolve the correct CommandSet instance for self. If not, it'll fall back and pass in the cmd2 app
* Breaking change: Removed cmd2 app as a required second parameter toEric Lin2020-08-1215-288/+229
| | | | | | CommandSet command functions (do_, complete_, help_). Renamed install_command_set and uninstall_command_set to register_command_set and unregister_command_set.
* Updated CHANGELOGEric Lin2020-08-111-1/+2
|
* Minor fixes to enable Python 3.5.2 supportEric Lin2020-08-111-2/+7
|
* Adding explicit python 3.5.2 test to nox, travisEric Lin2020-08-113-6/+14
| | | | | | | Python 3.5.2 introduced a bug in typing that was fixed in 3.5.3. The bug in typing prevents the latest nox from running properly. Ubuntu 16.04 stopped at python 3.5.2. To work-around, force an older version of nox when testing 3.5.2
* Adding explicit python 3.5.3 test to nox, travis.Eric Lin2020-08-104-2/+22
| | | | Copied 3.5.4 definition of typing.Deque
* Updated with missing doc-string for new CommandSet parameters for cmd2.Cmd's ↵Eric Lin2020-08-101-0/+8
| | | | constructor