nu_plugin_from_sse/
lib.rs

1use nu_plugin::{Plugin, PluginCommand};
2
3mod commands;
4mod parser;
5mod plugin;
6
7pub use commands::SSE;
8pub use plugin::FromPlugin;
9
10impl Plugin for FromPlugin {
11    fn version(&self) -> String {
12        env!("CARGO_PKG_VERSION").into()
13    }
14
15    fn commands(&self) -> Vec<Box<dyn PluginCommand<Plugin = Self>>> {
16        vec![Box::new(SSE)]
17    }
18}