ResolvedDefault indicating whether a default is present and its value.resolveEnvDefault
Resolves a default value specification possibly referencing an environment variable.
Supported forms (case-insensitive or keyword):
$VAR→ use value of environment variableVARif set; otherwise no default.$VAR or fallback→ use envVARif set; otherwise use literalfallback.literal→ use the literal as-is.
Quotes around parts are stripped when present (e.g., "$HOME/file").
Parameters
spec | The contents captured from [default: ...] (without brackets). |
Returns
A