removed runtime compare for windows
The MousttrapHelpText will only be validated in cobra when running on windows.
This commit is contained in:
parent
1075d4f415
commit
15e1ad02d3
1 changed files with 1 additions and 4 deletions
|
|
@ -2,7 +2,6 @@ package root
|
|||
|
||||
import (
|
||||
"net/http"
|
||||
"runtime"
|
||||
|
||||
"github.com/MakeNowJust/heredoc"
|
||||
"github.com/cli/cli/api"
|
||||
|
|
@ -26,9 +25,7 @@ import (
|
|||
)
|
||||
|
||||
func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) *cobra.Command {
|
||||
if runtime.GOOS == "windows" {
|
||||
cobra.MousetrapHelpText = ""
|
||||
}
|
||||
cobra.MousetrapHelpText = ""
|
||||
|
||||
cmd := &cobra.Command{
|
||||
Use: "gh <command> <subcommand> [flags]",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue