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) {
switch args[0] {
case "bash":
cmd.Root().GenBashCompletionV2(os.Stdout, !completionNoDesc)
break
case "zsh":
if completionNoDesc {
cmd.Root().GenZshCompletionNoDesc(os.Stdout)
} else {
cmd.Root().GenZshCompletion(os.Stdout)
}
break
case "fish":
cmd.Root().GenFishCompletion(os.Stdout, !completionNoDesc)
break
case "powershell":
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