lix-installer/src/main.rs

22 lines
501 B
Rust
Raw Normal View History

2022-09-02 23:03:57 +00:00
use std::process::ExitCode;
use clap::Parser;
2022-10-25 18:57:09 +00:00
use harmonic::cli::CommandExecute;
2022-09-02 23:03:57 +00:00
#[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()?;
2022-10-25 18:57:09 +00:00
let cli = harmonic::cli::HarmonicCli::parse();
2022-09-02 23:03:57 +00:00
cli.instrumentation.setup()?;
cli.execute().await
}