Update dependencies

This commit is contained in:
Andrey Golovizin 2022-02-14 20:46:07 +01:00
parent d7b6ecbaf2
commit eb6b52530c
3 changed files with 129 additions and 116 deletions

View file

@ -4,14 +4,14 @@ use std::process;
use log::debug;
use clap::Clap;
use clap::Parser;
use serde::{Deserialize, Serialize};
const BASE_URL: &str = "https://api.azirevpn.com/v1";
/// AzireVPN client
#[derive(Clap, Debug)]
#[clap(version=clap::crate_version!())]
#[derive(Parser, Debug)]
#[clap(version)]
struct Opts {
/// Enables JSON output
#[clap(short, long)]
@ -21,7 +21,7 @@ struct Opts {
command: Command,
}
#[derive(Clap, Debug)]
#[derive(Parser, Debug)]
struct ConfigOpts {
location: String,
username: String,
@ -34,7 +34,7 @@ struct ConfigOpts {
no_ipv6: bool,
}
#[derive(Clap, Debug)]
#[derive(Parser, Debug)]
enum Command {
/// Prints the list of VPN endpoints
Endpoints,