summaryrefslogtreecommitdiff
path: root/docs/features/modular_commands.rst
Commit message (Collapse)AuthorAgeFilesLines
* docs/features/modular_commands: fix broken linkKevin "Tristate Tom" Weiss2021-01-281-1/+1
| | | | | | | | | I guess the examples structure has changed since the docs. I suggest changing the broken link: https://github.com/python-cmd2/cmd2/tree/master/plugins/command_sets/examples to https://github.com/python-cmd2/cmd2/tree/master/examples/modular_commands Maybe also hiding the full link is nice.
* typoStratos Gerakakis2020-10-101-1/+1
|
* Fixed type hints in example code1.3.9Kevin Van Brunt2020-09-031-1/+1
|
* Documented CommandSet event handlersKevin Van Brunt2020-09-031-1/+29
|
* Updated docsKevin Van Brunt2020-09-011-4/+4
|
* Fixed issue where subcommand added with @as_subcommand_to decorator did not ↵Kevin Van Brunt2020-08-271-2/+2
| | | | | | 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 functions cmd2 adds to Namespaces (get_statement() and get_handler()) ↵Kevin Van Brunt2020-08-261-1/+1
| | | | | | | 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.
* Breaking change: Removed cmd2 app as a required second parameter toEric Lin2020-08-121-34/+35
| | | | | | CommandSet command functions (do_, complete_, help_). Renamed install_command_set and uninstall_command_set to register_command_set and unregister_command_set.
* Verify that a completer function is defined in a CommandSet beforeEric Lin2020-08-061-1/+2
| | | | | | | | | | 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
* Minor formatting fixes. Injecting a function into namespace objects before ↵Eric Lin2020-08-041-3/+3
| | | | passing to command handlers to access sub-command handlers
* Fix a couple doc8 warningsTodd Leonhardt2020-08-041-5/+7
|
* Suggested PR Fixes.Eric Lin2020-08-041-5/+5
| | | | | sub-commande => subcommand Added help/aliases to `as_subcommand_to` decorator.
* Adds support for injectable subcommands as part of CommandSetEric Lin2020-08-041-0/+126
| | | | | | load/unload. Updated examples and documentation to include discussion of injectable sub-commands.
* updated importsEric Lin2020-08-041-0/+201
Added additional documentation