summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nitrocli/src/args.rs36
1 files changed, 18 insertions, 18 deletions
diff --git a/nitrocli/src/args.rs b/nitrocli/src/args.rs
index d7a6d25..e7e7717 100644
--- a/nitrocli/src/args.rs
+++ b/nitrocli/src/args.rs
@@ -292,24 +292,6 @@ fn status(args: Vec<String>) -> Result<()> {
commands::status()
}
-/// Open the encrypted volume on the nitrokey.
-fn storage_open(args: Vec<String>) -> Result<()> {
- let mut parser = argparse::ArgumentParser::new();
- parser.set_description("Opens the encrypted volume on a Nitrokey Storage");
- parse(&parser, args)?;
-
- commands::storage_open()
-}
-
-/// Close the previously opened encrypted volume.
-fn storage_close(args: Vec<String>) -> Result<()> {
- let mut parser = argparse::ArgumentParser::new();
- parser.set_description("Closes the encrypted volume on a Nitrokey Storage");
- parse(&parser, args)?;
-
- commands::storage_close()
-}
-
#[derive(Debug)]
enum StorageCommand {
Close,
@@ -374,6 +356,24 @@ fn storage(args: Vec<String>) -> Result<()> {
subcommand.execute(subargs)
}
+/// Open the encrypted volume on the nitrokey.
+fn storage_open(args: Vec<String>) -> Result<()> {
+ let mut parser = argparse::ArgumentParser::new();
+ parser.set_description("Opens the encrypted volume on a Nitrokey Storage");
+ parse(&parser, args)?;
+
+ commands::storage_open()
+}
+
+/// Close the previously opened encrypted volume.
+fn storage_close(args: Vec<String>) -> Result<()> {
+ let mut parser = argparse::ArgumentParser::new();
+ parser.set_description("Closes the encrypted volume on a Nitrokey Storage");
+ parse(&parser, args)?;
+
+ commands::storage_close()
+}
+
/// Clear the PIN as cached by various other commands.
fn clear(args: Vec<String>) -> Result<()> {
let mut parser = argparse::ArgumentParser::new();