Remove obsolete hack to generate fish completions

This commit is contained in:
Mislav Marohnić 2020-05-13 12:51:55 +02:00
parent e39894d4a0
commit ab4c6e2ad0
2 changed files with 1 additions and 173 deletions

View file

@ -5,7 +5,6 @@ import (
"fmt"
"os"
"github.com/cli/cli/internal/cobrafish"
"github.com/cli/cli/utils"
"github.com/spf13/cobra"
)
@ -58,7 +57,7 @@ Homebrew, see <https://docs.brew.sh/Shell-Completion>
case "powershell":
return RootCmd.GenPowerShellCompletion(cmd.OutOrStdout())
case "fish":
return cobrafish.GenCompletion(RootCmd, cmd.OutOrStdout())
return RootCmd.GenFishCompletion(cmd.OutOrStdout(), true)
default:
return fmt.Errorf("unsupported shell type %q", shellType)
}