fix: support ValidArgs translation
All checks were successful
continuous-integration/drone/push Build is passing

See #632
This commit is contained in:
2025-08-30 12:02:13 +02:00
parent e25ce5d1a0
commit 83ca2a63d1
3 changed files with 59 additions and 38 deletions

View File

@ -57,12 +57,19 @@ func Run(version, commit string) {
Short: i18n.G("The Co-op Cloud command-line utility belt 🎩🐇"),
Version: fmt.Sprintf("%s-%s", version, commit[:7]),
ValidArgs: []string{
// translators: `abra app` command for autocompletion
i18n.G("app"),
// translators: `abra autocomplete` command for autocompletion
i18n.G("autocomplete"),
// translators: `abra catalogue` command for autocompletion
i18n.G("catalogue"),
// translators: `abra man` command for autocompletion
i18n.G("man"),
// translators: `abra recipe` command for autocompletion
i18n.G("recipe"),
// translators: `abra server` command for autocompletion
i18n.G("server"),
// translators: `abra upgrade` command for autocompletion
i18n.G("upgrade"),
},
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {