vrc-get 0.1.13

Open Source command line client of VRChat Package Manager.
extern crate core;

use clap::Parser;
use reqwest::Client;

mod commands;
mod version;
mod vpm;

#[tokio::main]
async fn main() {
    env_logger::init();
    commands::Command::parse().run().await;
}

pub(crate) fn create_client(offline: bool) -> Option<Client> {
    if offline {
        None
    } else {
        Some(
            Client::builder()
                .user_agent(concat!("vrc-get/", env!("CARGO_PKG_VERSION")))
                .build()
                .expect("building client"),
        )
    }
}