org.springframework.shell.commands

## Class ScriptCommands

- java.lang.Object
- - org.springframework.shell.commands.ScriptCommands

- All Implemented Interfaces:
    CommandMarker

      @Component
      public class ScriptCommands
      extends Object
      implements CommandMarker

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected Logger` | `logger`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ScriptCommands()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected Collection<URL>` | `findResources(String path)`
    `void` | `script(File script, boolean lineNumbers)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### logger

          protected final Logger logger

  - ### Constructor Detail

    - #### ScriptCommands

          public ScriptCommands()

  - ### Method Detail

    - #### script

          @CliCommand(value="script",
                      help="Parses the specified resource file and executes its commands")
          public void script(@CliOption(key={"","file"},help="The file to locate and execute",mandatory=true)
                                        File script,
                                        @CliOption(key="lineNumbers",mandatory=false,specifiedDefaultValue="true",unspecifiedDefaultValue="false",help="Display line numbers when executing the script")
                                        boolean lineNumbers)

    - #### findResources

          protected Collection<URL> findResources(String path)