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, ornull
if 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.int
void
setExitStatus
(int exitStatus, Exception exitCause)
-
Constructor Details
-
SystemCLIContext
-
-
Method Details
-
getCommandNameOrAliasUsed
Description copied from interface:CLIContext
Command name or alias used to invoke the command, ornull
if this was invoked using the fully qualified class name.- Specified by:
getCommandNameOrAliasUsed
in interfaceCLIContext
-
getArguments
Description copied from interface:CLIContext
Obtain the command line arguments for the command.- Specified by:
getArguments
in interfaceCLIContext
-
getEnvironment
Description copied from interface:CLIContext
Obtain the environment variables for the command.- Specified by:
getEnvironment
in interfaceCLIContext
-
getConsole
Description copied from interface:CLIContext
Obtain the console, if available.- Specified by:
getConsole
in interfaceCLIContext
-
getInputStream
- Specified by:
getInputStream
in interfaceCLIContext
-
getOutputStream
- Specified by:
getOutputStream
in interfaceCLIContext
-
getErrorStream
- Specified by:
getErrorStream
in interfaceCLIContext
-
getExitStatus
public int getExitStatus()- Specified by:
getExitStatus
in interfaceCLIContext
-
getExitCause
Description copied from interface:CLIContext
Obtain the exit cause, if known.- Specified by:
getExitCause
in interfaceCLIContext
-
setExitStatus
- Specified by:
setExitStatus
in interfaceCLIContext
-