1
0
mirror of https://github.com/sharkdp/bat.git synced 2024-10-06 02:41:06 +01:00

Filter out languages that are hidden.

This commit is contained in:
Connor Kuehl 2018-05-08 11:50:56 -07:00 committed by David Peter
parent ee3a37f3fc
commit b4f8cd3bae

View File

@ -574,6 +574,9 @@ fn run() -> Result<()> {
let separator = " | ";
for lang in languages {
if lang.hidden {
continue;
}
print!("{:width$}{}", lang.name, separator, width = longest);
// Line-wrapping for the possible file extension overflow.