Skip to main content

load_layers

Function load_layers 

Source
pub fn load_layers(layers: &[PathBuf]) -> Result<MissionConfig>
Expand description

Merge the given config files (in order, later wins) over the compiled-in defaults. Exposed so callers (and tests) can supply explicit layer paths instead of the real home directory.

Every layer is treated as Layer::Global: an explicit-path caller is the operator (or a test), not a repository. Use load_layers_with_roles when a layer’s provenance matters.