From 9929c4bf66ff747a397d87c7291456b6ff09bca8 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sun, 2 Feb 2020 12:15:10 +0100 Subject: Add --no-cache option to bypass PIN cache This patch adds a new --no-cache option that corresponds to the NITROCLI_NO_CACHE environment variable and the no_cache configuration. This makes the user interface more consistent as all configuration items are now backed by both an environment variable and a command-line option. --- src/args.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/args.rs') diff --git a/src/args.rs b/src/args.rs index 7f2dc31..5a4b312 100644 --- a/src/args.rs +++ b/src/args.rs @@ -27,6 +27,9 @@ pub struct Args { /// Selects the device model to connect to #[structopt(short, long, global = true, possible_values = &DeviceModel::all_str())] pub model: Option, + /// Disables the cache for all secrets. + #[structopt(long, global = true)] + pub no_cache: bool, #[structopt(subcommand)] pub cmd: Command, } -- cgit v1.2.3