Package org.springframework.shell.jline
Class JLineShellRunner
java.lang.Object
org.springframework.shell.core.InteractiveShellRunner
org.springframework.shell.jline.JLineShellRunner
- All Implemented Interfaces:
ShellRunner
Interactive shell runner based on the JVM's system
Console.- Since:
- 4.0.0
- Author:
- Mahmoud Ben Hassine
-
Constructor Summary
ConstructorsConstructorDescriptionJLineShellRunner(JLineInputProvider inputProvider, CommandParser commandParser, CommandRegistry commandRegistry) Create a newJLineShellRunnerinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidflush()Flush the output.Get the writer to the output.voidPrint a message to the output.Methods inherited from class org.springframework.shell.core.InteractiveShellRunner
run
-
Constructor Details
-
JLineShellRunner
public JLineShellRunner(JLineInputProvider inputProvider, CommandParser commandParser, CommandRegistry commandRegistry) Create a newJLineShellRunnerinstance.- Parameters:
inputProvider- the JLine input providercommandParser- the command parsercommandRegistry- the command registry
-
-
Method Details
-
print
Description copied from class:InteractiveShellRunnerPrint a message to the output.- Specified by:
printin classInteractiveShellRunner- Parameters:
message- the message to print
-
flush
public void flush()Description copied from class:InteractiveShellRunnerFlush the output.- Specified by:
flushin classInteractiveShellRunner
-
getWriter
Description copied from class:InteractiveShellRunnerGet the writer to the output.- Specified by:
getWriterin classInteractiveShellRunner- Returns:
- the print writer
-