mirror of
https://github.com/astral-sh/ruff
synced 2026-01-23 06:20:55 -05:00
Adding flag and logic for different output format (#185)
This commit is contained in:
@@ -3,15 +3,16 @@ use fern;
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! tell_user {
|
||||
($($arg:tt)*) => {
|
||||
println!(
|
||||
($writer:expr,$($arg:tt)*) => {
|
||||
writeln!(
|
||||
$writer,
|
||||
"[{}] {}",
|
||||
chrono::Local::now()
|
||||
.format("%H:%M:%S %p")
|
||||
.to_string()
|
||||
.dimmed(),
|
||||
format_args!($($arg)*)
|
||||
)
|
||||
)?
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user