public interface Command
A single command that can be run from the CLI.
Type Params | Return Type | Name and description |
---|---|---|
|
public java.lang.String |
getDescription() Returns a description of the command. |
|
public java.util.Collection<HelpExample> |
getExamples() Return some examples for the command. |
|
public java.lang.String |
getHelp() Gets full help text for the command, e.g. a longer description and one line per option. |
|
public java.lang.String |
getName() Returns the name of the command. |
|
public java.util.Collection<OptionHelp> |
getOptionsHelp() Returns help for each supported option. |
|
public java.lang.String |
getUsageHelp() Returns usage help for the command. |
|
public ExitStatus |
run(java.lang.String args) Run the command. |
Returns a description of the command.
Return some examples for the command.
Gets full help text for the command, e.g. a longer description and one line per option.
Returns the name of the command.
Returns help for each supported option.
Returns usage help for the command. This should be a simple one-line string describing basic usage. e.g. '[options] <file>'. Do not include the name of the command in this string.
Run the command.
args
- command arguments (this will not include the command itself)