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 if command == self.command() {
20 return sync_down(&configuration.data_directory, &configuration.remote_config);
25 fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {
29 fn command(&self) -> &'static str {
33 fn help(&self) -> &'static str {
34 "\t\t\t\tPulls from the git remote if configured"