[Groovy] Class RegisterCommand
- org.codehaus.groovy.tools.shell.commands.RegisterCommand
The 'register' command. Registers a class as a new groovysh command. Requires the command to have matching constructors (shell) or (shell, name, alias).
- Authors:
- Chris K Wensel
| Fields inherited from class | Fields |
|---|---|
class CommandSupport | NEWLINE, io, log, messages, registry, shell |
Properties Summary
| Type | Name and description |
|---|---|
static String |
COMMAND_NAME |
Constructor Summary
| Constructor and description |
|---|
RegisterCommand
(Groovysh shell) |
Methods Summary
| Type Params | Return Type | Name and description |
|---|---|---|
Object |
execute(List<String> args) |
Inherited Methods Summary
| Methods inherited from class | Name |
|---|---|
class CommandSupport | alias, assertNoArguments, createCompleters, fail, fail, getAliases, getBinding, getBuffer, getBuffers, getClassLoader, getCompleter, getDescription, getHelp, getHidden, getHistory, getImports, getName, getShortcut, getUsage, getVariables |
Property Detail
static final String COMMAND_NAME
Constructor Detail
RegisterCommand(Groovysh shell)
Method Detail
@Override Object execute(List<String> args)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/org/codehaus/groovy/tools/shell/commands/RegisterCommand.html