]> git.r.bdr.sh - rbdr/blog/blob - src/command/sync_down.rs
a0c713be1d3541be18dacdfd3b5e9e7220e80f55
[rbdr/blog] / src / command / sync_down.rs
1 use std::io::Result;
2
3 pub struct SyncDown;
4
5 impl SyncDown {
6 pub fn new() -> Self {
7 SyncDown
8 }
9 }
10
11 impl super::Command for SyncDown {
12 fn before_dependencies(&self) -> Vec<Box<dyn super::Command>> {
13 vec![]
14 }
15
16 fn execute(&self, input: Option<&String>) -> Result<()> {
17 println!("Sync Down: {:?}!", input);
18 return Ok(())
19 }
20
21 fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {
22 vec![]
23 }
24
25 fn command(&self) -> &'static str {
26 "sync-down"
27 }
28
29 fn help(&self) -> &'static str {
30 "\t\t\tPulls from the git remote if configured"
31 }
32 }
33