]>
Commit | Line | Data |
---|---|---|
d620665f RBR |
1 | use std::io::Result; |
2 | ||
3 | pub struct SyncUp; | |
4 | ||
5 | impl SyncUp { | |
6 | pub fn new() -> Self { | |
7 | SyncUp | |
8 | } | |
9 | } | |
10 | ||
11 | impl super::Command for SyncUp { | |
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 Up: {:?}!", 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-up" | |
27 | } | |
28 | ||
29 | fn help(&self) -> &'static str { | |
2f579cf4 | 30 | "\t\t\t\tPushes to the git remote if configured" |
d620665f RBR |
31 | } |
32 | } |