blob: 9f765d6a085597aadd9d37e0d1b468f7935fe8a2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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<Package>;
fn install(&self, pkgs: Vec<Package>);
}
|