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