feat: info is now an info command and fixed logging

This commit is contained in:
Strix 2023-10-14 22:39:50 +02:00
parent 8d6ed71dfc
commit 19b834e65d
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
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 {