Skip to main content

load_project_with_env

Function load_project_with_env 

Source
pub fn load_project_with_env(
    base_path: &Path,
    env: Option<&str>,
) -> Result<ProjectConfig, String>
Expand description

Load a project config with an optional environment overlay.

When env is Some, looks for a sibling fdl.<env>.{yml,yaml,json} next to base_path and deep-merges it over the base before deserialization. Missing overlay files are a hard error — the user asked for this env, so silently ignoring it would be worse than a clear message.