From 2917b327882cf21fce521d12e0c0799110e7811b Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Sun, 22 Sep 2024 15:06:01 +0800 Subject: [PATCH] allow setting no_confirm via envvar (#1921) --- crates/bin/src/args.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/bin/src/args.rs b/crates/bin/src/args.rs index 9881341e..dc4480b4 100644 --- a/crates/bin/src/args.rs +++ b/crates/bin/src/args.rs @@ -221,7 +221,12 @@ pub struct Args { pub(crate) dry_run: bool, /// Disable interactive mode / confirmation prompts. - #[clap(help_heading = "Options", short = 'y', long)] + #[clap( + help_heading = "Options", + short = 'y', + long, + env = "BINSTALL_NO_CONFIRM" + )] pub(crate) no_confirm: bool, /// Do not cleanup temporary files.