evalEnv

fun evalEnv(string: String, env: Map<String, String> = ENV): String

Evaluate env vars in a string. Env vars must be surrounded by braces and preceded with ‘$’, e.g. ${KLOGGING_BLAH}.

Return

string with environment variables replaced with their values

Parameters

string

string that may contain env variables

env

map of environment variables and values, default ENV