@Component public class ScriptCommands extends java.lang.Object implements CommandMarker
Modifier and Type | Field and Description |
---|---|
protected java.util.logging.Logger |
logger |
Constructor and Description |
---|
ScriptCommands() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection<java.net.URL> |
findResources(java.lang.String path) |
void |
script(java.io.File script,
boolean lineNumbers) |
@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) java.io.File script, @CliOption(key="lineNumbers",mandatory=false,specifiedDefaultValue="true",unspecifiedDefaultValue="false",help="Display line numbers when executing the script") boolean lineNumbers)
protected java.util.Collection<java.net.URL> findResources(java.lang.String path)