Skip to content

Commit a137cb1

Browse files
authored
[ty] Display "All checks passed!" message in green (#17982)
1 parent 03a4d56 commit a137cb1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/ty/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use crate::args::{CheckCommand, Command, TerminalColor};
1515
use crate::logging::setup_tracing;
1616
use anyhow::{anyhow, Context};
1717
use clap::{CommandFactory, Parser};
18+
use colored::Colorize;
1819
use crossbeam::channel as crossbeam_channel;
1920
use rayon::ThreadPoolBuilder;
2021
use ruff_db::diagnostic::{Diagnostic, DisplayDiagnosticConfig, Severity};
@@ -260,7 +261,7 @@ impl MainLoop {
260261
let mut stdout = stdout().lock();
261262

262263
if result.is_empty() {
263-
writeln!(stdout, "All checks passed!")?;
264+
writeln!(stdout, "{}", "All checks passed!".green().bold())?;
264265

265266
if self.watcher.is_none() {
266267
return Ok(ExitStatus::Success);

0 commit comments

Comments
 (0)