public abstract class JlineCommandRegistry extends AbstractCommandRegistry
CommandRegistry.CommandSession| Constructor and Description |
|---|
JlineCommandRegistry() |
| Modifier and Type | Method and Description |
|---|---|
CmdDesc |
commandDescription(List<String> args)
Returns a command description for use in the JLine Widgets framework.
|
List<String> |
commandInfo(String command)
Returns a short info about command known by this registry.
|
List<Completers.OptDesc> |
commandOptions(String command) |
static CmdDesc |
compileCommandDescription(String helpMessage) |
static List<String> |
compileCommandInfo(String helpMessage) |
static List<Completers.OptDesc> |
compileCommandOptions(String helpMessage) |
List<org.jline.reader.Completer> |
defaultCompleter(String command) |
Options |
parseOptions(String[] usage,
Object[] args) |
alias, commandAliases, commandNames, compileCompleters, doHelpDesc, getCommandMethods, hasCommand, invoke, registerCommands, registerCommands, registeredCommand, rename, saveExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaggregateCompleters, compileCompleters, namepublic List<String> commandInfo(String command)
CommandRegistrycommand - the command namepublic CmdDesc commandDescription(List<String> args)
CommandRegistryargs - command (args[0]) and its argumentspublic List<Completers.OptDesc> commandOptions(String command)
public Options parseOptions(String[] usage, Object[] args) throws Options.HelpException
Options.HelpExceptionpublic static List<Completers.OptDesc> compileCommandOptions(String helpMessage)
Copyright © 2020. All rights reserved.