allow setting no_confirm via envvar (#1921)

This commit is contained in:
John Vandenberg 2024-09-22 15:06:01 +08:00 committed by GitHub
parent e3321fbac5
commit 2917b32788
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.