Skip to content

Commit

Permalink
Remove the feedback section from gh help
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Nov 9, 2022
1 parent b12ea84 commit b3aeaf6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions pkg/cmd/root/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,6 @@ func rootHelpFunc(f *cmdutil.Factory, command *cobra.Command, args []string) {
helpEntries = append(helpEntries, helpEntry{"LEARN MORE", `
Use 'gh <command> <subcommand> --help' for more information about a command.
Read the manual at https://cli.github.com/manual`})
if _, ok := command.Annotations["help:feedback"]; ok {
helpEntries = append(helpEntries, helpEntry{"FEEDBACK", command.Annotations["help:feedback"]})
}

out := f.IOStreams.Out
for _, e := range helpEntries {
Expand Down
3 changes: 0 additions & 3 deletions pkg/cmd/root/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) *cobra.Command {
$ gh pr checkout 321
`),
Annotations: map[string]string{
"help:feedback": heredoc.Doc(`
Open an issue using 'gh issue create -R github.com/cli/cli'
`),
"versionInfo": versionCmd.Format(version, buildDate),
},
}
Expand Down

0 comments on commit b3aeaf6

Please sign in to comment.