tagger/src/main.rs

23 lines
355 B
Rust
Raw Normal View History

2024-05-05 13:35:12 +02:00
use clap::Parser;
use color_eyre::eyre::Result;
mod cli;
mod commands;
mod traits;
mod types;
mod gui;
use types::*;
fn main() -> Result<()> {
color_eyre::install()?;
tracing_subscriber::fmt().init();
let flags = cli::Cli::parse();
match &flags.command {
Some(_) => cli::run(&flags),
None => gui::run(&flags),
}
}