mirror of
https://github.com/nushell/nushell
synced 2024-12-30 15:03:25 +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 G: &str = "\x1b[32m"; // green
|
||||||
const C: &str = "\x1b[36m"; // cyan
|
const C: &str = "\x1b[36m"; // cyan
|
||||||
const BB: &str = "\x1b[1;34m"; // bold blue
|
const BB: &str = "\x1b[1;34m"; // bold blue
|
||||||
|
const WD: &str = "\x1b[2;37m"; // white dimmed
|
||||||
const RESET: &str = "\x1b[0m"; // reset
|
const RESET: &str = "\x1b[0m"; // reset
|
||||||
|
|
||||||
let cmd_name = &sig.name;
|
let cmd_name = &sig.name;
|
||||||
|
@ -214,7 +215,9 @@ fn get_documentation(
|
||||||
Some(result) => {
|
Some(result) => {
|
||||||
let _ = write!(long_desc, "{:#?}\n", result);
|
let _ = write!(long_desc, "{:#?}\n", result);
|
||||||
}
|
}
|
||||||
None => {}
|
None => {
|
||||||
|
let _ = write!(long_desc, " {WD}...{RESET}\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue