add config (WIP)

This commit is contained in:
timeshifter
2023-01-14 16:56:07 +01:00
parent ce960a4e29
commit 1a9226384a
9 changed files with 122 additions and 7 deletions
+2
View File
@@ -8,6 +8,7 @@ use crate::backend::backend_trait::*;
use crate::{impl_backend_constants, Group, Package};
pub(crate) struct Pacman {
pub(crate) binary: String,
pub(crate) packages: HashSet<Package>,
}
@@ -69,6 +70,7 @@ fn get_db_handle() -> Result<Alpm> {
impl Pacman {
pub(crate) fn new() -> Self {
Self {
binary: BINARY.to_string(),
packages: HashSet::new(),
}
}