@ShellComponent public class Script extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Script.Command
Marker interface for beans providing script functionality to the shell.
|
| Constructor and Description |
|---|
Script(org.springframework.shell.Shell shell,
org.jline.reader.Parser parser) |
public Script(org.springframework.shell.Shell shell,
org.jline.reader.Parser parser)
@ShellMethod(value="Read and execute commands from a file.") public void script(File file) throws IOException
IOExceptionCopyright © 2017 Pivotal Software, Inc.. All rights reserved.