Command manager¶
Noseapp framework have command manager.
Usage:
>>> noseapp-manage <command name> <command args> <command kwargs> [options]
Example:
>>> noseapp-manage help
NoseApp management.
Command line interface:
noseapp-manage <command name>, <command args>, <command kwargs> [options]
Example:
noseapp-manage command argument1 argument2 argument3=value
Commands:
* help
* run
-
noseapp.manage.funcs.
register_command
(name, command)[source]¶ Register command to run.
Usage:
def say_hello(): "Help here" print 'Hello world!' register_command('hello', say_hello) # to run: noseapp-manage hello # help: noseapp-manage help hello
Parameters: - name – command name
- command – callable object