CfParser.substituteEnvVars

private string substituteEnvVars(string s) @safe

Substitutes `${...}` references in string content.

Supports ${VAR}, ${VAR:-default} and ${VAR:?message} using the configured envReader; expansions are capped by MAX_ENV_EXPANSION_SIZE.

Parameters

sThe unquoted string content

Returns

The content with references substituted.

Throws

CfParseException on unset required variables or over-sized

expansions.