Class NonInteractiveShellRunner

java.lang.Object
org.springframework.shell.core.NonInteractiveShellRunner
All Implemented Interfaces:
ShellRunner

public class NonInteractiveShellRunner extends Object implements 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 Details

  • Method Details

    • run

      public void run(String[] args) throws Exception
      Description copied from interface: ShellRunner
      Execute ShellRunner with given args.
      Specified by:
      run in interface ShellRunner
      Parameters:
      args - the raw arguments
      Throws:
      Exception - possible error during run