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:
parent
ee3a37f3fc
commit
b4f8cd3bae
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user