2 use super::{sync_down::SyncDown, generate::Generate, sync_up::SyncUp};
12 impl super::Command for Update {
13 fn before_dependencies(&self) -> Vec<Box<dyn super::Command>> {
14 vec![Box::new(SyncDown::new())]
17 fn execute(&self, input: Option<&String>) -> Result<()> {
18 println!("Update: {:?}!", input);
22 fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {
24 Box::new(Generate::new()),
25 Box::new(SyncUp::new())
29 fn command(&self) -> &'static str {
33 fn help(&self) -> &'static str {
34 "<path_to_post>\t\tUpdates latest blog post"