pub fn update_config( config: &StoreConfig, config_path: &Option<PathBuf>, ) -> Result<(), ConfigError>