Package org.mycore.webcli.cli
Class MCRBasicWebCLICommands
java.lang.Object
org.mycore.webcli.cli.MCRBasicWebCLICommands
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
readCommandsFile
(String file) readCommandsResource
(String resource) static void
static void
-
Constructor Details
-
MCRBasicWebCLICommands
public MCRBasicWebCLICommands()
-
-
Method Details
-
readCommandsResource
@MCRCommand(syntax="process resource {0}", help="Execute the commands listed in the resource file {0}.", order=10) public static List<String> readCommandsResource(String resource) throws IOException - Throws:
IOException
-
readCommandsFile
@MCRCommand(syntax="process {0}", help="Execute the commands listed in the text file {0}.", order=20) public static List<String> readCommandsFile(String file) throws IOException - Throws:
IOException
-
showCommandStatistics
@MCRCommand(syntax="show command statistics", help="Show statistics on number of commands processed and execution time needed per command", order=30) public static void showCommandStatistics() -
cancelonError
@MCRCommand(syntax="cancel on error", help="Cancel execution of further commands in case of error", order=40) public static void cancelonError() -
skipOnError
@MCRCommand(syntax="skip on error", help="Skip execution of failed command in case of error", order=50) public static void skipOnError()
-