base
dev_tool.commands.base
REGISTRY = OrderedDict()
module-attribute
CommandGroup
A base class for command groups.
This class provides automatic registration of decorated methods when the class is instantiated.
The constructor for the CommandGroup class.
This method finds all methods decorated with a register attribute and calls their register method to register them with the command system.
Source code in dev_tool/commands/base.py
ordered_command
A decorator for registering command functions.
This decorator registers a method as a command with the specified label.
Parameters:
-
label(str) –The human-readable label for the command.
Returns:
-
Callable–A decorator function.
Source code in dev_tool/commands/base.py
ordered_submenu
A decorator for registering submenu functions.
This decorator registers a method as a submenu provider with the specified label.
Parameters:
-
label(str) –The human-readable label for the submenu.
Returns:
-
Callable–A decorator function.