diff options
Diffstat (limited to 'src/command/remove_remote.rs')
| -rw-r--r-- | src/command/remove_remote.rs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/command/remove_remote.rs b/src/command/remove_remote.rs new file mode 100644 index 0000000..cfc5cdb --- /dev/null +++ b/src/command/remove_remote.rs @@ -0,0 +1,32 @@ +use std::io::Result; + +pub struct RemoveRemote; + +impl RemoveRemote { + pub fn new() -> Self { + RemoveRemote + } +} + +impl super::Command for RemoveRemote { + fn before_dependencies(&self) -> Vec<Box<dyn super::Command>> { + vec![] + } + + fn execute(&self, input: Option<&String>) -> Result<()> { + println!("Remove Remote: {:?}!", input); + return Ok(()) + } + + fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> { + vec![] + } + + fn command(&self) -> &'static str { + "remove-remote" + } + + fn help(&self) -> &'static str { + "\t\t\tRemoves the git remote" + } +} |