(cmd *cobra.Command)
| 41 | } |
| 42 | |
| 43 | func stringifyReference(cmd *cobra.Command) string { |
| 44 | buf := bytes.NewBufferString("# gh reference\n\n") |
| 45 | for _, c := range cmd.Commands() { |
| 46 | if c.Hidden { |
| 47 | continue |
| 48 | } |
| 49 | cmdRef(buf, c, 2) |
| 50 | } |
| 51 | return buf.String() |
| 52 | } |
| 53 | |
| 54 | func cmdRef(w io.Writer, cmd *cobra.Command, depth int) { |
| 55 | // Name + Description |
no test coverage detected