fix: handle translations
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -47,7 +47,7 @@ func RecipeNameComplete() ([]string, cobra.ShellCompDirective) {
|
|||||||
|
|
||||||
localRecipes, err := recipe.GetRecipesLocal()
|
localRecipes, err := recipe.GetRecipesLocal()
|
||||||
if err != nil && !strings.Contains(err.Error(), "empty") {
|
if err != nil && !strings.Contains(err.Error(), "empty") {
|
||||||
err := fmt.Sprintf("autocomplete failed: %s", err)
|
err := i18n.G("autocomplete failed: %s", err)
|
||||||
return []string{err}, cobra.ShellCompDirectiveError
|
return []string{err}, cobra.ShellCompDirectiveError
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user