diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-02-25 22:06:19 +0000 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2024-02-25 22:06:19 +0000 |
| commit | a9c6be4162bd15bd41ba3605127b56cb1eb32f32 (patch) | |
| tree | 6d97b0c6286b1eabb2ef5cab34b472f1622584e5 /src/command/mod.rs | |
| parent | 53812065cf124b6c1bc40fceec46f8c161033e29 (diff) | |
Add part of the implementation for add
Diffstat (limited to 'src/command/mod.rs')
| -rw-r--r-- | src/command/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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<Box<dyn Command>>; - fn execute(&self, input: Option<&String>) -> Result<()>; + fn execute(&self, input: Option<&String>, configuration: &Configuration, command: &String) -> Result<()>; fn after_dependencies(&self) -> Vec<Box<dyn Command>>; fn command(&self) -> &'static str; fn help(&self) -> &'static str; |