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 example_extension/carml/command/

So, if you export PYTHONPATH=path/to/example_extension:$PYTHONPATH you should get a “blam” sub-command for carml. Copy/paste the to your own path, and replace “blam” with your command name.

Some notes:

  • “run()” should return a Deferred. Doing errback or callback on it causes the process to exit. (See for an example of how to exit or not depending on options).
  • if your command doesn’t show up, make sure that python path/to/ or whatever runs without errors (e.g. syntax etc)