Skip to content

Commit

Permalink
build(deps): migrate from structopt 0.3 to clap 3.0
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Mar 5, 2024
1 parent 5ed4f97 commit 9317ade
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 74 deletions.
127 changes: 59 additions & 68 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion edu-sync-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ categories = ["command-line-utilities"]
edu-sync = { path = "../edu-sync" }

anyhow = "1.0"
clap = { version = "3.0", features = ["derive"] }
dialoguer = "0.11"
env_logger = "0.11"
futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
human-panic = "1.0"
indicatif = "0.17"
log = "0.4"
structopt = "0.3"
tokio = { version = "1", features = ["macros", "rt-multi-thread", "time"] }
url = "2.2"
2 changes: 1 addition & 1 deletion edu-sync-cli/src/add.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use std::path::PathBuf;

use clap::StructOpt;
use dialoguer::Password;
use edu_sync::{
account::Account,
config::{AccountConfig, Config},
};
use structopt::StructOpt;
use tokio::task;
use url::Url;

Expand Down
2 changes: 1 addition & 1 deletion edu-sync-cli/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use clap::StructOpt;
use edu_sync::config::Config;
use structopt::StructOpt;

/// Prints the path of the configuration file.
#[derive(Debug, StructOpt)]
Expand Down
2 changes: 1 addition & 1 deletion edu-sync-cli/src/fetch.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use clap::StructOpt;
use edu_sync::{account::Account, config::Config};
use structopt::StructOpt;

use crate::util;

Expand Down
2 changes: 1 addition & 1 deletion edu-sync-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ mod fetch;
mod sync;
mod util;

use clap::StructOpt;
use human_panic::setup_panic;
use structopt::StructOpt;

#[derive(Debug, StructOpt)]
#[structopt(name = "Edu Sync", author, about)]
Expand Down
2 changes: 1 addition & 1 deletion edu-sync-cli/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use std::{
time::Duration,
};

use clap::StructOpt;
use dialoguer::{
console::{self, Alignment},
Confirm,
Expand All @@ -25,7 +26,6 @@ use futures_util::{
};
use indicatif::{BinaryBytes, MultiProgress, ProgressBar, ProgressStyle};
use log::{info, trace};
use structopt::StructOpt;
use tokio::{task, time};

use crate::util;
Expand Down

0 comments on commit 9317ade

Please sign in to comment.