resolve

Function resolve 

Source
pub fn resolve(
    template_env: HashMap<String, String>,
    profile_env: HashMap<String, String>,
    script_env: HashMap<String, String>,
    preserve_current: bool,
) -> HashMap<String, String>
Expand description

Resolves the final set of environment variables (simplified version).

This function merges variables from:

  1. Template defaults
  2. Profile-specific static variables
  3. Rhai script output
  4. Current process environment

§Arguments

  • template_env - Environment variables from templates
  • profile_env - Environment variables from profile
  • script_env - Environment variables from Rhai script
  • preserve_current - Whether to preserve current process environment

§Returns

Final resolved HashMap of environment variables