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