2 use super::available_commands;
12 impl super::Command for Help {
13 fn before_dependencies(&self) -> Vec<Box<dyn super::Command>> {
17 fn execute(&self, _: Option<&String>) -> Result<()> {
18 let commands = available_commands();
21 for command in commands {
22 print!("blog {} ", command.command());
23 println!("{}", command.help());
28 fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {
32 fn command(&self) -> &'static str {
36 fn help(&self) -> &'static str {
37 "\t\t\t\tPrints this help"