Package org.jline.console.impl
Class JlineCommandRegistry
java.lang.Object
org.jline.console.impl.AbstractCommandRegistry
org.jline.console.impl.JlineCommandRegistry
- All Implemented Interfaces:
CommandRegistry
- Direct Known Subclasses:
Builtins
,ConsoleEngineImpl
,DefaultPrinter
CommandRegistry common methods for JLine commands that are using HelpException.
- Author:
- Matti Rinta-Nikkola
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jline.console.CommandRegistry
CommandRegistry.CommandSession
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncommandDescription
(List<String> args) Returns a command description for use in the JLine Widgets framework.commandInfo
(String command) Returns a short info about command known by this registry.commandOptions
(String command) static CmdDesc
compileCommandDescription
(String helpMessage) compileCommandInfo
(String helpMessage) static List
<Completers.OptDesc> compileCommandOptions
(String helpMessage) defaultCompleter
(String command) parseOptions
(String[] usage, Object[] args) Methods inherited from class org.jline.console.impl.AbstractCommandRegistry
alias, commandAliases, commandNames, compileCompleters, doHelpDesc, getCommandMethods, hasCommand, invoke, registerCommands, registerCommands, registeredCommand, rename, saveException
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jline.console.CommandRegistry
name
-
Constructor Details
-
JlineCommandRegistry
public JlineCommandRegistry()
-
-
Method Details
-
commandInfo
Description copied from interface:CommandRegistry
Returns a short info about command known by this registry.- Parameters:
command
- the command name- Returns:
- a short info about command
-
commandDescription
Description copied from interface:CommandRegistry
Returns a command description for use in the JLine Widgets framework. Default method must be overridden to return sub command descriptions.- Parameters:
args
- command (args[0]) and its arguments- Returns:
- command description for JLine TailTipWidgets to be displayed in the terminal status bar.
-
commandOptions
-
defaultCompleter
-
parseOptions
- Throws:
Options.HelpException
-
compileCommandDescription
-
compileCommandOptions
-
compileCommandInfo
-