Add Trizen support (fix #271) (#409)

This commit is contained in:
Roey Darwish Dror
2020-05-15 21:10:01 +03:00
committed by GitHub
parent f58b2a0c20
commit 3e08fda765
3 changed files with 41 additions and 9 deletions

View File

@@ -58,6 +58,7 @@ pub struct Brew {
#[derive(Deserialize, Default, Debug)]
pub struct Linux {
yay_arguments: Option<String>,
trizen_arguments: Option<String>,
dnf_arguments: Option<String>,
}
@@ -407,6 +408,17 @@ impl Config {
self.config_file.notify_each_step.unwrap_or(false)
}
/// Extra trizen arguments
#[allow(dead_code)]
pub fn trizen_arguments(&self) -> &str {
&self
.config_file
.linux
.as_ref()
.and_then(|s| s.trizen_arguments.as_deref())
.unwrap_or("")
}
/// Extra yay arguments
#[allow(dead_code)]
pub fn yay_arguments(&self) -> &str {