use std::io::Result; pub struct Update; impl Update { pub fn new() -> Self { Update } } impl super::Command for Update { fn before_dependencies(&self) -> Vec> { vec![] } fn execute(&self, input: Option<&String>) -> Result<()> { println!("Update: {:?}!", input); return Ok(()) } fn after_dependencies(&self) -> Vec> { vec![] } fn command(&self) -> &'static str { "update" } fn help(&self) -> &'static str { "\t\tUpdates latest blog post" } }