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:
Tyarel8
2025-06-23 22:22:58 +02:00
committed by GitHub
parent ae0cf8780d
commit a234e6ff51

View File

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