mirror of
https://github.com/nushell/nushell.git
synced 2025-01-11 00:38:23 +01: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"
|
||||
}
|
||||
|
||||
fn is_private(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn signature(&self) -> nu_protocol::Signature {
|
||||
Signature::build(self.name())
|
||||
.switch("redirect-stdout", "redirect-stdout", None)
|
||||
|
@ -977,12 +977,6 @@ pub fn create_scope(
|
||||
span,
|
||||
});
|
||||
|
||||
cols.push("is_private".to_string());
|
||||
vals.push(Value::Bool {
|
||||
val: decl.is_private(),
|
||||
span,
|
||||
});
|
||||
|
||||
cols.push("is_builtin".to_string());
|
||||
// we can only be a is_builtin or is_custom, not both
|
||||
vals.push(Value::Bool {
|
||||
|
@ -27,11 +27,6 @@ pub trait Command: Send + Sync + CommandClone {
|
||||
false
|
||||
}
|
||||
|
||||
// Commands that are not meant to be run by users
|
||||
fn is_private(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
fn examples(&self) -> Vec<Example> {
|
||||
Vec::new()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user