public interface Command extends Named
An interface that represents a command to be executed by the Grails command line. Commands are by default global, however a command can be made specific to a particular Profile by implementation the ProfileCommand interface.
Type Params | Return Type | Name and description |
---|---|---|
|
public CommandDescription |
getDescription()
|
|
public String |
getFullName() Return the full name of a command. |
|
public String |
getNamespace() Return the namespace of the command. |
|
public boolean |
handle(ExecutionContext executionContext) run the command |
|
public boolean |
isDeprecated() Returns true if this command is deprecated. |
|
public boolean |
isVisible() Returns true if this is a visible command. |
Return the full name of a command.
If the command have a namespace, the full name will be namespace:name
.
Return the namespace of the command.
run the command
executionContext
- The ExecutionContext Returns true if this command is deprecated.
The default value is false
.
Returns true if this is a visible command. A visible command will be listed in 'help'
command.
The default value is true
.