Class Script
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
A command that can read and execute other commands from a file.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Marker interface for beans providing script functionality to the shell. -
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.shell.standard.AbstractShellComponent
afterPropertiesSet, getApplicationContext, getCommandCatalog, getCompletionResolver, getResourceLoader, getShell, getTemplateExecutor, getTerminal, getThemeResolver, getViewComponentBuilder, setApplicationContext, setResourceLoader
-
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
-