X-Git-Url: https://git.r.bdr.sh/rbdr/blog/blobdiff_plain/5f81d796fed4e4efbaf6dbed7d3c69481afddeb3..refs/heads/rust:/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;