lix-installer/src/main.rs
Ana Hobden 609ed3563f Expand codebase
Signed-off-by: Ana Hobden <operator@hoverbear.org>
2022-09-06 12:48:37 -07:00

26 lines
524 B
Rust

pub(crate) mod cli;
use std::process::ExitCode;
pub mod interaction;
use clap::Parser;
use cli::CommandExecute;
#[tokio::main]
async fn main() -> color_eyre::Result<ExitCode> {
color_eyre::config::HookBuilder::default()
.theme(if !atty::is(atty::Stream::Stderr) {
color_eyre::config::Theme::new()
} else {
color_eyre::config::Theme::dark()
})
.install()?;
let cli = cli::HarmonicCli::parse();
cli.instrumentation.setup()?;
cli.execute().await
}