Package org.jline.console.impl
Class Builtins
java.lang.Object
org.jline.console.impl.AbstractCommandRegistry
org.jline.console.impl.JlineCommandRegistry
org.jline.console.impl.Builtins
- All Implemented Interfaces:
CommandRegistry
Builtins: create tab completers, execute and create descriptions for builtins commands.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.jline.console.CommandRegistry
CommandRegistry.CommandSession
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBuiltins
(Supplier<Path> workDir, ConfigurationPath configPath, Function<String, Widget> widgetCreator) Builtins
(Set<Builtins.Command> commands, Path workDir, ConfigurationPath configpath, Function<String, Widget> widgetCreator) Builtins
(Set<Builtins.Command> commands, Supplier<Path> workDir, ConfigurationPath configpath, Function<String, Widget> widgetCreator) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
colors
(CommandInput input) private void
highlighter
(CommandInput input) highlighterCompleter
(String name) private void
history
(CommandInput input) historyCompleter
(String name) private void
keymap
(CommandInput input) private void
less
(CommandInput input) lessCompleter
(String name) private void
nano
(CommandInput input) nanoCompleter
(String name) void
setLineReader
(LineReader reader) private void
setopt
(CommandInput input) setoptCompleter
(String name) private void
setvar
(CommandInput input) setvarCompleter
(String name) private void
ttop
(CommandInput input) private void
unsetopt
(CommandInput input) unsetoptCompleter
(String name) unsetOptions
(boolean set) private void
widget
(CommandInput input) widgetCompleter
(String name) Methods inherited from class org.jline.console.impl.JlineCommandRegistry
commandDescription, commandInfo, commandOptions, compileCommandDescription, compileCommandInfo, compileCommandOptions, defaultCompleter, parseOptions
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
commandAliases, commandDescription, commandInfo, commandNames, compileCompleters, hasCommand, invoke, name
-
Field Details
-
configPath
-
widgetCreator
-
workDir
-
reader
-
-
Constructor Details
-
Builtins
-
Builtins
public Builtins(Set<Builtins.Command> commands, Path workDir, ConfigurationPath configpath, Function<String, Widget> widgetCreator) -
Builtins
-
Builtins
public Builtins(Set<Builtins.Command> commands, Supplier<Path> workDir, ConfigurationPath configpath, Function<String, Widget> widgetCreator)
-
-
Method Details
-
setLineReader
-
less
-
nano
-
history
-
widget
-
keymap
-
setopt
-
setvar
-
unsetopt
-
ttop
-
colors
-
highlighter
-
unsetOptions
-
highlighterCompleter
-
allWidgets
-
nanoCompleter
-
lessCompleter
-
historyCompleter
-
widgetCompleter
-
setvarCompleter
-
setoptCompleter
-
unsetoptCompleter
-