Skip to content

Commit

Permalink
Merge pull request #18612 from Kamandlou/km-dev
Browse files Browse the repository at this point in the history
update: `cobra.ExactValidArgs` method is deprecated
  • Loading branch information
ahrtr authored Sep 24, 2024
2 parents acb1b17 + 063627e commit 59cfd7a
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 59cfd7a

Please sign in to comment.