mirror of
https://github.com/nushell/nushell.git
synced 2025-05-12 10:53:01 +00:00
30 lines
720 B
Rust
30 lines
720 B
Rust
use nu_protocol::ast::Call;
|
|
use nu_protocol::engine::{Command, EvaluationContext};
|
|
use nu_protocol::{PipelineData, Signature, SyntaxShape, Value};
|
|
|
|
#[derive(Clone)]
|
|
pub struct Hide;
|
|
|
|
impl Command for Hide {
|
|
fn name(&self) -> &str {
|
|
"hide"
|
|
}
|
|
|
|
fn usage(&self) -> &str {
|
|
"Hide definitions in the current scope"
|
|
}
|
|
|
|
fn signature(&self) -> nu_protocol::Signature {
|
|
Signature::build("hide").required("pattern", SyntaxShape::String, "import pattern")
|
|
}
|
|
|
|
fn run(
|
|
&self,
|
|
_context: &EvaluationContext,
|
|
call: &Call,
|
|
_input: PipelineData,
|
|
) -> Result<nu_protocol::PipelineData, nu_protocol::ShellError> {
|
|
Ok(PipelineData::new())
|
|
}
|
|
}
|