X-Git-Url: https://git.r.bdr.sh/rbdr/blog/blobdiff_plain/d620665f6b2e1ae5db4c98a09e35bd63133ae87f..edcd0e51b3e0a6d52a560f293b7e6a08999cfd0c:/src/command/remove_remote.rs?ds=sidebyside diff --git a/src/command/remove_remote.rs b/src/command/remove_remote.rs index cfc5cdb..7590487 100644 --- a/src/command/remove_remote.rs +++ b/src/command/remove_remote.rs @@ -1,4 +1,6 @@ use std::io::Result; +use crate::configuration::Configuration; +use crate::remote::remove; pub struct RemoveRemote; @@ -13,9 +15,8 @@ impl super::Command for RemoveRemote { vec![] } - fn execute(&self, input: Option<&String>) -> Result<()> { - println!("Remove Remote: {:?}!", input); - return Ok(()) + fn execute(&self, _: Option<&String>, configuration: &Configuration, _: &String) -> Result<()> { + remove(&configuration.remote_config) } fn after_dependencies(&self) -> Vec> {