adolev
10/22/2018, 4:14 PMhudsonb
10/22/2018, 4:20 PMfun getEnv(key: String) = when {
System.getenv().containsKey(key) -> System.getenv(key)
else -> throw Exception("w/e exception you want")
}
println
is implemented. On the JVM it's just a top-level function wrapping System.out.println
Shawn
10/22/2018, 4:31 PMSystem.getenv(key) ?: throw Exception("missing env $key")