|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CLITool
Classes that implement this interface provide a shell tool with a command line interface.
Method Summary | |
---|---|
void |
exit(int exitcode)
Calls the exit method |
void |
help()
Writes help message to implementation specific output channel. |
org.apache.commons.cli.CommandLine |
parseArgs(java.lang.String[] args)
Reads the argument vector and constructs a CommandLine object containing params |
void |
run(java.lang.String[] args)
The run method carries out the lifecycle of the tool, parsing args, handling exceptions, and exiting with a suitable exit code. |
Methods inherited from interface com.dtolabs.rundeck.core.execution.BaseLogger |
---|
debug, error, log, verbose, warn |
Method Detail |
---|
org.apache.commons.cli.CommandLine parseArgs(java.lang.String[] args) throws CLIToolOptionsException
CommandLine
object containing params
args
- the cli arg vector
CLIToolOptionsException
void run(java.lang.String[] args) throws CLIToolException
args
- the cli arg vector
CLIToolException
void exit(int exitcode)
exitcode
- return code to exit withvoid help()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |