]> git.r.bdr.sh - rbdr/blog/blobdiff - src/command/remove_remote.rs
Deal with all lints
[rbdr/blog] / src / command / remove_remote.rs
index 8188beb5c7991391c85cea7a4cf3430ac234938c..ee1dfde6a0f06610a366c95a37482d8822f7274a 100644 (file)
@@ -1,5 +1,6 @@
-use std::io::Result;
 use crate::configuration::Configuration;
 use crate::configuration::Configuration;
+use crate::remote::remove;
+use std::io::Result;
 
 pub struct RemoveRemote;
 
 
 pub struct RemoveRemote;
 
@@ -14,9 +15,8 @@ impl super::Command for RemoveRemote {
         vec![]
     }
 
         vec![]
     }
 
-    fn execute(&self, input: Option<&String>, _: &Configuration, _: &String) -> Result<()> {
-        println!("Remove Remote: {:?}!", input);
-        return Ok(())
+    fn execute(&self, _: Option<&String>, configuration: &Configuration, _: &str) -> Result<()> {
+        remove(&configuration.remote_config)
     }
 
     fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {
     }
 
     fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {