11 impl super::Command for Update {
12 fn before_dependencies(&self) -> Vec<Box<dyn super::Command>> {
16 fn execute(&self, input: Option<&String>) -> Result<()> {
17 println!("Update: {:?}!", input);
21 fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {
25 fn command(&self) -> &'static str {
29 fn help(&self) -> &'static str {
30 "<path_to_post>\t\tUpdates latest blog post"