2
0
mirror of https://github.com/sharkdp/bat synced 2024-11-16 21:25:56 +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 David Peter
parent ee3a37f3fc
commit b4f8cd3bae

View File

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