0
0
forked from toolshed/abra

Merge remote-tracking branch 'upstream/main' into upgrade-cli

This commit is contained in:
2024-03-11 15:40:57 +01:00
37 changed files with 727 additions and 641 deletions

View File

@ -51,6 +51,20 @@ func RecipeNameComplete(c *cli.Context) {
}
}
// RecipeVersionComplete completes versions for the recipe.
func RecipeVersionComplete(recipeName string) {
catl, err := recipe.ReadRecipeCatalogue(false)
if err != nil {
logrus.Warn(err)
}
for _, v := range catl[recipeName].Versions {
for v2 := range v {
fmt.Println(v2)
}
}
}
// ServerNameComplete completes server names.
func ServerNameComplete(c *cli.Context) {
files, err := config.LoadAppFiles("")