]> git.r.bdr.sh - rbdr/blog/blobdiff - src/command/mod.rs
Manually import
[rbdr/blog] / src / command / mod.rs
index 211b10f6dbf757da70a02eb127597ec90738b2d5..0c96e6f57d7d51af6811dc0bbed4edb2c6c87a57 100644 (file)
@@ -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;