use nu_protocol::ast::Call; use nu_protocol::engine::{Command, EngineState, Stack}; use nu_protocol::{PipelineData, Signature, SyntaxShape}; #[derive(Clone)] pub struct Register; impl Command for Register { fn name(&self) -> &str { "register" } fn usage(&self) -> &str { "Register a plugin" } fn signature(&self) -> nu_protocol::Signature { Signature::build("register").required( "plugin", SyntaxShape::Filepath, "location of bin for plugin", ) } fn run( &self, _engine_state: &EngineState, _stack: &mut Stack, _call: &Call, _input: PipelineData, ) -> Result { Ok(PipelineData::new()) } }