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 23, 2024
1 parent 2ed418c commit 063627e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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), cobra.OnlyValidArgs),
Run: func(cmd *cobra.Command, args []string) {
switch args[0] {
case "bash":
Expand Down
2 changes: 1 addition & 1 deletion etcdutl/etcdutl/completion_commmand.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), cobra.OnlyValidArgs),
Run: func(cmd *cobra.Command, args []string) {
switch args[0] {
case "bash":
Expand Down

0 comments on commit 063627e

Please sign in to comment.