| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | | | Merge branch '2.0' into read_input | Kevin Van Brunt | 2020-09-05 | 2 | -44/+73 | |
| |\ \ \ | |/ / | ||||||
| | * | | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-09-05 | 2 | -44/+73 | |
| | |\ \ | | |/ | ||||||
| | | * | Added always_show_hint setting | Kevin Van Brunt | 2020-09-05 | 2 | -44/+73 | |
| | | | | | | | | | | | | | Fixed issue where flag names weren't always sorted correctly in argparse tab completion | |||||
| * | | | Merge branch '2.0' into read_input | Kevin Van Brunt | 2020-09-03 | 2 | -9/+26 | |
| |\ \ \ | |/ / | ||||||
| | * | | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-09-03 | 2 | -9/+26 | |
| | |\ \ | | |/ | ||||||
| | | * | Added CommandSet.on_unregistered() | Kevin Van Brunt | 2020-09-03 | 2 | -9/+18 | |
| | | | | ||||||
| | | * | Added on_registered() callback to CommandSet | Kevin Van Brunt | 2020-09-01 | 2 | -2/+10 | |
| | | | | ||||||
| * | | | Fixed flake8 error | Kevin Van Brunt | 2020-09-01 | 1 | -1/+4 | |
| | | | | ||||||
| * | | | Removed enum.auto() for Python 3.5 compatibility | Kevin Van Brunt | 2020-09-01 | 1 | -3/+3 | |
| | | | | ||||||
| * | | | Fixed docs error | Kevin Van Brunt | 2020-09-01 | 1 | -1/+2 | |
| | | | | ||||||
| * | | | Updated comments | Kevin Van Brunt | 2020-09-01 | 2 | -2/+6 | |
| | | | | ||||||
| * | | | Refactored ArgparseCompleter to support custom completion | Kevin Van Brunt | 2020-09-01 | 3 | -67/+59 | |
| | | | | ||||||
| * | | | Refactored read_input to support custom completion | Kevin Van Brunt | 2020-08-31 | 1 | -59/+138 | |
| | | | | ||||||
| * | | | Refactored complete() to handle custom behavior from read_input() | Kevin Van Brunt | 2020-08-31 | 1 | -74/+101 | |
| |/ / | ||||||
| * | | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-08-28 | 2 | -13/+13 | |
| |\ \ | |/ | ||||||
| | * | Fixed issue where subcommand added with @as_subcommand_to decorator did not ↵ | Kevin Van Brunt | 2020-08-27 | 1 | -9/+9 | |
| | | | | | | | | | | | | | 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.7 | Eric Lin | 2020-08-27 | 1 | -4/+4 | |
| | | | | | | | | | object to search for the original function arguments. Switched to search for the original statement value instead | |||||
| * | | Removed Namespace.__statement__ | Kevin Van Brunt | 2020-08-27 | 2 | -4/+0 | |
| | | | ||||||
| * | | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-08-27 | 4 | -18/+44 | |
| |\ \ | |/ | ||||||
| | * | The functions cmd2 adds to Namespaces (get_statement() and get_handler()) ↵ | Kevin Van Brunt | 2020-08-26 | 4 | -18/+44 | |
| | | | | | | | | | | | | | | | 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.0 | Kevin Van Brunt | 2020-08-25 | 3 | -15/+16 | |
| |\ \ | |/ | ||||||
| | * | Fixed RecursionError when printing an argparse.Namespace caused by custom ↵ | Kevin Van Brunt | 2020-08-25 | 3 | -14/+15 | |
| | | | | | | | | | | | | | attribute cmd2 was adding Added get_statement() function to argparse.Namespace which returns __statement__ attribute | |||||
| | * | Fixed typo | Kevin Van Brunt | 2020-08-21 | 1 | -1/+1 | |
| | | | ||||||
| * | | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-08-20 | 2 | -24/+39 | |
| |\ \ | |/ | ||||||
| | * | Added validation of subcommand handler attributes | Eric Lin | 2020-08-20 | 2 | -8/+17 | |
| | | | ||||||
| | * | Fixed AttributeError when CommandSet that uses as_subcommand_to decorator is ↵ | Kevin Van Brunt | 2020-08-19 | 1 | -16/+22 | |
| | | | | | | | | | loaded during cmd2.Cmd.__init__(). | |||||
| * | | Documented support for standalone functions being used as completers and ↵ | Kevin Van Brunt | 2020-08-18 | 2 | -9/+8 | |
| | | | | | | | | | | | | | choices_providers. Added unit tests for this case. | |||||
| * | | Replaced choices_function / choices_method with choices_provider. | Kevin Van Brunt | 2020-08-13 | 6 | -201/+139 | |
| |/ | | | | | | | | | Replaced completer_function / completer_method with completer. ArgparseCompleter now always passes cmd2.Cmd or CommandSet instance as the self argument to choices_provider and completer functions. Moved basic_complete from utils into cmd2.Cmd class. Moved CompletionError to exceptions.py | |||||
| * | Fixed tab completion bug when using CompletionItem on an argument whose ↵ | Kevin Van Brunt | 2020-08-13 | 1 | -15/+24 | |
| | | | | | metavar is a tuple | |||||
| * | Fixed bug when trying to format help text of argument which used a tuple as ↵ | Kevin Van Brunt | 2020-08-12 | 1 | -18/+27 | |
| | | | | | its metavar | |||||
| * | When passing a ns_provider to an argparse command, will now attempt to ↵ | Eric Lin | 2020-08-12 | 4 | -44/+65 | |
| | | | | | 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 to | Eric Lin | 2020-08-12 | 5 | -68/+26 | |
| | | | | | | | CommandSet command functions (do_, complete_, help_). Renamed install_command_set and uninstall_command_set to register_command_set and unregister_command_set. | |||||
| * | Minor fixes to enable Python 3.5.2 support | Eric Lin | 2020-08-11 | 1 | -2/+7 | |
| | | ||||||
| * | Adding explicit python 3.5.3 test to nox, travis. | Eric Lin | 2020-08-10 | 1 | -1/+10 | |
| | | | | | Copied 3.5.4 definition of typing.Deque | |||||
| * | Updated with missing doc-string for new CommandSet parameters for cmd2.Cmd's ↵ | Eric Lin | 2020-08-10 | 1 | -0/+8 | |
| | | | | | constructor | |||||
| * | Will now traverse down CommandSet inheritance tree to find all leaf descendants.1.3.2 | Eric Lin | 2020-08-10 | 2 | -9/+43 | |
| | | | | | | | CommandSet now has a check to ensure it is only registered with one cmd2.Cmd instance at a time. Adds function to find command set by type and by command name | |||||
| * | Moved a comment to better section off code | Kevin Van Brunt | 2020-08-07 | 1 | -8/+8 | |
| | | ||||||
| * | Removed unnecessary prog value from subcommand parsers | Kevin Van Brunt | 2020-08-07 | 1 | -6/+6 | |
| | | ||||||
| * | Moved code which copies subparser's settings to _register_subcommands(). | Kevin Van Brunt | 2020-08-07 | 3 | -179/+181 | |
| | | | | | | Changed alias and macro commands to use as_subcommand_to() decorator. Updated CommandSet subcommand example to use help and description text. | |||||
| * | Fixed prog value of subcommands added with as_subcommand_to() decorator. | Kevin Van Brunt | 2020-08-07 | 1 | -9/+30 | |
| | | | | | Fixed missing settings in subcommand parsers created with as_subcommand_to() decorator. | |||||
| * | Verify that a completer function is defined in a CommandSet before | Eric Lin | 2020-08-06 | 4 | -10/+75 | |
| | | | | | | | | | | | passing it a CommandSet instance. Search for a CommandSet instance that matches the completer's parent class type.` Resolves Issue #967 Renamed isolated_tests directory to tests_isolated for better visual grouping. Added some exception documentation | |||||
| * | Marked with_arparser_and_unknown_args deprecated and consolidated | Eric Lin | 2020-08-04 | 1 | -64/+33 | |
| | | | | | implementation as an option to with_argparser instead. | |||||
| * | Minor formatting fixes. Injecting a function into namespace objects before ↵ | Eric Lin | 2020-08-04 | 5 | -8/+25 | |
| | | | | | passing to command handlers to access sub-command handlers | |||||
| * | Now maintains a command->CommandSet mapping and passes the CommandSet | anselor | 2020-08-04 | 6 | -55/+168 | |
| | | | | | | | | | | | | | | | | through to the ArgparseCompleter if one is registered. For subcommands, the registered argparse instance for the subcommand is now tagged with the CommandSet from which it originated. If a CommandSet is detected, it's now passed in as 'self' for the completion functions. Fixes some issue found with removing a subcommand. Adds additional tests. Added a check to prevent removal of a CommandSet if it has commands with sub-commands from another CommandSet bound to it. Documentation improvements. Standardized around using CommandSetRegistrationException during commandset install/uninstall related errors. Added support for nested sub-command injection. | |||||
| * | Updated documentation | Kevin Van Brunt | 2020-08-04 | 1 | -2/+10 | |
| | | ||||||
| * | Updated documentation | Kevin Van Brunt | 2020-08-04 | 1 | -1/+5 | |
| | | ||||||
| * | Added handling for disabled commands to CommandSet functions | Kevin Van Brunt | 2020-08-04 | 1 | -6/+19 | |
| | | ||||||
| * | Fixes to how command callables are filtered from CommandSet | Eric Lin | 2020-08-04 | 1 | -4/+5 | |
| | | ||||||
| * | Fixed issue where we attempted to remove CommandSet from a list it was not in | Kevin Van Brunt | 2020-08-04 | 1 | -1/+2 | |
| | | ||||||
| * | Fixed typo in documentation | Kevin Van Brunt | 2020-08-04 | 1 | -3/+3 | |
| | | ||||||
