feat: info is now an info command and fixed logging
This commit is contained in:
parent
8d6ed71dfc
commit
19b834e65d
3 changed files with 45 additions and 10 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue