mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
feat(std/help): add is_const
information (#16032)
# Description I wanted to know if `version` is a const command and thought that it would be in the "This command" section but it wasn't, so I added it. ``` → help version Display Nu version, and its build configuration. Category: core This command: Creates scope | ❌ Is built-in | ✅ Is const | ✅ Is a subcommand | ❌ Is a part of a plugin | ❌ Is a custom command | ❌ Is a keyword | ❌ ```
This commit is contained in:
@ -571,6 +571,7 @@ def build-command-page [command: record] {
|
||||
{
|
||||
"Creates scope" : $command.creates_scope,
|
||||
"Is built-in" : ($command.type == "built-in"),
|
||||
"Is const" : $command.is_const,
|
||||
"Is a subcommand" : $command.is_sub,
|
||||
"Is a part of a plugin": ($command.type == "plugin"),
|
||||
"Is a custom command": ($command.type == "custom"),
|
||||
|
Reference in New Issue
Block a user