public class Ci_ScRun extends AbstractCommandInterpreter
| Modifier and Type | Field and Description |
|---|---|
static SkbShellArgument |
ARG_DIRECTORY
The argument for directory names.
|
static SkbShellArgument |
ARG_SCRIPT_INFO
The argument for script file names for info.
|
static SkbShellArgument |
ARG_SCRIPT_RUN
The argument for script file names for run.
|
protected String |
lastScript
Last script run by the shell.
|
protected boolean |
printProgress
Flag for printing progress during script execution.
|
static SkbShellCommand |
SC_INFO
The command for info on scripts.
|
static SkbShellCommand |
SC_LS
The command for ls on scripts.
|
static SkbShellCommand |
SC_RUN
The command for running scripts.
|
static String |
SCRIPT_FILE_EXTENSION
Extension for script files.
|
protected SkbShell |
skbShell
The calling shell, needed to parse lines.
|
| Constructor and Description |
|---|
Ci_ScRun(boolean printProgress,
SkbShell skbShell)
Returns an new 'run' command interpreter.
|
Ci_ScRun(SkbShell skbShell)
Returns an new 'run' command interpreter which will print progress information.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getContent(String fileName,
MessageMgr mm)
Returns the content of a string read from a file.
|
protected String |
getFileName(LineParser lp)
Returns a file name taken as argument from the line parser with fixed extension
|
int |
interpretCommand(String command,
LineParser lp,
MessageMgr mm)
Interprets the given command.
|
protected int |
interpretInfo(LineParser lp,
MessageMgr mm)
Interprets the actual info command
|
protected int |
interpretLs(LineParser lp,
MessageMgr mm)
Interprets the actual ls command
|
protected int |
interpretRun(LineParser lp,
MessageMgr mm)
Interprets the actual run command
|
getCommands, getCommandStringsprotected String lastScript
protected boolean printProgress
protected final SkbShell skbShell
public static String SCRIPT_FILE_EXTENSION
public static final SkbShellArgument ARG_SCRIPT_RUN
public static final SkbShellArgument ARG_SCRIPT_INFO
public static final SkbShellArgument ARG_DIRECTORY
public static final SkbShellCommand SC_RUN
public static final SkbShellCommand SC_INFO
public static final SkbShellCommand SC_LS
public Ci_ScRun(SkbShell skbShell)
skbShell - the calling shellpublic Ci_ScRun(boolean printProgress,
SkbShell skbShell)
printProgress - flag for printing progress when executing commands from a file, true for yes, false for noskbShell - the calling shellpublic int interpretCommand(String command, LineParser lp, MessageMgr mm)
CommandInterpretercommand - command for interpretationlp - a parser with the whole command linemm - the message manager to use for reporting errors, warnings, and infosprotected int interpretInfo(LineParser lp, MessageMgr mm)
lp - line parsermm - the message manager to use for reporting errors, warnings, and infosprotected int interpretLs(LineParser lp, MessageMgr mm)
lp - line parsermm - the message manager to use for reporting errors, warnings, and infosprotected int interpretRun(LineParser lp, MessageMgr mm)
lp - line parsermm - the message manager to use for reporting errors, warnings, and infosprotected String getFileName(LineParser lp)
lp - line parserprotected String getContent(String fileName, MessageMgr mm)
fileName - name of file to read frommm - the message manager to use for reporting errors, warnings, and infosCopyright © 2010–2017. All rights reserved.