Update dependencies
This commit is contained in:
parent
d7b6ecbaf2
commit
eb6b52530c
3 changed files with 129 additions and 116 deletions
10
src/main.rs
10
src/main.rs
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue