summaryrefslogtreecommitdiff
path: root/src/packages.rs
diff options
context:
space:
mode:
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}