|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ShellCommand
A shell command.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
CompletionMatch complete(RuntimeContext context,
String line)
context - the command contextline - the original command line arguments
String describe(String line,
DescriptionFormat mode)
line - the usage linemode - the description mode
CommandInvoker<?,?> resolveInvoker(String line)
line - the command line arguments
CommandInvoker<?,?> resolveInvoker(String name,
Map<String,?> options,
List<?> args)
name - the command name, might be nulloptions - the optionsargs - the arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||