Package com.Lomikel.Apps
Class GCLI
- java.lang.Object
-
- com.Lomikel.Apps.CLI
-
- com.Lomikel.Apps.GCLI
-
-
Field Summary
Fields Modifier and Type Field Description private GConsole
_console
protected static Binding
_sharedData
protected static GroovyShell
_shell
private static org.apache.logging.log4j.Logger
log
Logging .
-
Constructor Summary
Constructors Constructor Description GCLI(java.lang.String scriptSrc, java.lang.String scriptArgs)
Create.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close.java.lang.String
execute()
Execute command line in required way.static CommandLine
parseArgs(java.lang.String[] args, java.lang.String helpMsg)
Parse the cli arguments.java.lang.String
setupShell()
Load standard init files and setup standard environment.GroovyShell
shell()
GiveGroovyShell
.
-
-
-
Field Detail
-
_sharedData
protected static Binding _sharedData
-
_shell
protected static GroovyShell _shell
-
log
private static org.apache.logging.log4j.Logger log
Logging .
-
-
Constructor Detail
-
GCLI
public GCLI(java.lang.String scriptSrc, java.lang.String scriptArgs)
Create.- Parameters:
scriptSrc
- The additional script to be executed.scriptArgs
- The arguments for the additional script.
-
-
Method Detail
-
execute
public java.lang.String execute()
Description copied from class:CLI
Execute command line in required way.
-
setupShell
public java.lang.String setupShell()
Load standard init files and setup standard environment.- Returns:
- The output of the setup.
-
parseArgs
public static CommandLine parseArgs(java.lang.String[] args, java.lang.String helpMsg)
Parse the cli arguments.- Parameters:
args
- The cli arguments.helpMsg
- The general help message.- Returns:
- The parsed
CommandLine
.
-
shell
public GroovyShell shell()
GiveGroovyShell
.- Returns:
- The
GroovyShell
.
-
-