Package me.julb.sdk.github.actions.kit
Class SystemProxySystemImpl
java.lang.Object
me.julb.sdk.github.actions.kit.SystemProxySystemImpl
- All Implemented Interfaces:
SystemProxy
The class using
Among these functions, there all helpers to get env variables, print messages to STDOUT and exit the program.
System functions to implement SystemProxy. Among these functions, there all helpers to get env variables, print messages to STDOUT and exit the program.
- Author:
- Julb.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SystemProxySystemImpl
SystemProxySystemImpl()
-
-
Method Details
-
exit
public void exit(int status) Exits the program with the given code.- Specified by:
exitin interfaceSystemProxy- Parameters:
status- the status code.
-
println
public void println()Prints a line feed on STDOUT.- Specified by:
printlnin interfaceSystemProxy
-
println
public <T> void println(T name) Prints a message on STDOUT.- Specified by:
printlnin interfaceSystemProxy- Type Parameters:
T- the message object type.- Parameters:
name- the message to print.
-
getenv
Gets the value of the given environment variable name.- Specified by:
getenvin interfaceSystemProxy- Parameters:
name- the name of the environment variable.- Returns:
- the value of the environment variable, or
nullif not exists.
-