use std::io::Result;
+use super::available_commands;
+use crate::configuration::Configuration;
pub struct Help;
vec![]
}
- fn execute(&self, input: Option<&String>) -> Result<()> {
- println!("Help: {:?}!", input);
+ fn execute(&self, _: Option<&String>, _: &Configuration, _: &String) -> Result<()> {
+ let commands = available_commands();
+ println!("Usage:");
+ println!("");
+ for command in commands {
+ print!("blog {} ", command.command());
+ println!("{}", command.help());
+ }
return Ok(())
}