forked from toolshed/abra
fix: dont update catalogue on autocomplete
This commit is contained in:
parent
0a63f9ce27
commit
c5ddeb2d8a
@ -54,7 +54,7 @@ func RecipeNameComplete() ([]string, cobra.ShellCompDirective) {
|
|||||||
|
|
||||||
// RecipeVersionComplete completes versions for the recipe.
|
// RecipeVersionComplete completes versions for the recipe.
|
||||||
func RecipeVersionComplete(recipeName string) ([]string, cobra.ShellCompDirective) {
|
func RecipeVersionComplete(recipeName string) ([]string, cobra.ShellCompDirective) {
|
||||||
catl, err := recipe.ReadRecipeCatalogue(false)
|
catl, err := recipe.ReadRecipeCatalogue(true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err := fmt.Sprintf("autocomplete failed: %s", err)
|
err := fmt.Sprintf("autocomplete failed: %s", err)
|
||||||
return []string{err}, cobra.ShellCompDirectiveError
|
return []string{err}, cobra.ShellCompDirectiveError
|
||||||
|
Loading…
x
Reference in New Issue
Block a user