Skip to main content

load_layered_config

Function load_layered_config 

Source
pub fn load_layered_config(
    cwd: Option<&Path>,
    flags: &SessionFlags,
) -> Result<LayeredLoad>
Expand description

Load the full layered configuration: defaults < user file < project file < session flags. cwd locates the project layer (<git-root>/.mermaid/config.toml, sanitized + safety-clamped); pass None to skip it (daemon, tests).