2 use super::available_commands;
3 use crate::configuration::Configuration;
13 impl super::Command for Help {
14 fn before_dependencies(&self) -> Vec<Box<dyn super::Command>> {
18 fn execute(&self, _: Option<&String>, _: &Configuration, _: &String) -> Result<()> {
19 let commands = available_commands();
22 for command in commands {
23 print!("blog {} ", command.command());
24 println!("{}", command.help());
29 fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {
33 fn command(&self) -> &'static str {
37 fn help(&self) -> &'static str {
38 "\t\t\t\tPrints this help"