forked from TrueCloudLab/frostfs-node
[#83] util/autocomplete: Fix deprecated warning
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
8226d49376
commit
05471d3827
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ func Command(name string) *cobra.Command {
|
|||
name, name, name, name, name, name, name, name, name, name),
|
||||
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":
|
||||
|
|
Loading…
Reference in a new issue