1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-03-13 22:28:26 +00:00

Filter out languages that are hidden.

This commit is contained in:
Connor Kuehl 2018-05-08 11:50:56 -07:00 committed by sharkdp
parent 71f2e27871
commit 6e5b00b5ba

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.