Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Changes default category to be heritable by default - meaning that ↵ | Eric Lin | 2020-09-11 | 1 | -3/+21 |
| | | | | | | subclasses will inherit the parent class's default category. Adds optional flag to disable heritability. | ||||
* | Added CommandSet.on_unregistered() | Kevin Van Brunt | 2020-09-03 | 1 | -7/+14 |
| | |||||
* | Added on_registered() callback to CommandSet | Kevin Van Brunt | 2020-09-01 | 1 | -2/+9 |
| | |||||
* | When passing a ns_provider to an argparse command, will now attempt to ↵ | Eric Lin | 2020-08-12 | 1 | -2/+1 |
| | | | | 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 | 1 | -33/+2 |
| | | | | | | CommandSet command functions (do_, complete_, help_). Renamed install_command_set and uninstall_command_set to register_command_set and unregister_command_set. | ||||
* | Will now traverse down CommandSet inheritance tree to find all leaf descendants.1.3.2 | Eric Lin | 2020-08-10 | 1 | -1/+5 |
| | | | | | | 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 | ||||
* | updated imports | Eric Lin | 2020-08-04 | 1 | -1/+1 |
| | | | | Added additional documentation | ||||
* | Removed support for functions outside of CommandSets | Eric Lin | 2020-08-04 | 1 | -25/+0 |
| | |||||
* | Sort imports using isort | Todd Leonhardt | 2020-08-04 | 1 | -7/+2 |
| | |||||
* | Appears to be a type hinting olution that works for flake, sphinx, and PyCharm | Eric Lin | 2020-08-04 | 1 | -8/+11 |
| | |||||
* | Added more command validation. Moved some common behavior into private ↵ | Eric Lin | 2020-08-04 | 1 | -1/+1 |
| | | | | functions. | ||||
* | Fixes to sphinx generation | Eric Lin | 2020-08-04 | 1 | -1/+1 |
| | |||||
* | Fixes issue with locating help_ annd complete_ functions when autoloading ↵ | Eric Lin | 2020-08-04 | 1 | -21/+8 |
| | | | | | | command functions Adds handling of some edge cases. More thorough test coverage. | ||||
* | add ability to remove commands and commandsets | Eric Lin | 2020-08-04 | 1 | -1/+8 |
| | | | | Issue #943 | ||||
* | Some minor cleanup of how imports work. Fixed issue with help documentation ↵ | Eric Lin | 2020-08-04 | 1 | -3/+18 |
| | | | | | | for CommandSet commands. Issue #943 | ||||
* | Initial implementation of modular command loading | Eric Lin | 2020-08-04 | 1 | -0/+122 |
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. |