Interface Command
-
- All Known Implementing Classes:
AbstractCommand
,CLI
,CommandGroup
,LoginCommand
,LogoutCommand
,TeamCommandGroup
,UserCommandGroup
public interface Command
Interface for commands.- Since:
- 5.0
- Author:
- Kaz Nishimura
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default String
getDescription()
Returns the description of the command.void
run(String name, String[] args)
Runs the command.
-
-
-
Method Detail
-
run
void run(String name, String[] args)
Runs the command.- Parameters:
name
- invocation name of the commandargs
- command arguments
-
getDescription
default String getDescription()
Returns the description of the command. This method is used to make a list of commands.The default implementation returns
"(undocumented)"
.- Returns:
- description of the command
-
-