Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | More things to make mypy happy. | Eric Lin | 2021-04-02 | 1 | -5/+10 |
| | |||||
* | Resolves comments from PR | Eric Lin | 2021-03-18 | 1 | -5/+8 |
| | |||||
* | Each CommandSet's settables are defined separately. cmd2.Cmd searches all ↵ | Eric Lin | 2021-03-18 | 1 | -0/+40 |
| | | | | | | | | registered CommandSets for settables. Settables can now set any attribute on any object passed to it. The name the user sees may be set to a different value than what the actual attribute is. Cmd2 will now aggregate all settables on the cmd2.Cmd instance with each installed CommandSet. | ||||
* | Deprecate Python 3.5 | Todd Leonhardt | 2021-02-20 | 1 | -1/+1 |
| | |||||
* | Add in isort changes | Todd Leonhardt | 2021-01-31 | 1 | -4/+13 |
| | |||||
* | Add black for automatic code format | Todd Leonhardt | 2021-01-31 | 1 | -6/+9 |
| | |||||
* | Changed isort to force wrapping of imports to reduce merge conflicts from ↵ | Eric Lin | 2021-01-22 | 1 | -4/+12 |
| | | | | minor import changes. | ||||
* | 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. |