We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f895671 commit 9d8f9b6Copy full SHA for 9d8f9b6
pkg/cmd/root/help_reference.go
@@ -10,14 +10,15 @@ import (
10
)
11
12
func ReferenceHelpTopic(command *cobra.Command) *cobra.Command {
13
- command.Printf("%s reference\n\n", utils.Bold("gh"))
+ reftext := fmt.Sprintf("%s reference\n\n", utils.Bold("gh"))
14
15
for _, c := range command.Commands() {
16
- command.Print(cmdRef(c, 0))
+ reftext += cmdRef(c, 0)
17
}
18
19
ref := &cobra.Command{
20
Use: "reference",
21
+ Long: reftext,
22
Hidden: true,
23
Args: cobra.NoArgs,
24
Run: helpTopicHelpFunc,
0 commit comments