fix: dont update catalogue on autocomplete

This commit is contained in:
decentral1se 2025-01-03 08:10:57 +01:00
parent 0a63f9ce27
commit c5ddeb2d8a
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410

View File

@ -54,7 +54,7 @@ func RecipeNameComplete() ([]string, cobra.ShellCompDirective) {
// RecipeVersionComplete completes versions for the recipe.
func RecipeVersionComplete(recipeName string) ([]string, cobra.ShellCompDirective) {
catl, err := recipe.ReadRecipeCatalogue(false)
catl, err := recipe.ReadRecipeCatalogue(true)
if err != nil {
err := fmt.Sprintf("autocomplete failed: %s", err)
return []string{err}, cobra.ShellCompDirectiveError