Skip to main content

register_plugin

Function register_plugin 

Source
pub fn register_plugin(name: impl Into<String>, plugin: Plugin)
Expand description

Make plugin available to -p / --plugin under name.

Register the plain name (csv); the lookup also accepts the @tabnas/csv form and a path-like reference ending in that name. Registering a name again replaces it. Call this before run, typically from a custom binary’s main:

tabnas_jsonic_cli::register_plugin("noop", tabnas::Plugin::new("noop", nothing));