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