From 37f7800766fe12af43d0cdba13aea9545cbe7755 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Sun, 20 Jan 2019 13:56:48 -0800 Subject: Add test for storage hidden subcommand This change adds a test for the creation, opening, and closing of a hidden subvolume. In order to support that in a non-interactive fashion, we introduce and honor the NITROCLI_PASSWORD environment variable, that prevents an interactive password query. --- nitrocli/src/args.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nitrocli/src/args.rs') diff --git a/nitrocli/src/args.rs b/nitrocli/src/args.rs index 0f4ef4f..0fed3be 100644 --- a/nitrocli/src/args.rs +++ b/nitrocli/src/args.rs @@ -49,6 +49,7 @@ pub struct ExecCtx<'io> { pub user_pin: Option, pub new_admin_pin: Option, pub new_user_pin: Option, + pub password: Option, pub verbosity: u64, } @@ -876,6 +877,7 @@ fn parse_arguments<'io, 'ctx: 'io>( user_pin: ctx.user_pin.take(), new_admin_pin: ctx.new_admin_pin.take(), new_user_pin: ctx.new_user_pin.take(), + password: ctx.password.take(), verbosity, }; Ok((command, ctx, subargs)) -- cgit v1.2.1