feat: info is now an info command and fixed logging

This commit is contained in:
Didier Slof 2023-08-08 02:55:09 +02:00
parent 672314ab6d
commit f13644f11c
Signed by: didier
GPG key ID: 01E71F18AA4398E5
3 changed files with 45 additions and 10 deletions

View file

@ -12,6 +12,16 @@ pub enum PackageType {
Meta,
}
impl ToString for PackageType {
fn to_string(&self) -> String {
match &self {
PackageType::Application => "application",
PackageType::Library => "library",
PackageType::Meta => "meta"
}.to_string()
}
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(default)]
pub struct Package {