use serde::{Deserialize, Serialize};
mod commands;
pub mod config;
pub mod util;
pub use crate::commands::{install_package, list_all_packages, run_package};
#[derive(Deserialize, Default, Serialize, Clone, Debug, PartialEq, Eq)]
pub struct Package {
pub pkgname: String,
pub fullname: String,
pub description: Option<String>,
pub image_url: Option<String>,
pub executable_path: Option<String>,
pub crc: u32,
pub has_installer: bool,
pub add_to_path: bool,
}
const DATA_ENDPOINT: &str = "/pkgdata";
const FILE_ENDPOINT: &str = "/download";
const LIST_ENDPOINT: &str = "/list";