-use std::fs::remove_file;
use std::io::Result;
use crate::configuration::Configuration;
+use crate::remote::remove;
pub struct RemoveRemote;
}
fn execute(&self, _: Option<&String>, configuration: &Configuration, _: &String) -> Result<()> {
- if configuration.remote_config.exists() {
- remove_file(&configuration.remote_config)?;
- }
- return Ok(())
+ remove(&configuration.remote_config)
}
fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {