diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-03-09 14:17:34 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-03-09 14:17:34 +0100 |
| commit | 172f4c8807d44ebe38c7f227b7fdc2d6a9dbe323 (patch) | |
| tree | b880761cf254fbc668cea0d577d5331a28af67cc /src/command/sync_up.rs | |
| parent | 36a4680d18de012e2e5c732f9db161dafa884344 (diff) | |
Allow sync up and down
Diffstat (limited to 'src/command/sync_up.rs')
| -rw-r--r-- | src/command/sync_up.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/command/sync_up.rs b/src/command/sync_up.rs index 635de10..a5d2a4c 100644 --- a/src/command/sync_up.rs +++ b/src/command/sync_up.rs @@ -1,5 +1,6 @@ use std::io::Result; use crate::configuration::Configuration; +use crate::remote::sync_up; pub struct SyncUp; @@ -14,9 +15,8 @@ impl super::Command for SyncUp { vec![] } - fn execute(&self, input: Option<&String>, _: &Configuration, _: &String) -> Result<()> { - println!("Sync Up: {:?}!", input); - return Ok(()) + fn execute(&self, _: Option<&String>, configuration: &Configuration, _: &String) -> Result<()> { + sync_up(&configuration.data_directory, &configuration.remote_config) } fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> { |