summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d494dab)
Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
--- /dev/null
+To add a new command to wizard, you need to touch the following
+locations:
+
+- bin/wizard
+ Add a line describing your command in the helpstring
+- lib/wizard/command/__init__.py
+ Add the line "import commandname"
+- lib/wizard/command/commandname.py
+ Implement your command there as main()
if command == "help":
try:
getattr(wizard.command, rest_argv[0])(['-h'], options)
if command == "help":
try:
getattr(wizard.command, rest_argv[0])(['-h'], options)
parser.error("invalid action")
except IndexError:
parser.print_usage()
parser.error("invalid action")
except IndexError:
parser.print_usage()