mirror of
https://github.com/nushell/nushell.git
synced 2025-07-01 07:00:37 +02:00
Change how to identify custom comamnd (#6187)
Co-authored-by: Frank <v-frankz@microsoft.com>
This commit is contained in:
@ -1101,7 +1101,7 @@ pub fn create_scope(
|
||||
cols.push("is_builtin".to_string());
|
||||
// we can only be a is_builtin or is_custom, not both
|
||||
vals.push(Value::Bool {
|
||||
val: decl.get_block_id().is_none(),
|
||||
val: !decl.is_custom_command(),
|
||||
span,
|
||||
});
|
||||
|
||||
@ -1119,7 +1119,7 @@ pub fn create_scope(
|
||||
|
||||
cols.push("is_custom".to_string());
|
||||
vals.push(Value::Bool {
|
||||
val: decl.get_block_id().is_some(),
|
||||
val: decl.is_custom_command(),
|
||||
span,
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user