Package ubic.gemma.cli.util
Interface CliContext
-
- All Known Implementing Classes:
SystemCliContext
public interface CliContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String[]getArguments()Obtain the command line arguments for the command.StringgetCommandNameOrAliasUsed()Command name or alias used to invoke the command, ornullif this was invoked using the fully qualified class name.ConsolegetConsole()Obtain the console, if available.Map<String,String>getEnvironment()Obtain the environment variables for the command.PrintStreamgetErrorStream()InputStreamgetInputStream()PrintStreamgetOutputStream()
-
-
-
Method Detail
-
getCommandNameOrAliasUsed
@Nullable String getCommandNameOrAliasUsed()
Command name or alias used to invoke the command, ornullif this was invoked using the fully qualified class name.
-
getArguments
String[] getArguments()
Obtain the command line arguments for the command.
-
getEnvironment
Map<String,String> getEnvironment()
Obtain the environment variables for the command.
-
getInputStream
InputStream getInputStream()
-
getOutputStream
PrintStream getOutputStream()
-
getErrorStream
PrintStream getErrorStream()
-
-