2021-02-16 13:48:20 -08:00
|
|
|
#![allow(clippy::integer_arithmetic)]
|
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 {
|
|
|
|
write!(w, "{}", self)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub trait VerboseDisplay: std::fmt::Display {
|
|
|
|
fn write_str(&self, w: &mut dyn std::fmt::Write) -> std::fmt::Result {
|
|
|
|
write!(w, "{}", self)
|
|
|
|
}
|
|
|
|
}
|