use clap::Parser;
use std::path::PathBuf;

#[derive(Debug, Parser)]
#[command(name = "spool-daemon", version, about = "spool lifecycle daemon")]
struct DaemonCli {
    #[arg(long)]
    config: PathBuf,
}

fn main() -> anyhow::Result<()> {
    let cli = DaemonCli::parse();
    spool::daemon::serve_stdio(cli.config.as_path())
}
