fn apply_yaml_config_file(config_path: &mut String) -> Result<()> {
    // Priority: system environment > YAML file > default config
    if utils::is_blank(&config_path) {
        // If the config file path is absent, Sentinel will try to resolve it from the system env.
        *config_path = env::var(CONF_FILE_PATH_ENV_KEY).unwrap_or(CONFIG_FILENAME.into());
    }
    // First Sentinel will try to load config from the given file.
    // If the path is empty (not set), Sentinel will use the default config.
    load_global_config_from_yaml_file(&config_path)?;
    Ok(())
}
// apply_yaml_config_file loads general configuration from the given YAML file.
apply_yaml_config_file loads general configuration from the given YAML file.
apply_yaml_config_file loads general configuration from the given YAML file .
fn apply_yaml_config_file(config_path: &mut String) -> Result<()> {
    // Priority: system environment > YAML file > default config
    if utils::is_blank(&config_path) {
        // If the config file path is absent, Sentinel will try to resolve it from the system env.
        *config_path = env::var(CONF_FILE_PATH_ENV_KEY).unwrap_or(CONFIG_FILENAME.into());
    }
    // First Sentinel will try to load config from the given file.
    // If the path is empty (not set), Sentinel will use the default config.
    load_global_config_from_yaml_file(&config_path)?;
    Ok(())
}
fn apply_yaml_config_file ( config_path : & mut String ) -> Result < ( ) > { // Priority: system environment > YAML file > default config if utils :: is_blank ( & config_path ) { // If the config file path is absent, Sentinel will try to resolve it from the system env. * config_path = env :: var ( CONF_FILE_PATH_ENV_KEY ) . unwrap_or ( CONFIG_FILENAME . into ( ) ) ; } // First Sentinel will try to load config from the given file. // If the path is empty (not set), Sentinel will use the default config. load_global_config_from_yaml_file ( & config_path ) ? ; Ok ( ( ) ) }
apply_yaml_config_file loads general configuration from the given YAML file.
apply_yaml_config_file loads general configuration from the given YAML file .
config_path
&mut String