JP7B4BHKXIQGGYCKR2XX5CNWOUB3C37WYK4GWESZ7RHDI24ZIQKAC
H4AU6QRPRDRFW3V7NN5CJ6DHLEUBYGNLRZ5GYV6ULBGRMOPCJQXQC
SXEYMYF7P4RZMZ46WPL4IZUTSQ2ATBWYZX7QNVMS3SGOYXYOHAGQC
KWAGWB73AMLJFK2Z7SBKHHKKHFRX7AQKXCWDN2MBX72RYCNMB36QC
SEWGHUHQEEBJR7UPG3PSU7DSM376R43QEYENAZK325W46DCFMXKAC
AEPEFS7O3YT7CRRFYQVJWUXUUSRGJ6K6XZQVK62B6N74UXOIFWYAC
pub fn update_config(&self) -> Result<(), anyhow::Error> { println!("config: {}", &self.path.display()); std::fs::write( self.path.join(DOT_DIR).join("config"), toml::to_string(&self.config)?, )?; Ok(()) }
pub fn update_config(&self) -> Result<(), anyhow::Error> {
println!("config: {}", &self.path.display());
std::fs::write(
self.path.join(DOT_DIR).join("config"),
toml::to_string(&self.config)?,
)?;
Ok(())
}
#[serde(default)]
#[serde(default, skip_serializing_if = "Vec::is_empty")]
/// Deletes the remote #[clap(name = "default")] Default { remote: String },
/// Deletes the remote
#[clap(name = "default")]
Default { remote: String },
} Some(SubRemote::Default { remote }) => { let mut repo = repo; repo.config.default_remote = Some(remote); repo.update_config()?;
Some(SubRemote::Default { remote }) => {
let mut repo = repo;
repo.config.default_remote = Some(remote);
repo.update_config()?;