We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15e1ad0 commit f519989Copy full SHA for f519989
cmd/gh/main.go
@@ -61,6 +61,10 @@ func main() {
61
}
62
63
64
+ // Enable running gh from explorer.exe. Without this, the user is told to stop and run from a
65
+ // terminal. With this, a user can clone a repo (or take other actions) directly from explorer.
66
+ cobra.MousetrapHelpText = ""
67
+
68
rootCmd := root.NewCmdRoot(cmdFactory, command.Version, command.BuildDate)
69
70
cfg, err := cmdFactory.Config()
pkg/cmd/root/root.go
@@ -25,8 +25,6 @@ import (
25
)
26
27
func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) *cobra.Command {
28
- cobra.MousetrapHelpText = ""
29
-
30
cmd := &cobra.Command{
31
Use: "gh <command> <subcommand> [flags]",
32
Short: "GitHub CLI",
0 commit comments