Skip to main content

Resolve

Function Resolve 

Source
pub fn Resolve(
    Profile: &Profile,
    MergeShell: bool,
    Overrides: &[(String, String)],
) -> Result<HashMap<String, String>>
Expand description

Resolves environment variables for a run profile.

This function combines environment variables from multiple sources:

  1. Template defaults
  2. Shell environment (if enabled)
  3. Profile-specific variables
  4. CLI overrides

§Arguments

  • profile - The profile to resolve environment for
  • merge_shell - Whether to merge with shell environment
  • overrides - CLI-provided environment overrides

§Returns

A HashMap of resolved environment variables