35 lines
798 B
Rust
35 lines
798 B
Rust
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<nu_protocol::PipelineData, nu_protocol::ShellError> {
|
|
Ok(PipelineData::new())
|
|
}
|
|
}
|