mod configuration_status;
+mod blog_status;
use std::io::Result;
use crate::configuration::Configuration;
fn execute(&self, _: Option<&String>, configuration: &Configuration, _: &String) -> Result<()> {
let status_providers = available_status_providers();
for status_provider in status_providers {
- println!("{}", status_provider(configuration));
+ println!("{}\n----\n", status_provider(configuration));
}
return Ok(())
}
fn available_status_providers() -> Vec<fn(&Configuration) -> String> {
vec![
configuration_status::status,
+ blog_status::status,
]
}