pub fn load(path: &Path) -> Result<Config, ConfigError>Expand description
Load and validate path.
A missing file is an error: the caller decides whether that is fatal
(the binary should bail) or expected (a first-run where drep init has
not been run yet). Inventing defaults for a file that does not exist
would silently mask a broken install.
${VAR} expansion happens before validation, so an unset variable is
reported with the variable’s name rather than as a downstream parse
failure inside the substituted text.