public interface Command extends Named
Modifier and Type | Interface and Description |
---|---|
static interface |
Command.Output
Encapsulates the output functionality used by commands to render their output.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(Command.Output output,
String... params)
Executes the given command with the given parameters.
|
String |
getDescription()
Returns a short description of the command.
|
void execute(Command.Output output, String... params) throws Exception
output
- provides access to the output interface used to generate outputparams
- provides the parameters entered in the consoleException
- in case of an error. Throw a HandledException
to
signal, that all logging and handling has already been performed.
Any other exception will be logged and reported as system error.String getDescription()
Copyright © 2018. All rights reserved.