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, command: &String) -> Result<()> {
19 match sync_up(&configuration.data_directory, &configuration.remote_config) {
22 if command == self.command() {
30 fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {
34 fn command(&self) -> &'static str {
38 fn help(&self) -> &'static str {
39 "\t\t\t\tPushes to the git remote if configured"