From 471ce95b5b04d780e034edbf75c7dbcc386a7e66 Mon Sep 17 00:00:00 2001 From: amtoine Date: Wed, 22 Feb 2023 12:11:05 +0100 Subject: [PATCH] print "..." when there is no output --- crates/nu-engine/src/documentation.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/nu-engine/src/documentation.rs b/crates/nu-engine/src/documentation.rs index ddc876fe06..ae71db8f4b 100644 --- a/crates/nu-engine/src/documentation.rs +++ b/crates/nu-engine/src/documentation.rs @@ -48,6 +48,7 @@ fn get_documentation( const G: &str = "\x1b[32m"; // green const C: &str = "\x1b[36m"; // cyan const BB: &str = "\x1b[1;34m"; // bold blue + const WD: &str = "\x1b[2;37m"; // white dimmed const RESET: &str = "\x1b[0m"; // reset let cmd_name = &sig.name; @@ -214,7 +215,9 @@ fn get_documentation( Some(result) => { let _ = write!(long_desc, "{:#?}\n", result); } - None => {} + None => { + let _ = write!(long_desc, " {WD}...{RESET}\n"); + } } }