diff options
Diffstat (limited to 'src/packages.rs')
-rw-r--r-- | src/packages.rs | 16 |
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 @@ | |||
1 | use serde::{Deserialize, Serialize}; | ||
2 | |||
3 | pub mod pacman; | ||
4 | |||
5 | #[derive(Debug, Serialize, Deserialize)] | ||
6 | pub struct Package { | ||
7 | pub id: String, | ||
8 | pub version: String, | ||
9 | pub explicit: bool | ||
10 | } | ||
11 | |||
12 | pub trait PackageManager { | ||
13 | fn get_installed(&self) -> Vec<Package>; | ||
14 | |||
15 | fn install(&self, pkgs: Vec<Package>); | ||
16 | } | ||