public abstract class ACommand extends Object
This is the contract of CLI commands. All the abstract subtypes are merely convenient partial implementations.
A command in CloudBees SDK is usually invoked as a sub-command of the bees command. It takes arbitrary numbers of arguments, whose meanings are entirely up to command implmentations. A command interacts with stdin/stdout/stderr.
Commands are instantiated with Guice, so they receive dependency injections.
public abstract int run(List<String> args) throws Exception
args - Never empty, never null. The first argument is the command name itself,
followed by argumentsExceptionCopyright © 2011-2013. All Rights Reserved.