public interface ShellCommand
| Modifier and Type | Method and Description |
|---|---|
CompletionMatch |
complete(RuntimeContext context,
String line)
Provide completions for the specified arguments.
|
String |
describe(String line,
DescriptionFormat mode)
Returns a description of the command or null if none can be found.
|
CommandInvoker<?,?> |
resolveInvoker(String line)
Provides an invoker for the command line specified as a command line to parse.
|
CommandInvoker<?,?> |
resolveInvoker(String name,
Map<String,?> options,
List<?> args)
Provides an invoker for the command line specified under the form of a command, options and arguments.
|
CompletionMatch complete(RuntimeContext context, String line) throws CommandCreationException
context - the command contextline - the original command line argumentsCommandCreationExceptionString describe(String line, DescriptionFormat mode)
line - the usage linemode - the description modeCommandInvoker<?,?> resolveInvoker(String line) throws CommandCreationException
line - the command line argumentsCommandCreationExceptionCommandInvoker<?,?> resolveInvoker(String name, Map<String,?> options, List<?> args) throws CommandCreationException
name - the command name, might be nulloptions - the optionsargs - the argumentsCommandCreationExceptionCopyright © 2013 eXo Platform SAS. All Rights Reserved.