feat: Add strategies environment variable (#1555)

This commit is contained in:
Dustin Blackman 2024-01-06 12:39:54 +00:00 committed by GitHub
parent dca22b6548
commit b14f78b982
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,7 +151,12 @@ pub struct Args {
/// binstall will run the strategies specified in order.
///
/// Default value is "crate-meta-data,quick-install,compile".
#[clap(help_heading = "Overrides", long, value_delimiter(','))]
#[clap(
help_heading = "Overrides",
long,
value_delimiter(','),
env = "BINSTALL_STRATEGIES"
)]
pub(crate) strategies: Vec<Strategy>,
/// Disable the strategies specified.