(w io.Writer, command *cobra.Command)
| 347 | } |
| 348 | |
| 349 | func helpTopicHelpFunc(w io.Writer, command *cobra.Command) { |
| 350 | fmt.Fprint(w, command.Long) |
| 351 | if command.Example != "" { |
| 352 | fmt.Fprintf(w, "\n\nEXAMPLES\n") |
| 353 | fmt.Fprint(w, text.Indent(command.Example, " ")) |
| 354 | } |
| 355 | } |
| 356 | |
| 357 | func helpTopicUsageFunc(w io.Writer, command *cobra.Command) error { |
| 358 | fmt.Fprintf(w, "Usage: gh help %s", command.Use) |
no test coverage detected