Skip to main content

load_config_with

Function load_config_with 

Source
pub fn load_config_with(
    flag: Option<&Path>,
    env: &BTreeMap<String, String>,
    read: impl Fn(&Path) -> Result<String>,
    overrides: &[Override],
) -> Result<Config, AppError>
Expand description

As load_config, with the command’s options over the file and the environment.

§Errors

As load_config.