summaryrefslogtreecommitdiff
path: root/examples/modular_commands/commandset_custominit.py
Commit message (Collapse)AuthorAgeFilesLines
* Changed isort to force wrapping of imports to reduce merge conflicts from ↵Eric Lin2021-01-221-1/+6
| | | | minor import changes.
* Breaking change: Removed cmd2 app as a required second parameter toEric Lin2020-08-121-2/+2
| | | | | | CommandSet command functions (do_, complete_, help_). Renamed install_command_set and uninstall_command_set to register_command_set and unregister_command_set.
* updated importsEric Lin2020-08-041-1/+1
| | | | Added additional documentation
* Updates the example to remove usage of the now remove ability toEric Lin2020-08-041-13/+1
| | | | | | | | | | register arbitrary functions as commands. Added example that demonstrates use of each of the command decorators with CommandSets. Adds unit test that verifies that CommandSets containing decorators load and process commands correctly. Updated the constructor declaration for Cmd2ArgumentParser to explicitly re-declare argparse constructor parameters.
* Sort imports using isortTodd Leonhardt2020-08-041-1/+1
|
* Some minor cleanup of how imports work. Fixed issue with help documentation ↵Eric Lin2020-08-041-2/+1
| | | | | | for CommandSet commands. Issue #943
* Initial implementation of modular command loadingEric Lin2020-08-041-0/+33
Issue #943 New class CommandSet can be used to tag a class as a command class. If the constructor is simple, the object will automatically be instantiated and loaded. New register_command decorator to tag any arbitrary function as a command.