java.lang.Object
org.springframework.shell.standard.AbstractShellComponent
org.springframework.shell.standard.commands.Script
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ResourceLoaderAware

@ShellComponent public class Script extends org.springframework.shell.standard.AbstractShellComponent
A command that can read and execute other commands from a file.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
    Marker interface for beans providing script functionality to the shell.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Script(org.jline.reader.Parser parser)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    script(File file)
     

    Methods inherited from class org.springframework.shell.standard.AbstractShellComponent

    afterPropertiesSet, getApplicationContext, getCommandCatalog, getCompletionResolver, getResourceLoader, getShell, getTemplateExecutor, getTerminal, getThemeResolver, setApplicationContext, setResourceLoader

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Script

      public Script(org.jline.reader.Parser parser)
  • Method Details

    • script

      @ShellMethod("Read and execute commands from a file.") public void script(File file) throws Exception
      Throws:
      Exception