1 mod configuration_status;
4 use crate::configuration::Configuration;
14 impl super::Command for Status {
15 fn before_dependencies(&self) -> Vec<Box<dyn super::Command>> {
19 fn execute(&self, _: Option<&String>, configuration: &Configuration, _: &String) -> Result<()> {
20 let status_providers = available_status_providers();
21 for status_provider in status_providers {
22 println!("{}", status_provider(configuration));
27 fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {
31 fn command(&self) -> &'static str {
35 fn help(&self) -> &'static str {
36 "\t\t\t\tPrints the status of your blog"
40 fn available_status_providers() -> Vec<fn(&Configuration) -> String> {
42 configuration_status::status,