expandEnvironmentVariables

Expands the variables in the input string with the same rules as command variables inside custom dub commands.

string
expandEnvironmentVariables
(
string s
,
bool throwIfMissing = true
)

Parameters

s string

the input string where environment variables in form $VAR should be replaced

throwIfMissing bool

if true, throw an exception if the given variable is not found, otherwise replace unknown variables with the empty string.

Meta