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, setCommandContext
public 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 AbstractCommand
tokens
- - command argumentsException
protected void printHelp()
printHelp
in class AbstractCommand
Copyright © 2005–2018 FuseSource, Corp.. All rights reserved.