fix(cmd): replace deprecated cobra function

This commit is contained in:
Markus Pesch 2025-03-04 11:08:30 +01:00
parent c23633a385
commit 967c20c638
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -18,7 +18,7 @@ func Execute(version string) error {
Long: "To load completions",
DisableFlagsInUseLine: true,
ValidArgs: []string{"bash", "zsh", "fish", "powershell"},
Args: cobra.ExactValidArgs(1),
Args: cobra.MatchAll(cobra.ExactArgs(1)),
Run: func(cmd *cobra.Command, args []string) {
switch args[0] {
case "bash":