feat: added command functionality to install
All checks were successful
/ check (push) Successful in 39s

This commit is contained in:
Didier Slof 2023-07-17 17:47:42 +02:00
parent 1a95046b87
commit d9d4728dd6
Signed by: didier
GPG key ID: 01E71F18AA4398E5
20 changed files with 464 additions and 76 deletions

View file

@ -1,8 +1,24 @@
#[derive(Debug)]
pub struct PKGFile {
pub manifest: String,
pub data: Vec<u8>,
}
impl PKGFile {
pub fn new(manifest: String, data: Vec<u8>) -> PKGFile {
PKGFile { manifest, data }
}
}
impl Default for PKGFile {
fn default() -> PKGFile {
PKGFile {
manifest: String::new(),
data: Vec::new(),
}
}
}
impl TryFrom<Vec<u8>> for PKGFile {
type Error = ();