Package org.springframework.shell.core
Class NonInteractiveShellRunner
java.lang.Object
org.springframework.shell.core.NonInteractiveShellRunner
- All Implemented Interfaces:
ShellRunner
A
ShellRunner that executes commands without entering interactive shell mode.
It can process a single command, or a script of commands defined in a file. The script
file is specified by prefixing the file name with the special character @.- Since:
- 4.0.0
- Author:
- Mahmoud Ben Hassine
-
Constructor Summary
ConstructorsConstructorDescriptionNonInteractiveShellRunner(CommandParser commandParser, CommandRegistry commandRegistry) Create a newNonInteractiveShellRunnerinstance. -
Method Summary
-
Constructor Details
-
NonInteractiveShellRunner
Create a newNonInteractiveShellRunnerinstance.- Parameters:
commandParser- the command parsercommandRegistry- the command registry
-
-
Method Details
-
run
Description copied from interface:ShellRunnerExecuteShellRunnerwith given args.- Specified by:
runin interfaceShellRunner- Parameters:
args- the raw arguments- Throws:
Exception- possible error during run
-