| Constructor and Description |
|---|
ScriptCommand(String script) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Returns a description of the command.
|
String |
getHelp()
Gets full help text for the command, e.g.
|
protected Object |
getMain() |
String |
getName()
Returns the name of the command.
|
String |
getUsageHelp()
Returns usage help for the command.
|
void |
run(String... args)
Run the command.
|
void |
setPaths(String[] paths)
Paths to search for script files.
|
public ScriptCommand(String script)
public String getName()
Commandpublic String getDescription()
CommandgetDescription in interface Commandpublic String getHelp()
Commandpublic void run(String... args) throws Exception
Commandpublic void setPaths(String[] paths)
paths - the paths to setpublic String getUsageHelp()
CommandgetUsageHelp in interface Commandprotected Object getMain()
Copyright © 2013. All Rights Reserved.