public interface CommandAction extends Cloneable
Modifier and Type | Interface and Description |
---|---|
static class |
CommandAction.Result
Enumeration for the basic return types of a command execution.
|
Modifier and Type | Method and Description |
---|---|
CommandAction |
clone() |
Object |
execute(CommandContext context)
Execute the command action.
|
jline.console.completer.Completer[] |
getCompleters() |
MessageSource |
getMessages() |
String |
getName() |
String |
getSimpleName() |
String getName()
String getSimpleName()
MessageSource getMessages()
jline.console.completer.Completer[] getCompleters()
CommandAction clone()
Object execute(CommandContext context) throws Exception
context
- The execution context of the command.Exception
- Command execution failed.Copyright © 2008-2012 Sonatype. All Rights Reserved.