Skip to main content

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);