From 9b139330f834a6d5916190041fcb15b8e51efc66 Mon Sep 17 00:00:00 2001 From: Antoine Stevan <44101798+amtoine@users.noreply.github.com> Date: Sat, 20 May 2023 17:37:17 +0200 Subject: [PATCH] stdlib: fix the names of the `help` commands in `help.nu` (#9252) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit related to the changes in - #9193 # Description when we change the namespace of a module, the internal calls to the `export`ed commands needs to be updated as well :eyes: :laughing: without this, we have the following pretty error: ``` > std help ansi Error: × std::help::item_not_found ╭─[entry #1:1:1] 1 │ std help ansi · ──┬─ · ╰── item not found ╰──── ``` --- crates/nu-std/lib/help.nu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/nu-std/lib/help.nu b/crates/nu-std/lib/help.nu index bff954636..e822e8246 100644 --- a/crates/nu-std/lib/help.nu +++ b/crates/nu-std/lib/help.nu @@ -726,13 +726,13 @@ You can also learn more at (ansi default_italic)(ansi light_cyan_underline)https let target_item = ($item | str join " ") - let commands = (try { help commands $target_item --find $find }) + let commands = (try { commands $target_item --find $find }) if not ($commands | is-empty) { return $commands } - let aliases = (try { help aliases $target_item --find $find }) + let aliases = (try { aliases $target_item --find $find }) if not ($aliases | is-empty) { return $aliases } - let modules = (try { help modules $target_item --find $find }) + let modules = (try { modules $target_item --find $find }) if not ($modules | is-empty) { return $modules } let span = (metadata $item | get span)