diff options
author | Daniel Mueller <deso@posteo.net> | 2020-04-10 12:20:18 -0700 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2020-04-10 12:20:18 -0700 |
commit | eae8b2a1f0d1faf70776fccc12c93267a2143021 (patch) | |
tree | 57285013a7efa36ebeac9a25300412a731eb355d /src/arg_defs.rs | |
parent | 95358de8ec4e2c9fb7254d65fb9147fb118e2f78 (diff) | |
download | nitrocli-eae8b2a1f0d1faf70776fccc12c93267a2143021.tar.gz nitrocli-eae8b2a1f0d1faf70776fccc12c93267a2143021.tar.bz2 |
Merge otp_set function into commands.rs
Now that we have isolated and separated out structopt specific
definitions into a new module, arg_defs, args.rs is actually so small
that we do not want to keep it around any longer.
This change marks a first step moving us closer towards removing it.
Specifically, it merges the otp_set function from args.rs into the
function of the same name in commands.rs.
Diffstat (limited to 'src/arg_defs.rs')
-rw-r--r-- | src/arg_defs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arg_defs.rs b/src/arg_defs.rs index c63fd82..fd296e4 100644 --- a/src/arg_defs.rs +++ b/src/arg_defs.rs @@ -222,7 +222,7 @@ Command! {OtpCommand, [ crate::commands::otp_get(ctx, args.slot, args.algorithm, args.time) }, /// Configures a one-time password slot - Set(OtpSetArgs) => crate::args::otp_set, + Set(OtpSetArgs) => crate::commands::otp_set, /// Prints the status of the one-time password slots Status(OtpStatusArgs) => |ctx, args: OtpStatusArgs| crate::commands::otp_status(ctx, args.all), ]} |