use licensa::cli::{Cli, Command};
use licensa::commands;
use anyhow::Result;
use clap::Parser;
fn main() -> Result<()> {
run()
}
fn run() -> Result<()> {
let cli = Cli::parse();
match cli.command {
Command::Init(args) => {
commands::init::run(&args)?;
}
Command::Apply(args) => {
commands::apply::run(&args)?;
}
Command::Verify(mut args) => {
commands::verify::run(&mut args)?;
}
};
Ok(())
}