Commit 4b72892
committed
cmd/completion: Replace deprecated github.com/spf13/cobra API
The cobra.ExactValidArgs() API [1] was deprecated in Cobra 1.6.0 [2] in
favour of combining different cobra.PositionalArgs.
Commit 00f47b2 already bumped the required
github.com/spf13/cobra version to 1.6.0, so adjust accordingly.
[1] https://pkg.go.dev/github.com/spf13/cobra#ExactValidArgs
[2] Cobra commit 70e53f62be77e03f
spf13/cobra@70e53f62be77e03f
spf13/cobra#1643
spf13/cobra#745
spf13/cobra#838
containers#17761 parent 00f47b2 commit 4b72892
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments