1 use crate::configuration::Configuration;
2 use crate::remote::sync_up;
13 impl super::Command for SyncUp {
14 fn before_dependencies(&self) -> Vec<Box<dyn super::Command>> {
21 configuration: &Configuration,
24 match sync_up(&configuration.data_directory, &configuration.remote_config) {
27 if command == self.command() {
35 fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {
39 fn command(&self) -> &'static str {
43 fn help(&self) -> &'static str {
44 "\t\t\t\tPushes to the git remote if configured"