chatgpt_api 0.3.0

Use ChatGPT easily from Rust. Or from the command line.
Documentation
#![allow(clippy::module_name_repetitions, dead_code, clippy::use_self)]

use clap::Parser;

mod cli;

#[tokio::main]
async fn main() {
    let args = cli::args::Args::parse();
    if args.verbose {
        std::env::set_var("RUST_LOG", "debug");
    }
    else {
        std::env::set_var("RUST_LOG", "info");
    }
    pretty_env_logger::init();
    let config = cli::configure();
    if let Err(e) = cli::run(config).await {
        eprintln!("Error: {e}");
        std::process::exit(1);
    }
}