From 87fa86c60e00db55e2e3f81c7f93ebab509dcf25 Mon Sep 17 00:00:00 2001 From: NotTheDr01ds <32344964+NotTheDr01ds@users.noreply.github.com> Date: Thu, 7 Mar 2024 07:00:34 -0500 Subject: [PATCH] Fix: Convert help example results to text (#12078) # Description Converts help example results `to text` in `build-command-page`. This prevents an `item_not_found` error when attempting to `help ` on many legitimate commands. Fixes #12073 # User-Facing Changes # Tests + Formatting # After Submitting --- crates/nu-std/std/help.nu | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/nu-std/std/help.nu b/crates/nu-std/std/help.nu index 9f3b5e1a19a2..da9ded9ea1fd 100644 --- a/crates/nu-std/std/help.nu +++ b/crates/nu-std/std/help.nu @@ -647,6 +647,7 @@ def build-command-page [command: record] { (if not ($example.result | is-empty) { $example.result | table + | to text | if ($example.result | describe) == "binary" { str join } else { lines } | each {|line| $" ($line)"