mirror of
https://github.com/nushell/nushell.git
synced 2025-05-10 21:14:26 +02:00
print "..." when there is no output
This commit is contained in:
parent
a19a6082c4
commit
471ce95b5b
@ -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 New Issue
Block a user