Uses of Class
org.jline.shell.ShellBuilder
Packages that use ShellBuilder
Package
Description
Clean shell API for building interactive command-line applications with JLine.
-
Uses of ShellBuilder in org.jline.shell
Methods in org.jline.shell that return ShellBuilderModifier and TypeMethodDescriptionShellBuilder.aliasManager(AliasManager aliasManager) Sets the alias manager for the shell.static ShellBuilderShell.builder()Creates a newShellBuilder.ShellBuilder.commandHighlighter(boolean enable) Enables or disables the built-in command-aware syntax highlighter.ShellBuilder.dispatcher(CommandDispatcher dispatcher) Sets the command dispatcher.ShellBuilder.groups(CommandGroup... groups) Adds command groups to the dispatcher.ShellBuilder.helpCommands(boolean enable) Enables or disables built-in help commands (help).ShellBuilder.highlighter(Highlighter highlighter) Sets a custom highlighter for the shell'sLineReader.ShellBuilder.historyCommands(boolean enable) Enables or disables built-in history commands (history).ShellBuilder.historyFile(Path historyFile) Sets the history file path.ShellBuilder.initScript(File initScript) Sets the initialization script to execute on startup.ShellBuilder.jobManager(JobManager jobManager) Sets the job manager for the shell.ShellBuilder.lineExpander(LineExpander lineExpander) Sets the line expander for variable expansion.ShellBuilder.onReaderReady(BiConsumer<LineReader, CommandDispatcher> onReaderReady) Sets a callback invoked after the LineReader is created but beforeShell.run().ShellBuilder.onReaderReady(Consumer<LineReader> onReaderReady) Sets a callback invoked after the LineReader is created but beforeShell.run().ShellBuilder.option(LineReader.Option option, boolean value) Sets a LineReader option.ShellBuilder.optionCommands(boolean enable) Enables or disables built-in option commands (setopt,unsetopt,setvar).Sets the line parser.ShellBuilder.pipelineParser(PipelineParser pipelineParser) Sets a custom pipeline parser for the shell.Sets a static prompt string.Sets a dynamic prompt supplier, called before each line read.ShellBuilder.rightPrompt(String rightPrompt) Sets a static right prompt string.ShellBuilder.rightPrompt(Supplier<String> rightPromptSupplier) Sets a dynamic right prompt supplier, called before each line read.ShellBuilder.scriptCommands(boolean enable) Enables or disables built-in script commands (source,.).ShellBuilder.scriptRunner(ScriptRunner scriptRunner) Sets the script runner for executing script files.Sets the terminal for the shell.Sets a LineReader variable.ShellBuilder.variableCommands(boolean enable) Enables or disables built-in variable commands (set,unset,export).