committed by
Roey Darwish Dror
parent
623929cb64
commit
11694247c1
@@ -61,6 +61,7 @@ pub struct ConfigFile {
|
||||
git_arguments: Option<String>,
|
||||
set_title: Option<bool>,
|
||||
assume_yes: Option<bool>,
|
||||
yay_arguments: Option<String>,
|
||||
}
|
||||
|
||||
impl ConfigFile {
|
||||
@@ -286,4 +287,13 @@ impl Config {
|
||||
pub fn yes(&self) -> bool {
|
||||
self.config_file.assume_yes.unwrap_or(self.opt.yes)
|
||||
}
|
||||
|
||||
/// Extra yay arguments
|
||||
#[cfg(target_os = "linux")]
|
||||
pub fn yay_arguments(&self) -> &str {
|
||||
match &self.config_file.yay_arguments {
|
||||
Some(args) => args.as_str(),
|
||||
None => "--devel",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user