Commit e642f729 authored by Umberto Baldi's avatar Umberto Baldi

remove useless break statements

parent 8ff498b6
...@@ -54,19 +54,15 @@ func runCompletionCommand(cmd *cobra.Command, args []string) { ...@@ -54,19 +54,15 @@ func runCompletionCommand(cmd *cobra.Command, args []string) {
switch args[0] { switch args[0] {
case "bash": case "bash":
cmd.Root().GenBashCompletionV2(os.Stdout, !completionNoDesc) cmd.Root().GenBashCompletionV2(os.Stdout, !completionNoDesc)
break
case "zsh": case "zsh":
if completionNoDesc { if completionNoDesc {
cmd.Root().GenZshCompletionNoDesc(os.Stdout) cmd.Root().GenZshCompletionNoDesc(os.Stdout)
} else { } else {
cmd.Root().GenZshCompletion(os.Stdout) cmd.Root().GenZshCompletion(os.Stdout)
} }
break
case "fish": case "fish":
cmd.Root().GenFishCompletion(os.Stdout, !completionNoDesc) cmd.Root().GenFishCompletion(os.Stdout, !completionNoDesc)
break
case "powershell": case "powershell":
cmd.Root().GenPowerShellCompletion(os.Stdout) cmd.Root().GenPowerShellCompletion(os.Stdout)
break
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment