1 mod configuration_status;
5 use crate::configuration::Configuration;
10 pub fn new() -> Self {
15 impl super::Command for Status {
16 fn before_dependencies(&self) -> Vec<Box<dyn super::Command>> {
20 fn execute(&self, _: Option<&String>, configuration: &Configuration, _: &String) -> Result<()> {
21 let status_providers = available_status_providers();
22 for status_provider in status_providers {
23 println!("{}\n----\n", status_provider(configuration));
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 the status of your blog"
41 fn available_status_providers() -> Vec<fn(&Configuration) -> String> {
43 configuration_status::status,