pub fn location(config_file: Option<&Path>) -> color_eyre::Result<PathBuf> {
        match config_file {
            Some(path) => {
                if path.exists() {
                    Ok(PathBuf::from(path))
                } else {
                    let error: color_eyre::Result<PathBuf> = Err(Apologize::ConfigError {
                        message: format!("No such file {:?}", path),
                    }
                    .into());
                    error.suggestion(format!(
                        "Use `gooseberry config default {:?}` to write out the default configuration and modify the generated file",
                        path
                    ))
                }
            }
            None => Self::get_default_config_file(),
        }
    }
/// Gets the current config file location
Gets the current config file location
Gets the current config file location
pub fn location(config_file: Option<&Path>) -> color_eyre::Result<PathBuf> {
        match config_file {
            Some(path) => {
                if path.exists() {
                    Ok(PathBuf::from(path))
                } else {
                    let error: color_eyre::Result<PathBuf> = Err(Apologize::ConfigError {
                        message: format!("No such file {:?}", path),
                    }
                    .into());
                    error.suggestion(format!(
                        "Use `gooseberry config default {:?}` to write out the default configuration and modify the generated file",
                        path
                    ))
                }
            }
            None => Self::get_default_config_file(),
        }
    }
pub fn location ( config_file : Option < & Path > ) -> color_eyre :: Result < PathBuf > { match config_file { Some ( path ) => { if path . exists ( ) { Ok ( PathBuf :: from ( path ) ) } else { let error : color_eyre :: Result < PathBuf > = Err ( Apologize :: ConfigError { message : format ! ( " " path ) , } . into ( ) ) ; error . suggestion ( format ! ( " " path ) ) } } None => Self :: get_default_config_file ( ) , } }
Gets the current config file location
Gets the current config file location
config_file
Option<&Path>
config_file
Option<&Path>