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