Revision 16d7b9ff kamaki/cli/__init__.py
b/kamaki/cli/__init__.py | ||
---|---|---|
110 | 110 |
|
111 | 111 |
def command(cmd_tree, prefix='', descedants_depth=1): |
112 | 112 |
"""Load a class as a command |
113 |
e.g. spec_cmd0_cmd1 will be command spec cmd0 |
|
113 |
e.g., spec_cmd0_cmd1 will be command spec cmd0
|
|
114 | 114 |
|
115 | 115 |
:param cmd_tree: is initialized in cmd_spec file and is the structure |
116 | 116 |
where commands are loaded. Var name should be _commands |
Also available in: Unified diff