From 2ea8087fbf6ecf4e29ceb7f71a28aee5e8e2ddbf Mon Sep 17 00:00:00 2001 From: amtoine Date: Tue, 21 Feb 2023 13:34:29 +0100 Subject: [PATCH] add a debug printing of the example command results --- crates/nu-engine/src/documentation.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/nu-engine/src/documentation.rs b/crates/nu-engine/src/documentation.rs index cdd5b82986..90ffed29fb 100644 --- a/crates/nu-engine/src/documentation.rs +++ b/crates/nu-engine/src/documentation.rs @@ -209,6 +209,13 @@ fn get_documentation( } else { let _ = write!(long_desc, "\n > {}\n", example.example); } + + match &example.result { + Some(result) => { + let _ = write!(long_desc, " {:?}\n", result); + } + None => {} + } } long_desc.push('\n');