diff options
author | fxqnlr <[email protected]> | 2024-09-06 10:56:30 +0200 |
---|---|---|
committer | fxqnlr <[email protected]> | 2024-09-06 10:56:30 +0200 |
commit | 3e1cb020d5449849b37874f91cadfa4a9c878747 (patch) | |
tree | c5503a137c77ac33c1e7ddfd4087cc994b51a43b /src/packages.rs | |
download | arbs-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.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 | } | ||