26 lines
524 B
Rust
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
|
|
}
|