diff options
author | Daniel Mueller <deso@posteo.net> | 2019-05-27 08:09:48 -0700 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2019-05-27 08:09:48 -0700 |
commit | d35cdf7f0a9822f73f4e1d18494350840de2a421 (patch) | |
tree | 6d22dd85516c5363a81c9264bc30a53cf244d632 /nitrocli/src/args.rs | |
parent | a7b63f8a0570f0c798af7eaadfaf6f4da14cd54c (diff) | |
download | nitrocli-d35cdf7f0a9822f73f4e1d18494350840de2a421.tar.gz nitrocli-d35cdf7f0a9822f73f4e1d18494350840de2a421.tar.bz2 |
Move storage status subcommand into status command
In an attempt to rework the structure of the storage command to better
accommodate future requirements for allowing to change the read-write
state of the unencrypted volume (as well as potentially the encrypted
one), this change removes the storage status subcommand and merges its
output into the storage command.
Diffstat (limited to 'nitrocli/src/args.rs')
-rw-r--r-- | nitrocli/src/args.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/nitrocli/src/args.rs b/nitrocli/src/args.rs index 10a097e..0b0429a 100644 --- a/nitrocli/src/args.rs +++ b/nitrocli/src/args.rs @@ -250,7 +250,6 @@ Enum! {StorageCommand, [ Close => ("close", storage_close), Hidden => ("hidden", storage_hidden), Open => ("open", storage_open), - Status => ("status", storage_status), ]} /// Execute a storage subcommand. @@ -295,15 +294,6 @@ fn storage_close(ctx: &mut ExecCtx<'_>, args: Vec<String>) -> Result<()> { commands::storage_close(ctx) } -/// Print the status of the nitrokey's storage. -fn storage_status(ctx: &mut ExecCtx<'_>, args: Vec<String>) -> Result<()> { - let mut parser = argparse::ArgumentParser::new(); - parser.set_description("Prints the status of the Nitrokey's storage"); - parse(ctx, parser, args)?; - - commands::storage_status(ctx) -} - Enum! {HiddenCommand, [ Close => ("close", storage_hidden_close), Create => ("create", storage_hidden_create), |