add option to disable backends

This commit is contained in:
steven-omaha
2023-02-28 12:58:24 +01:00
parent a9e4162dbf
commit b524840bc9
2 changed files with 19 additions and 4 deletions
+3
View File
@@ -14,6 +14,8 @@ pub struct Config {
pub aur_rm_args: Option<Vec<String>>,
/// Warn the user when a group is not a symlink.
pub warn_not_symlinks: bool,
/// Backends the user does not want to use even though the binary exists.
pub disabled_backends: Vec<String>,
}
impl Config {
@@ -65,6 +67,7 @@ impl Default for Config {
aur_helper: "paru".into(),
aur_rm_args: None,
warn_not_symlinks: true,
disabled_backends: vec![],
}
}
}