hide-env
does not need to be a keyword
This commit is contained in:
parent
054551749b
commit
e7b329c716
|
@ -1,5 +1,5 @@
|
|||
use nu_engine::command_prelude::*;
|
||||
use nu_protocol::{did_you_mean, engine::CommandType};
|
||||
use nu_protocol::did_you_mean;
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct HideEnv;
|
||||
|
@ -29,15 +29,6 @@ impl Command for HideEnv {
|
|||
"Hide environment variables in the current scope."
|
||||
}
|
||||
|
||||
fn extra_usage(&self) -> &str {
|
||||
r#"This command is a parser keyword. For details, check:
|
||||
https://www.nushell.sh/book/thinking_in_nu.html"#
|
||||
}
|
||||
|
||||
fn command_type(&self) -> CommandType {
|
||||
CommandType::Keyword
|
||||
}
|
||||
|
||||
fn run(
|
||||
&self,
|
||||
engine_state: &EngineState,
|
||||
|
|
Loading…
Reference in New Issue
Block a user