[][src]Trait nu::Plugin

pub trait Plugin {
    fn config(&mut self) -> Result<CommandConfig, ShellError>;

    fn begin_filter(&mut self, args: Args) -> Result<(), ShellError> { ... }
fn filter(
        &mut self,
        input: Spanned<Value>
    ) -> Result<Vec<ReturnValue>, ShellError> { ... }
fn sink(&mut self, args: Args, input: Vec<Spanned<Value>>) { ... }
fn quit(&mut self) { ... } }

Required methods

Loading content...

Provided methods

fn begin_filter(&mut self, args: Args) -> Result<(), ShellError>

fn filter(
    &mut self,
    input: Spanned<Value>
) -> Result<Vec<ReturnValue>, ShellError>

fn sink(&mut self, args: Args, input: Vec<Spanned<Value>>)

fn quit(&mut self)

Loading content...

Implementors

Loading content...