@Deprecated abstract class CommandSupport extends Object implements CommandLine.Command
Support for Command instances.
Modifiers | Name | Description |
---|---|---|
protected static String |
NEWLINE |
|
protected IO |
io |
The I/O container for the command to spit stuff out. |
protected Logger |
log |
Instance logger for the command, initialized late to include the command name. |
protected MessageSource |
messages |
i18n message source for the command. |
protected CommandRegistry |
registry |
Provides the command instance with the registry, for aliasing support. |
protected Groovysh |
shell |
The owning shell. |
Constructor and description |
---|
protected CommandSupport
(Groovysh shell, String name, String shortcut) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
alias(String name, String shortcut) |
|
protected void |
assertNoArguments(List<String> args) |
|
protected List<Completer> |
createCompleters() Override to provide custom completion semantics for the command. |
|
protected void |
fail(String msg) |
|
protected void |
fail(String msg, Throwable cause) |
|
List |
getAliases() |
|
protected Binding |
getBinding() |
|
protected List<String> |
getBuffer() |
|
protected BufferManager |
getBuffers() |
|
protected GroovyClassLoader |
getClassLoader() |
|
Completer |
getCompleter() Setup the Completer for the command. |
|
String |
getDescription() |
|
String |
getHelp() |
|
boolean |
getHidden() |
|
protected FileHistory |
getHistory() |
|
protected List<String> |
getImports() |
|
String |
getName() |
|
String |
getShortcut() |
|
String |
getUsage() |
|
protected Map |
getVariables() |
The I/O container for the command to spit stuff out.
Instance logger for the command, initialized late to include the command name.
i18n message source for the command.
Provides the command instance with the registry, for aliasing support.
The owning shell.
Standard aliases for the command.
Flag to indicate if the command should be hidden or not.
The name of the command.
The shortcut switch
Override to provide custom completion semantics for the command.
Copyright © 2003-2020 The Apache Software Foundation. All rights reserved.