mirror of
https://github.com/nushell/nushell.git
synced 2025-04-23 20:58:19 +02:00
Remove is_private from $nu.scope.commands (#4979)
This commit is contained in:
parent
71dd857926
commit
79e4d35f01
@ -30,10 +30,6 @@ impl Command for External {
|
|||||||
"Runs external command"
|
"Runs external command"
|
||||||
}
|
}
|
||||||
|
|
||||||
fn is_private(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
fn signature(&self) -> nu_protocol::Signature {
|
fn signature(&self) -> nu_protocol::Signature {
|
||||||
Signature::build(self.name())
|
Signature::build(self.name())
|
||||||
.switch("redirect-stdout", "redirect-stdout", None)
|
.switch("redirect-stdout", "redirect-stdout", None)
|
||||||
|
@ -977,12 +977,6 @@ pub fn create_scope(
|
|||||||
span,
|
span,
|
||||||
});
|
});
|
||||||
|
|
||||||
cols.push("is_private".to_string());
|
|
||||||
vals.push(Value::Bool {
|
|
||||||
val: decl.is_private(),
|
|
||||||
span,
|
|
||||||
});
|
|
||||||
|
|
||||||
cols.push("is_builtin".to_string());
|
cols.push("is_builtin".to_string());
|
||||||
// we can only be a is_builtin or is_custom, not both
|
// we can only be a is_builtin or is_custom, not both
|
||||||
vals.push(Value::Bool {
|
vals.push(Value::Bool {
|
||||||
|
@ -27,11 +27,6 @@ pub trait Command: Send + Sync + CommandClone {
|
|||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
// Commands that are not meant to be run by users
|
|
||||||
fn is_private(&self) -> bool {
|
|
||||||
false
|
|
||||||
}
|
|
||||||
|
|
||||||
fn examples(&self) -> Vec<Example> {
|
fn examples(&self) -> Vec<Example> {
|
||||||
Vec::new()
|
Vec::new()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user