licensa 0.1.9

CLI tool for seamless source code license management, supporting 65+ file types
Documentation
// Copyright 2024 Nelson Dominguez
// SPDX-License-Identifier: MIT OR Apache-2.0

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(())
}