]> git.r.bdr.sh - rbdr/blog/blame_incremental - src/command/remove_remote.rs
Add part of the implementation for add
[rbdr/blog] / src / command / remove_remote.rs
... / ...
CommitLineData
1use std::io::Result;
2use crate::configuration::Configuration;
3
4pub struct RemoveRemote;
5
6impl RemoveRemote {
7 pub fn new() -> Self {
8 RemoveRemote
9 }
10}
11
12impl super::Command for RemoveRemote {
13 fn before_dependencies(&self) -> Vec<Box<dyn super::Command>> {
14 vec![]
15 }
16
17 fn execute(&self, input: Option<&String>, _: &Configuration, _: &String) -> Result<()> {
18 println!("Remove Remote: {:?}!", input);
19 return Ok(())
20 }
21
22 fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {
23 vec![]
24 }
25
26 fn command(&self) -> &'static str {
27 "remove-remote"
28 }
29
30 fn help(&self) -> &'static str {
31 "\t\t\tRemoves the git remote"
32 }
33}