getEnv

fun getEnv(prefix: String? = null, default: String? = null): EnvironmentVariable<String>

Returns a delegated environment variable prefixed by prefix that fallbacks to default if the found variable is empty or invalid


fun <T> getEnv(prefix: String? = null, default: T? = null, transform: (String) -> T?): EnvironmentVariable<T>

Returns a delegated environment variable prefixed by prefix that fallbacks to default if the found variable is empty or invalid.

The variable is transformed to T by transform