fn resolve_environment_dual_path(
profile: &Profile,
config: &LandConfig,
merge_env: bool,
cli_overrides: &[(String, String)],
) -> HashMap<String, String>Expand description
Resolve environment variables with dual-path merging.
This function implements the dual-path environment resolution:
- Path A: Shell environment variables (from process)
- Path B: CLI profile configuration (from land-config.json)
Merge priority (lowest to highest):
- Template defaults
- Shell environment variables (if merge_env is true)
- Profile environment variables
- CLI –env overrides
§Arguments
profile- The profile configurationconfig- The land configurationmerge_env- Whether to merge with shell environmentcli_overrides- CLI –env override pairs
§Returns
Merged HashMap of environment variables