2 use crate::configuration::Configuration;
3 use crate::remote::remove;
5 pub struct RemoveRemote;
13 impl super::Command for RemoveRemote {
14 fn before_dependencies(&self) -> Vec<Box<dyn super::Command>> {
18 fn execute(&self, _: Option<&String>, configuration: &Configuration, _: &String) -> Result<()> {
19 remove(&configuration.remote_config)
22 fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {
26 fn command(&self) -> &'static str {
30 fn help(&self) -> &'static str {
31 "\t\t\tRemoves the git remote"