forked from DGNum/colmena
cli: Allow configuring output colorization
We now follow the <https://bixense.com/clicolors> standard.
This commit is contained in:
parent
dc57b489ea
commit
f253e6eb18
5 changed files with 59 additions and 16 deletions
14
src/main.rs
14
src/main.rs
|
@ -1,7 +1,5 @@
|
|||
#![deny(unused_must_use)]
|
||||
|
||||
use std::env;
|
||||
|
||||
mod nix;
|
||||
mod cli;
|
||||
mod command;
|
||||
|
@ -12,17 +10,5 @@ mod util;
|
|||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
init_logging();
|
||||
cli::run().await;
|
||||
}
|
||||
|
||||
fn init_logging() {
|
||||
if env::var("RUST_LOG").is_err() {
|
||||
// HACK
|
||||
env::set_var("RUST_LOG", "info")
|
||||
}
|
||||
env_logger::builder()
|
||||
.format_timestamp(None)
|
||||
.format_module_path(false)
|
||||
.init();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue