mod cli;
mod runner;

use crate::cli::App;
use anyhow::Result;
use clap::Parser;

fn main() -> Result<()> {
    let args: App = App::parse();
    let runner = crate::runner::Runner::new();
    runner.load(args.file)?;
    for v in args.task {
        runner.run_task(v)?;
    }
    Ok(())
}