Package ubic.gemma.cli.util
Class SystemCLIContext
java.lang.Object
ubic.gemma.cli.util.SystemCLIContext
- All Implemented Interfaces:
CLIContext
A context for the CLI based on
System.- Author:
- poirigui
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Obtain the command line arguments for the command.Command name or alias used to invoke the command, ornullif this was invoked using the fully qualified class name.Obtain the console, if available.Obtain the environment variables for the command.Obtain the exit cause, if known.intvoidsetExitStatus(int exitStatus, Exception exitCause)
-
Constructor Details
-
SystemCLIContext
-
-
Method Details
-
getCommandNameOrAliasUsed
Description copied from interface:CLIContextCommand name or alias used to invoke the command, ornullif this was invoked using the fully qualified class name.- Specified by:
getCommandNameOrAliasUsedin interfaceCLIContext
-
getArguments
Description copied from interface:CLIContextObtain the command line arguments for the command.- Specified by:
getArgumentsin interfaceCLIContext
-
getEnvironment
Description copied from interface:CLIContextObtain the environment variables for the command.- Specified by:
getEnvironmentin interfaceCLIContext
-
getConsole
Description copied from interface:CLIContextObtain the console, if available.- Specified by:
getConsolein interfaceCLIContext
-
getInputStream
- Specified by:
getInputStreamin interfaceCLIContext
-
getOutputStream
- Specified by:
getOutputStreamin interfaceCLIContext
-
getErrorStream
- Specified by:
getErrorStreamin interfaceCLIContext
-
getExitStatus
public int getExitStatus()- Specified by:
getExitStatusin interfaceCLIContext
-
getExitCause
Description copied from interface:CLIContextObtain the exit cause, if known.- Specified by:
getExitCausein interfaceCLIContext
-
setExitStatus
- Specified by:
setExitStatusin interfaceCLIContext
-