Skip to content

Commit 3561ccf

Browse files
committed
Start
1 parent d6062a4 commit 3561ccf

File tree

4 files changed

+92
-118
lines changed

4 files changed

+92
-118
lines changed

Cargo.lock

Lines changed: 12 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Cargo.toml
22

3-
# Copyright (C) 2017-2024 The Nitrocli Developers
3+
# Copyright (C) 2017-2025 The Nitrocli Developers
44
# SPDX-License-Identifier: GPL-3.0-or-later
55

66
[package]
@@ -47,12 +47,12 @@ version = "1.0"
4747
version = "0.5.1"
4848

4949
[dependencies.clap]
50-
version = "3.0"
50+
version = "4.0"
5151
default-features = false
5252
features = ["derive", "std", "unicode"]
5353

5454
[dependencies.clap_complete]
55-
version = "3.0"
55+
version = "4.0"
5656
optional = true
5757

5858
[dependencies.directories]

ext/otp_cache.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// otp_cache.rs
22

3-
// Copyright (C) 2020-2024 The Nitrocli Developers
3+
// Copyright (C) 2020-2025 The Nitrocli Developers
44
// SPDX-License-Identifier: GPL-3.0-or-later
55

66
use std::fs;
@@ -33,17 +33,17 @@ struct Slot {
3333
/// `--force-update` option is set. The cache includes the Nitrokey's
3434
/// serial number so that it is possible to use it with multiple
3535
/// devices.
36-
#[derive(Debug, clap::StructOpt)]
37-
#[structopt(bin_name = "nitrocli otp-cache")]
36+
#[derive(Debug, clap::Parser)]
37+
#[clap(bin_name = "nitrocli otp-cache")]
3838
struct Args {
3939
/// Always query the slot data even if it is already cached
40-
#[structopt(short, long, global = true)]
40+
#[clap(short, long, global = true)]
4141
force_update: bool,
42-
#[structopt(subcommand)]
42+
#[clap(subcommand)]
4343
cmd: Command,
4444
}
4545

46-
#[derive(Debug, clap::StructOpt)]
46+
#[derive(Debug, clap::Parser)]
4747
enum Command {
4848
/// Generates a one-time password
4949
Get {

0 commit comments

Comments
 (0)