- fn execute(&self, input: Option<&String>) -> Result<()> {
- println!("Add Remote: {:?}!", input);
- return Ok(())
+ fn execute(&self, input: Option<&String>, configuration: &Configuration, _: &String) -> Result<()> {
+ let input = input
+ .ok_or_else(|| Error::new(Other, "You must provide a location for the remote."))?;
+ add(&configuration.config_directory, &configuration.remote_config, input)