ShellBuilder |
ShellBuilder.aliasManager(AliasManager aliasManager) |
Sets the alias manager for the shell.
|
static ShellBuilder |
Shell.builder() |
|
ShellBuilder |
ShellBuilder.commandHighlighter(boolean enable) |
Enables or disables the built-in command-aware syntax highlighter.
|
ShellBuilder |
ShellBuilder.dispatcher(CommandDispatcher dispatcher) |
Sets the command dispatcher.
|
ShellBuilder |
ShellBuilder.exitCommands(boolean enable) |
Enables or disables built-in exit commands (exit, quit).
|
ShellBuilder |
ShellBuilder.exitMessage(java.lang.String message) |
Sets the message that will be printed to the terminal when the exit command is called.
|
ShellBuilder |
ShellBuilder.groups(CommandGroup... groups) |
Adds command groups to the dispatcher.
|
ShellBuilder |
ShellBuilder.helpCommands(boolean enable) |
Enables or disables built-in help commands (help).
|
ShellBuilder |
ShellBuilder.highlighter(Highlighter highlighter) |
Sets a custom highlighter for the shell's LineReader.
|
ShellBuilder |
ShellBuilder.historyCommands(boolean enable) |
Enables or disables built-in history commands (history).
|
ShellBuilder |
ShellBuilder.historyFile(java.nio.file.Path historyFile) |
Sets the history file path.
|
ShellBuilder |
ShellBuilder.initScript(java.io.File initScript) |
Sets the initialization script to execute on startup.
|
ShellBuilder |
ShellBuilder.jobManager(JobManager jobManager) |
Sets the job manager for the shell.
|
ShellBuilder |
ShellBuilder.lineExpander(LineExpander lineExpander) |
Sets the line expander for variable expansion.
|
ShellBuilder |
ShellBuilder.onReaderReady(java.util.function.BiConsumer<LineReader,CommandDispatcher> onReaderReady) |
Sets a callback invoked after the LineReader is created but before Shell.run().
|
ShellBuilder |
ShellBuilder.onReaderReady(java.util.function.Consumer<LineReader> onReaderReady) |
Sets a callback invoked after the LineReader is created but before Shell.run().
|
ShellBuilder |
ShellBuilder.option(LineReader.Option option,
boolean value) |
Sets a LineReader option.
|
ShellBuilder |
ShellBuilder.optionCommands(boolean enable) |
Enables or disables built-in option commands (setopt, unsetopt, setvar).
|
ShellBuilder |
ShellBuilder.parser(Parser parser) |
Sets the line parser.
|
ShellBuilder |
ShellBuilder.pipelineParser(PipelineParser pipelineParser) |
Sets a custom pipeline parser for the shell.
|
ShellBuilder |
ShellBuilder.prompt(java.lang.String prompt) |
Sets a static prompt string.
|
ShellBuilder |
ShellBuilder.prompt(java.util.function.Supplier<java.lang.String> promptSupplier) |
Sets a dynamic prompt supplier, called before each line read.
|
ShellBuilder |
ShellBuilder.rightPrompt(java.lang.String rightPrompt) |
Sets a static right prompt string.
|
ShellBuilder |
ShellBuilder.rightPrompt(java.util.function.Supplier<java.lang.String> rightPromptSupplier) |
Sets a dynamic right prompt supplier, called before each line read.
|
ShellBuilder |
ShellBuilder.scriptCommands(boolean enable) |
Enables or disables built-in script commands (source, .).
|
ShellBuilder |
ShellBuilder.scriptRunner(ScriptRunner scriptRunner) |
Sets the script runner for executing script files.
|
ShellBuilder |
ShellBuilder.terminal(Terminal terminal) |
Sets the terminal for the shell.
|
ShellBuilder |
ShellBuilder.variable(java.lang.String name,
java.lang.Object value) |
Sets a LineReader variable.
|
ShellBuilder |
ShellBuilder.variableCommands(boolean enable) |
Enables or disables built-in variable commands (set, unset, export).
|