From a234e6ff51096ed0e236f77e563e4dde0a951f0d Mon Sep 17 00:00:00 2001 From: Tyarel8 <98483313+Tyarel8@users.noreply.github.com> Date: Mon, 23 Jun 2025 22:22:58 +0200 Subject: [PATCH] feat(std/help): add `is_const` information (#16032) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # 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 | ❌ ``` --- crates/nu-std/std/help/mod.nu | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/nu-std/std/help/mod.nu b/crates/nu-std/std/help/mod.nu index 570788d027..49acb4b576 100644 --- a/crates/nu-std/std/help/mod.nu +++ b/crates/nu-std/std/help/mod.nu @@ -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"),