From a9c6be4162bd15bd41ba3605127b56cb1eb32f32 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Sun, 25 Feb 2024 22:06:19 +0000 Subject: Add part of the implementation for add --- src/command/status/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/command/status/mod.rs') diff --git a/src/command/status/mod.rs b/src/command/status/mod.rs index ba73184..e8754f5 100644 --- a/src/command/status/mod.rs +++ b/src/command/status/mod.rs @@ -1,6 +1,7 @@ mod configuration_status; use std::io::Result; +use crate::configuration::Configuration; pub struct Status; @@ -15,10 +16,10 @@ impl super::Command for 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(()) } @@ -36,7 +37,7 @@ impl super::Command for Status { } } -fn available_status_providers() -> Vec String> { +fn available_status_providers() -> Vec String> { vec![ configuration_status::status, ] -- cgit