1 use std::fs::remove_file;
3 use crate::configuration::Configuration;
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 if configuration.remote_config.exists() {
20 remove_file(&configuration.remote_config)?;
25 fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {
29 fn command(&self) -> &'static str {
33 fn help(&self) -> &'static str {
34 "\t\t\tRemoves the git remote"