print "..." when there is no output

This commit is contained in:
amtoine 2023-02-22 12:11:05 +01:00
parent a19a6082c4
commit 471ce95b5b
No known key found for this signature in database
GPG key ID: 37AAE9B486CFF1AB

View file

@ -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");
}
}
}