From 3e1cb020d5449849b37874f91cadfa4a9c878747 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Fri, 6 Sep 2024 10:56:30 +0200 Subject: initial commit, can save index, no modification check --- src/packages.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/packages.rs (limited to 'src/packages.rs') diff --git a/src/packages.rs b/src/packages.rs new file mode 100644 index 0000000..9f765d6 --- /dev/null +++ b/src/packages.rs @@ -0,0 +1,16 @@ +use serde::{Deserialize, Serialize}; + +pub mod pacman; + +#[derive(Debug, Serialize, Deserialize)] +pub struct Package { + pub id: String, + pub version: String, + pub explicit: bool +} + +pub trait PackageManager { + fn get_installed(&self) -> Vec; + + fn install(&self, pkgs: Vec); +} -- cgit v1.2.3