option to use choco with gsudo on windows (#463)
This commit is contained in:
@@ -129,6 +129,7 @@ pub struct Vagrant {
|
||||
pub struct Windows {
|
||||
accept_all_updates: Option<bool>,
|
||||
self_rename: Option<bool>,
|
||||
use_gsudo_with_choco: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Default, Debug)]
|
||||
@@ -519,6 +520,16 @@ impl Config {
|
||||
.unwrap_or(false)
|
||||
}
|
||||
|
||||
/// Whether to use gsudo command with choco if available
|
||||
#[allow(dead_code)]
|
||||
pub fn use_gsudo_with_choco(&self) -> bool {
|
||||
self.config_file
|
||||
.windows
|
||||
.as_ref()
|
||||
.and_then(|w| w.use_gsudo_with_choco)
|
||||
.unwrap_or(false)
|
||||
}
|
||||
|
||||
/// Whether Brew cask should be greedy
|
||||
#[allow(dead_code)]
|
||||
pub fn brew_cask_greedy(&self) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user