Skip to main content

expand_env_refs

Function expand_env_refs 

Source
pub fn expand_env_refs(
    text: &str,
    env: impl Fn(&str) -> Option<String>,
) -> String
Expand description

text with every %NAME% that env knows replaced by its value. An unknown name and a lone % stay as they are.