Adding a New Command¶
It is easy to add a new command, even without “adding it” to the carml
source code. See an example command in
So, if you
you should get a “blam” sub-command for carml. Copy/paste the blam.py
to your own path, and replace “blam” with your command name.
- “run()” should return a Deferred. Doing errback or callback on it causes the process to exit. (See
monitor.pyfor an example of how to exit or not depending on options).
- if your command doesn’t show up, make sure that
python path/to/blam.pyor whatever runs without errors (e.g. syntax etc)