Skip to main content

substitute

Function substitute 

Source
pub fn substitute(input: &str, vars: &HashMap<String, String>) -> Result<String>
Expand description

Substitute all $VAR / ${VAR} references in input using vars.

vars should contain both the process environment and the .env file entries (process environment takes precedence).