forked from toolshed/abra
WIP: gather more meta for catalogue generation
This commit is contained in:
parent
700f022790
commit
96aa74a977
@ -89,10 +89,21 @@ var catalogueGenerateCommand = &cli.Command{
|
|||||||
}
|
}
|
||||||
|
|
||||||
catl := make(catalogue.RecipeCatalogue)
|
catl := make(catalogue.RecipeCatalogue)
|
||||||
for recipeName := range repos {
|
for _, recipeMeta := range repos {
|
||||||
// TODO: gather more metadata
|
if recipeName != "" && recipeName != recipeMeta.Name {
|
||||||
catl[recipeName] = catalogue.RecipeMeta{
|
continue
|
||||||
|
}
|
||||||
|
if _, exists := CatalogueSkipList[recipeMeta.Name]; exists {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
catl[recipeMeta.Name] = catalogue.RecipeMeta{
|
||||||
Name: recipeName,
|
Name: recipeName,
|
||||||
|
Repository: recipeMeta.CloneURL,
|
||||||
|
DefaultBranch: recipeMeta.DefaultBranch,
|
||||||
|
Description: recipeMeta.Description,
|
||||||
|
Website: recipeMeta.Website,
|
||||||
|
Versions: nil, // FIXME: once the new versions work goes down
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user