]> scripts.mit.edu Git - wizard.git/blob - README
9537da723f24faf772f9b6ecd3667138911e9170
[wizard.git] / README
1 To add a new command to wizard, you need to touch the following
2 locations:
3
4 - bin/wizard
5     Add a line describing your command in the helpstring
6 - lib/wizard/command/__init__.py
7     Add the line "import commandname"
8 - lib/wizard/command/commandname.py
9     Implement your command there as commandname()
10
11 Design decision:
12 - A mass tool will plow ahead even if the subcommand throws
13   Wizard errors.  Normal errors will cause us to halt
14   completely.  If the error that occured is within the realm
15   of possibly, and should be dealt with by manual intervention
16   (or even possibly a code change), and would not cause harm
17   if we continued going, we will keep going, and let the maintainer
18   deal later on with the errors en masse.