- fn execute(&self, _: Option<&String>, configuration: &Configuration, command: &String) -> Result<()> {
- match create_dir_all(&configuration.data_directory) {
- Ok(_) => {
- // We only care to show these warnings if this is the primary command.
+ fn execute(
+ &self,
+ _: Option<&String>,
+ configuration: &Configuration,
+ command: &str,
+ ) -> Result<()> {
+ match sync_down(&configuration.data_directory, &configuration.remote_config) {
+ Ok(()) => {}
+ Err(e) => {