diff --git a/src/module/command.rs b/src/module/command.rs index 729f52a4..09d2792d 100644 --- a/src/module/command.rs +++ b/src/module/command.rs @@ -1,5 +1,8 @@ use std::result::Result; +use clap::ArgMatches; + +use runtime::Runtime; use super::ModuleError; use storage::backend::{StorageBackend, StorageBackendError}; @@ -8,5 +11,8 @@ pub type CommandResult = Result<(), Result>; pub trait ExecutableCommand { fn get_callname() -> &'static str; - fn exec(&self, rt: &Runtime, s: StorageBackend) -> CommandResult; + fn exec(&self, + rt: &Runtime, + matches: &ArgMatches<'a, 'a>, + s: StorageBackend) -> CommandResult; }