|
|
|
@ -142,7 +142,7 @@ pub fn languages_all() -> std::io::Result<()> {
|
|
|
|
|
|
|
|
|
|
let check_binary = |cmd: Option<String>| match cmd {
|
|
|
|
|
Some(cmd) => match which::which(&cmd) {
|
|
|
|
|
Ok(_) => column(&format!("✔ {}", cmd), Color::Green),
|
|
|
|
|
Ok(_) => column(&format!("✓ {}", cmd), Color::Green),
|
|
|
|
|
Err(_) => column(&format!("✘ {}", cmd), Color::Red),
|
|
|
|
|
},
|
|
|
|
|
None => column("None", Color::Yellow),
|
|
|
|
@ -162,7 +162,7 @@ pub fn languages_all() -> std::io::Result<()> {
|
|
|
|
|
|
|
|
|
|
for ts_feat in TsFeature::all() {
|
|
|
|
|
match load_runtime_file(&lang.language_id, ts_feat.runtime_filename()).is_ok() {
|
|
|
|
|
true => column("✔", Color::Green),
|
|
|
|
|
true => column("✓", Color::Green),
|
|
|
|
|
false => column("✘", Color::Red),
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -271,7 +271,7 @@ fn probe_treesitter_feature(lang: &str, feature: TsFeature) -> std::io::Result<(
|
|
|
|
|
let mut stdout = stdout.lock();
|
|
|
|
|
|
|
|
|
|
let found = match load_runtime_file(lang, feature.runtime_filename()).is_ok() {
|
|
|
|
|
true => "✔".green(),
|
|
|
|
|
true => "✓".green(),
|
|
|
|
|
false => "✘".red(),
|
|
|
|
|
};
|
|
|
|
|
writeln!(stdout, "{} queries: {}", feature.short_title(), found)?;
|
|
|
|
|