mirror of
https://github.com/nushell/nushell.git
synced 2025-08-17 13:31:11 +02:00
Fix 'help commands'; Add 'is_custom' column (#420)
* Fix fetching commands; Add is_custom column * Remove old comment
This commit is contained in:
@ -602,6 +602,12 @@ pub fn eval_variable(
|
||||
span,
|
||||
});
|
||||
|
||||
cols.push("is_custom".to_string());
|
||||
vals.push(Value::Bool {
|
||||
val: decl.get_block_id().is_some(),
|
||||
span,
|
||||
});
|
||||
|
||||
cols.push("creates_scope".to_string());
|
||||
vals.push(Value::Bool {
|
||||
val: signature.creates_scope,
|
||||
|
Reference in New Issue
Block a user