public class ShellCommand extends AbstractCommand
COMMAND_OPTION_DELIMETER, context| Constructor and Description |
|---|
ShellCommand() |
ShellCommand(boolean interactive) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
String |
getOneLineDescription() |
boolean |
isInteractive() |
static void |
main(String[] args) |
static int |
main(String[] args,
InputStream in,
PrintStream out)
Main method to run a command shell client.
|
protected void |
printHelp()
Print the help messages for the browse command
|
protected void |
runTask(List<String> tokens)
Parses for specific command task.
|
void |
setInteractive(boolean interactive) |
execute, handleOption, parseOptions, printHelpFromFile, setCommandContextpublic ShellCommand()
public ShellCommand(boolean interactive)
public String getOneLineDescription()
public static int main(String[] args, InputStream in, PrintStream out)
args - - command line argumentsin - - input stream to useout - - output stream to usepublic boolean isInteractive()
public void setInteractive(boolean interactive)
protected void runTask(List<String> tokens) throws Exception
runTask in class AbstractCommandtokens - - command argumentsExceptionprotected void printHelp()
printHelp in class AbstractCommandCopyright © 2005–2016 FuseSource, Corp.. All rights reserved.