Package ubic.gemma.cli.util
Interface CLIContext
- All Known Implementing Classes:
SystemCLIContext
public interface CLIContext
-
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)
-
Method Details
-
getCommandNameOrAliasUsed
Command name or alias used to invoke the command, ornull
if this was invoked using the fully qualified class name. -
getArguments
String[] getArguments()Obtain the command line arguments for the command. -
getEnvironment
Obtain the environment variables for the command. -
getConsole
Obtain the console, if available. -
getInputStream
InputStream getInputStream() -
getOutputStream
PrintStream getOutputStream() -
getErrorStream
PrintStream getErrorStream() -
getExitStatus
int getExitStatus() -
getExitCause
Obtain the exit cause, if known. -
setExitStatus
-