public class GroovyScriptShellCommand<C extends GroovyScriptCommand> extends java.lang.Object implements ShellCommand
| Constructor and Description |
|---|
GroovyScriptShellCommand(java.lang.Class<C> clazz) |
| Modifier and Type | Method and Description |
|---|---|
org.crsh.cli.impl.completion.CompletionMatch |
complete(RuntimeContext context,
java.lang.String line)
Provide completions for the specified arguments.
|
java.lang.String |
describe(java.lang.String line,
DescriptionFormat mode)
Returns a description of the command or null if none can be found.
|
CommandInvoker<?,?> |
resolveInvoker(java.util.Map<java.lang.String,?> options,
java.lang.String subordinate,
java.util.Map<java.lang.String,?> subordinateOptions,
java.util.List<?> arguments)
Provides an invoker for the command line specified in a detyped manner.
|
CommandInvoker<?,?> |
resolveInvoker(java.lang.String line)
Provides an invoker for the command line specified as a command line to parse.
|
public GroovyScriptShellCommand(java.lang.Class<C> clazz)
public final org.crsh.cli.impl.completion.CompletionMatch complete(RuntimeContext context, java.lang.String line)
ShellCommandcomplete in interface ShellCommandcontext - the command contextline - the original command line argumentspublic final java.lang.String describe(java.lang.String line,
DescriptionFormat mode)
ShellCommanddescribe in interface ShellCommandline - the usage linemode - the description modepublic final CommandInvoker<?,?> resolveInvoker(java.lang.String line) throws CommandCreationException
ShellCommandresolveInvoker in interface ShellCommandline - the command line argumentsCommandCreationExceptionpublic final CommandInvoker<?,?> resolveInvoker(java.util.Map<java.lang.String,?> options, java.lang.String subordinate, java.util.Map<java.lang.String,?> subordinateOptions, java.util.List<?> arguments) throws CommandCreationException
ShellCommandresolveInvoker in interface ShellCommandoptions - the base optionssubordinate - the subordinate command name, might nullsubordinateOptions - the subordinate optionsarguments - argumentsCommandCreationExceptionCopyright © 2014 eXo Platform SAS. All Rights Reserved.