mirror of
https://github.com/nushell/nushell
synced 2024-12-28 14:03:09 +00:00
print "..." when there is no output
This commit is contained in:
parent
a19a6082c4
commit
471ce95b5b
1 changed files with 4 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue