hygiea 0.1.0

Dev tool proxy for Claude skills — wraps java, mvn, find and more
mod commands;
mod config;
mod utils;

use anyhow::Result;
use clap::{Parser, Subcommand};

#[derive(Parser)]
#[command(
    name = "hygiea",
    about = "Dev tool proxy for Claude skills — wraps java, mvn and more",
    version,
    propagate_version = true
)]
struct Cli {
    #[command(subcommand)]
    command: Commands,
}

#[derive(Subcommand)]
enum Commands {
    /// Run Java with auto-detected JDK
    Java(commands::java::JavaArgs),
    /// Run Maven with auto-detected JDK from pom.xml
    Mvn(commands::mvn::MvnArgs),
}

fn main() -> Result<()> {
    let cli = Cli::parse();
    match cli.command {
        Commands::Java(args) => commands::java::run(args),
        Commands::Mvn(args) => commands::mvn::run(args),
    }
}