apply

Function apply 

Source
pub fn apply(env_vars: &HashMap<String, String>)
Expand description

Applies environment variables to the current process.

§Arguments

  • env_vars - Environment variables to apply

§Example

use crate::Maintain::Source::Build::Rhai::EnvironmentResolver;

let env = HashMap::from([
    ("NODE_ENV".to_string(), "production".to_string()),
    ("RUST_LOG".to_string(), "info".to_string()),
]);

EnvironmentResolver::apply(&env);