oreq 0.2.6

The tool for interactively creating curl arguments from OpenAPI.
Documentation
use std::process::exit;

use clap::Parser;

mod cli;
mod error;
mod fmt;
mod prompt;
mod req;

fn main() -> anyhow::Result<()> {
    let cli = cli::Cli::parse();
    let res = cli.run();

    if let Err(e) = res {
        let (msg, code) = e.show();
        eprintln!("{}", msg);
        exit(code)
    }

    Ok(())
}