2 use crate::configuration::Configuration;
3 use crate::remote::sync_down;
13 impl super::Command for SyncDown {
14 fn before_dependencies(&self) -> Vec<Box<dyn super::Command>> {
18 fn execute(&self, _: Option<&String>, configuration: &Configuration, command: &String) -> Result<()> {
19 match sync_down(&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\tPulls from the git remote if configured"