colmena/src/main.rs

25 lines
383 B
Rust
Raw Normal View History

use std::env;
2020-12-16 05:21:26 +01:00
mod nix;
2021-03-23 22:14:04 +01:00
mod cli;
2020-12-16 05:21:26 +01:00
mod command;
mod progress;
mod util;
2021-02-10 19:29:17 +01:00
#[tokio::main]
2020-12-18 10:27:44 +01:00
async fn main() {
init_logging();
2021-03-23 22:14:04 +01:00
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();
2020-12-16 05:21:26 +01:00
}