summaryrefslogtreecommitdiff
path: root/examples/python_scripting.py
diff options
context:
space:
mode:
authoranselor <anselor@gmail.com>2020-08-01 16:26:11 -0400
committeranselor <anselor@gmail.com>2020-08-04 13:38:08 -0400
commit9d309939286f4944cb083dfd4f320c442bc99d76 (patch)
treedbfc6c82ede0c146bade33f12016ac072c90b5d3 /examples/python_scripting.py
parentc854ba817fb3e69931990a7c2f79ce3863dbb596 (diff)
downloadcmd2-git-9d309939286f4944cb083dfd4f320c442bc99d76.tar.gz
Now maintains a command->CommandSet mapping and passes the CommandSet
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.
Diffstat (limited to 'examples/python_scripting.py')
0 files changed, 0 insertions, 0 deletions