Skip to main content

load_config

Function load_config 

Source
pub fn load_config(opts: LoadConfigOptions) -> Result<LoadedConfig, ConfigError>
Expand description

Loads and merges the effective configuration for defect.

Precedence is: default < user < project < project-local < CLI.

ยงErrors

Returns ConfigError when the user config path cannot be resolved, any config file fails to read from disk, TOML parsing fails, or the merged configuration cannot be deserialized into a strongly-typed structure.