-use std::io::{Result};
use crate::configuration::Configuration;
use crate::remote::sync_down;
+use std::io::Result;
pub struct SyncDown;
vec![]
}
- fn execute(&self, _: Option<&String>, configuration: &Configuration, command: &String) -> Result<()> {
+ fn execute(
+ &self,
+ _: Option<&String>,
+ configuration: &Configuration,
+ command: &str,
+ ) -> Result<()> {
match sync_down(&configuration.data_directory, &configuration.remote_config) {
- Ok(_) => {}
+ Ok(()) => {}
Err(e) => {
if command == self.command() {
- return Err(e)
+ return Err(e);
}
}
}
- return Ok(())
+ Ok(())
}
fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {
"\t\t\t\tPulls from the git remote if configured"
}
}
-