Skip to main content

expand_env_vars

Function expand_env_vars 

Source
pub fn expand_env_vars(text: &str) -> Result<String, ExpandEnvError>
Expand description

Expand ${VAR} tokens in text against the process environment.

See the module docs for the exact semantics. Returns the expanded string, or ExpandEnvError::Missing on the first unresolved ${VAR}.