2 use crate::configuration::Configuration;
3 use crate::remote::sync_up;
13 impl super::Command for SyncUp {
14 fn before_dependencies(&self) -> Vec<Box<dyn super::Command>> {
18 fn execute(&self, _: Option<&String>, configuration: &Configuration, _: &String) -> Result<()> {
19 sync_up(&configuration.data_directory, &configuration.remote_config)
22 fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {
26 fn command(&self) -> &'static str {
30 fn help(&self) -> &'static str {
31 "\t\t\t\tPushes to the git remote if configured"