2 use crate::configuration::Configuration;
3 use crate::remote::add;
13 impl super::Command for AddRemote {
14 fn before_dependencies(&self) -> Vec<Box<dyn super::Command>> {
18 fn execute(&self, input: Option<&String>, configuration: &Configuration, _: &String) -> Result<()> {
19 let input = input.expect("You must provide a location for the remote.");
20 add(&configuration.config_directory, &configuration.remote_config, input)
23 fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {
27 fn command(&self) -> &'static str {
31 fn help(&self) -> &'static str {
32 "<git_url>\t\tAdds or updates a git remote to sync with"