Validation baseline.

This commit is contained in:
Andrés N. Robalino
2019-07-28 18:34:37 -05:00
parent 59dec999b8
commit 7c4706ee50
3 changed files with 68 additions and 4 deletions

View File

@ -4,6 +4,15 @@ use std::io;
pub trait Plugin {
fn config(&mut self) -> Result<CommandConfig, ShellError>;
#[allow(unused)]
fn is_valid(&self) -> bool {
true
}
#[allow(unused)]
fn log_error(&mut self, message: &str) { }
#[allow(unused)]
fn begin_filter(&mut self, call_info: CallInfo) -> Result<Vec<ReturnValue>, ShellError> {
Ok(vec![])