mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Refactor external command (#6083)
Co-authored-by: Frank <v-frankz@microsoft.com>
This commit is contained in:
@ -1121,7 +1121,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,
|
||||
});
|
||||
|
||||
@ -1139,7 +1139,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