fix: autocomplete recipes

This commit is contained in:
decentral1se 2021-12-21 02:04:31 +01:00
parent 6f0d8b190d
commit fbc3b48d39
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ import (
abraFormatter "coopcloud.tech/abra/cli/formatter"
"coopcloud.tech/abra/cli/internal"
"coopcloud.tech/abra/pkg/autocomplete"
"coopcloud.tech/abra/pkg/config"
gitPkg "coopcloud.tech/abra/pkg/git"
"coopcloud.tech/abra/pkg/recipe"
@ -62,6 +63,7 @@ You may invoke this command in "wizard" mode and be prompted for input:
internal.CommitMessageFlag,
internal.TagMessageFlag,
},
BashComplete: autocomplete.RecipeNameComplete,
Action: func(c *cli.Context) error {
recipe := internal.ValidateRecipeWithPrompt(c)
directory := path.Join(config.APPS_DIR, recipe.Name)