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/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/command/mod.rs') diff --git a/src/command/mod.rs b/src/command/mod.rs index 211b10f..0c96e6f 100644 --- a/src/command/mod.rs +++ b/src/command/mod.rs @@ -27,9 +27,11 @@ use version::Version; use status::Status; use help::Help; +use crate::configuration::Configuration; + pub trait Command { fn before_dependencies(&self) -> Vec>; - fn execute(&self, input: Option<&String>) -> Result<()>; + fn execute(&self, input: Option<&String>, configuration: &Configuration, command: &String) -> Result<()>; fn after_dependencies(&self) -> Vec>; fn command(&self) -> &'static str; fn help(&self) -> &'static str; -- cgit