(w *helpWriter, node *Node)
| 269 | } |
| 270 | |
| 271 | func writeCommandTree(w *helpWriter, node *Node) { |
| 272 | rows := make([][2]string, 0, len(node.Children)*2) |
| 273 | for i, cmd := range node.Children { |
| 274 | if cmd.Hidden { |
| 275 | continue |
| 276 | } |
| 277 | rows = append(rows, w.CommandTree(cmd, "")...) |
| 278 | if i != len(node.Children)-1 { |
| 279 | rows = append(rows, [2]string{"", ""}) |
| 280 | } |
| 281 | } |
| 282 | writeTwoColumns(w, rows) |
| 283 | } |
| 284 | |
| 285 | type helpFlagGroup struct { |
| 286 | Metadata *Group |
no test coverage detected