feat(brew): Add greedy-auto-updates option to Brew (#914)
This commit is contained in:
@@ -271,6 +271,7 @@ pub struct Flatpak {
|
||||
pub struct Brew {
|
||||
greedy_cask: Option<bool>,
|
||||
greedy_latest: Option<bool>,
|
||||
greedy_auto_updates: Option<bool>,
|
||||
autoremove: Option<bool>,
|
||||
fetch_head: Option<bool>,
|
||||
}
|
||||
@@ -1179,6 +1180,15 @@ impl Config {
|
||||
.unwrap_or(false)
|
||||
}
|
||||
|
||||
/// Whether Brew cask should be auto_updates
|
||||
pub fn brew_greedy_auto_updates(&self) -> bool {
|
||||
self.config_file
|
||||
.brew
|
||||
.as_ref()
|
||||
.and_then(|c| c.greedy_auto_updates)
|
||||
.unwrap_or(false)
|
||||
}
|
||||
|
||||
/// Whether Brew should autoremove
|
||||
pub fn brew_autoremove(&self) -> bool {
|
||||
self.config_file
|
||||
|
||||
Reference in New Issue
Block a user