public interface Command
Modifier and Type | Method and Description |
---|---|
void |
execute(Arguments arguments,
java.lang.ClassLoader classLoader)
Executes the command using the provided arguments.
|
default java.lang.String |
getHelp()
Gets details help for the command.
|
java.lang.String |
getName()
Gets the name of the command.
|
Parser |
getParser()
Gets the parser of the command.
|
java.lang.String |
getSummary()
Gets a short summary of the command that's shown in the main help.
|
java.lang.String getName()
The returned name should contain no spaces or special characters.
java.lang.String getSummary()
default java.lang.String getHelp()
Returning an empty string omits detailed help.
Parser getParser()
void execute(Arguments arguments, java.lang.ClassLoader classLoader)
arguments
- CLI arguments.classLoader
- ClassLoader to use in the command.