summaryrefslogtreecommitdiff
path: root/src/packages.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2024-09-06 10:56:30 +0200
committerfxqnlr <[email protected]>2024-09-06 10:56:30 +0200
commit3e1cb020d5449849b37874f91cadfa4a9c878747 (patch)
treec5503a137c77ac33c1e7ddfd4087cc994b51a43b /src/packages.rs
downloadarbs-3e1cb020d5449849b37874f91cadfa4a9c878747.tar
arbs-3e1cb020d5449849b37874f91cadfa4a9c878747.tar.gz
arbs-3e1cb020d5449849b37874f91cadfa4a9c878747.zip
initial commit, can save index, no modification check
Diffstat (limited to 'src/packages.rs')
-rw-r--r--src/packages.rs16
1 files changed, 16 insertions, 0 deletions
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 @@
1use serde::{Deserialize, Serialize};
2
3pub mod pacman;
4
5#[derive(Debug, Serialize, Deserialize)]
6pub struct Package {
7 pub id: String,
8 pub version: String,
9 pub explicit: bool
10}
11
12pub trait PackageManager {
13 fn get_installed(&self) -> Vec<Package>;
14
15 fn install(&self, pkgs: Vec<Package>);
16}