Make the validation especific to str plugin for now.

This commit is contained in:
Andrés N. Robalino
2019-07-28 20:13:06 -05:00
parent d1399c0c0c
commit 87b299739c
2 changed files with 8 additions and 16 deletions

View File

@ -5,14 +5,6 @@ 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![])