From 1075d4f415c109c909ca9e52d3c6335b5ebccb4b Mon Sep 17 00:00:00 2001 From: RozzaysRed Date: Sat, 3 Oct 2020 13:46:02 -0400 Subject: [PATCH] run gh commands from explorer.exe --- pkg/cmd/root/root.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/cmd/root/root.go b/pkg/cmd/root/root.go index 7a82f0cbf..472c4fcac 100644 --- a/pkg/cmd/root/root.go +++ b/pkg/cmd/root/root.go @@ -2,6 +2,7 @@ package root import ( "net/http" + "runtime" "github.com/MakeNowJust/heredoc" "github.com/cli/cli/api" @@ -25,6 +26,10 @@ import ( ) func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) *cobra.Command { + if runtime.GOOS == "windows" { + cobra.MousetrapHelpText = "" + } + cmd := &cobra.Command{ Use: "gh [flags]", Short: "GitHub CLI",