Skip to content

Commit

Permalink
update: cobra.ExactValidArgs method is deprecated
Browse files Browse the repository at this point in the history
Signed-off-by: Kamandlou <[email protected]>
  • Loading branch information
Kamandlou committed Sep 22, 2024
1 parent 2ed418c commit d965f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etcdctl/ctlv3/command/completion_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ PowerShell:
`,
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":
Expand Down

0 comments on commit d965f25

Please sign in to comment.