public interface ShellCommand
| 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.
|
org.crsh.cli.impl.completion.CompletionMatch complete(RuntimeContext context, java.lang.String line) throws CommandCreationException
context - the command contextline - the original command line argumentsCommandCreationExceptionjava.lang.String describe(java.lang.String line,
DescriptionFormat mode)
throws CommandCreationException
line - the usage linemode - the description modeCommandCreationExceptionCommandInvoker<?,?> resolveInvoker(java.lang.String line) throws CommandCreationException
line - the command line argumentsCommandCreationExceptionCommandInvoker<?,?> 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
options - the base optionssubordinate - the subordinate command name, might nullsubordinateOptions - the subordinate optionsarguments - argumentsCommandCreationExceptionCopyright © 2014 eXo Platform SAS. All Rights Reserved.