]> git.r.bdr.sh - rbdr/blog/blobdiff - src/command/remove_remote.rs
Add CI
[rbdr/blog] / src / command / remove_remote.rs
index cfc5cdb848b7b154389196fa31fa379844facd9d..7590487d677a6a9f0507c34584d6867c187cd18d 100644 (file)
@@ -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<Box<dyn super::Command>> {