Skip to main content

load_settings

Function load_settings 

Source
pub fn load_settings(cwd: &Path, flag: Option<&str>) -> SettingsLoad
Expand description

Load and merge the five layers for cwd. flag is the raw --settings value (a path, or inline JSON when it starts with {).

Env reads happen only here (~ expansion + the home resolver); the core is load_settings_from so tests inject everything.