feat: recipe generate: load category and features

This commit is contained in:
3wc
2021-11-22 16:00:55 +02:00
parent 711c4e5ee8
commit 9d62fff074
2 changed files with 115 additions and 2 deletions

View File

@ -165,6 +165,8 @@ A new catalogue copy can be published to the recipes repository by passing the
logrus.Fatal(err)
}
features, category, err := catalogue.GetRecipeFeaturesAndCategory(recipeMeta.Name)
catl[recipeMeta.Name] = catalogue.RecipeMeta{
Name: recipeMeta.Name,
Repository: recipeMeta.CloneURL,
@ -173,8 +175,8 @@ A new catalogue copy can be published to the recipes repository by passing the
Description: recipeMeta.Description,
Website: recipeMeta.Website,
Versions: versions,
// Category: ..., // FIXME: parse & load
// Features: ..., // FIXME: parse & load
Category: category,
Features: features,
}
catlBar.Add(1)
}