use std::io::Result; pub struct Publish; impl Publish { pub fn new() -> Self { Publish } } impl super::Command for Publish { fn before_dependencies(&self) -> Vec> { vec![] } fn execute(&self, input: Option<&String>) -> Result<()> { println!("Publish: {:?}!", input); return Ok(()) } fn after_dependencies(&self) -> Vec> { vec![] } fn command(&self) -> &'static str { "publish" } fn help(&self) -> &'static str { "\t\tPublishes the blog to a remote host" } }