1 use crate::configuration::Configuration;
2 use crate::remote::add;
3 use std::io::{Error, ErrorKind::Other, Result};
13 impl super::Command for AddRemote {
14 fn before_dependencies(&self) -> Vec<Box<dyn super::Command>> {
20 input: Option<&String>,
21 configuration: &Configuration,
25 .ok_or_else(|| Error::new(Other, "You must provide a location for the remote."))?;
27 &configuration.config_directory,
28 &configuration.remote_config,
33 fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {
37 fn command(&self) -> &'static str {
41 fn help(&self) -> &'static str {
42 "<git_url>\t\tAdds or updates a git remote to sync with"