public interface ShellCommand
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Called to execute the command.
|
void |
print(String formattedMessage,
Object... params)
Prints the given message to the output stream.
|
void |
printHelp()
Prints the help text for this command.
|
void |
printUsage()
Prints the usage help for this command.
|
void |
setArguments(Arguments arguments)
Sets the arguments that can be used by this command.
|
void |
setContext(ShellContext context)
The shell context.
|
void |
setOutput(Writer output)
Configure the command's output.
|
int |
tabCompletion(String lastArgument,
List<CharSequence> candidates)
Handle tab completion for the command.
|
void setArguments(Arguments arguments)
arguments - void setOutput(Writer output)
output - void setContext(ShellContext context)
context - void printUsage()
void printHelp()
void print(String formattedMessage, Object... params)
formattedMessage - params - int tabCompletion(String lastArgument, List<CharSequence> candidates)
lastArgument - candidates - Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.