Bash-it (fix #621) (#625)

This commit is contained in:
Roey Darwish Dror
2021-02-10 08:58:03 +02:00
committed by GitHub
parent 098b60ba38
commit 729b5b6cb4
3 changed files with 19 additions and 0 deletions

View File

@@ -189,6 +189,7 @@ pub struct ConfigFile {
cleanup: Option<bool>,
notify_each_step: Option<bool>,
accept_all_windows_updates: Option<bool>,
bashit_branch: Option<String>,
only: Option<Vec<Step>>,
composer: Option<Composer>,
brew: Option<Brew>,
@@ -528,6 +529,12 @@ impl Config {
self.config_file.assume_yes.unwrap_or(self.opt.yes)
}
/// Bash-it branch
#[allow(dead_code)]
pub fn bashit_branch(&self) -> &str {
self.config_file.bashit_branch.as_deref().unwrap_or("stable")
}
/// Whether to accept all Windows updates
#[allow(dead_code)]
pub fn accept_all_windows_updates(&self) -> bool {