Remove is_private from $nu.scope.commands (#4979)

This commit is contained in:
Jakub Žádník 2022-03-26 21:22:35 +02:00 committed by GitHub
parent 71dd857926
commit 79e4d35f01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 15 deletions

View File

@ -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)

View File

@ -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 {

View File

@ -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()
}