2020-12-29 20:31:19 +01:00
|
|
|
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;
|
2021-11-18 22:15:20 +01:00
|
|
|
mod troubleshooter;
|
2020-12-16 05:21:26 +01:00
|
|
|
mod util;
|
|
|
|
|
2021-02-10 19:29:17 +01:00
|
|
|
#[tokio::main]
|
2020-12-18 10:27:44 +01:00
|
|
|
async fn main() {
|
2020-12-29 20:31:19 +01:00
|
|
|
init_logging();
|
2021-03-23 22:14:04 +01:00
|
|
|
cli::run().await;
|
2020-12-29 20:31:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|