2023-09-01 00:26:13 -07:00
|
|
|
#![allow(clippy::arithmetic_side_effects)]
|
2020-09-22 17:29:11 -07:00
|
|
|
mod cli_output;
|
2022-05-16 23:32:52 -07:00
|
|
|
pub mod cli_version;
|
2020-09-22 17:29:11 -07:00
|
|
|
pub mod display;
|
|
|
|
pub use cli_output::*;
|
2020-09-28 13:18:31 -07:00
|
|
|
|
|
|
|
pub trait QuietDisplay: std::fmt::Display {
|
|
|
|
fn write_str(&self, w: &mut dyn std::fmt::Write) -> std::fmt::Result {
|
2022-12-06 06:30:06 -08:00
|
|
|
write!(w, "{self}")
|
2020-09-28 13:18:31 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub trait VerboseDisplay: std::fmt::Display {
|
|
|
|
fn write_str(&self, w: &mut dyn std::fmt::Write) -> std::fmt::Result {
|
2022-12-06 06:30:06 -08:00
|
|
|
write!(w, "{self}")
|
2020-09-28 13:18:31 -07:00
|
|
|
}
|
|
|
|
}
|