(cmds []*Node, iw *helpWriter)
| 258 | } |
| 259 | |
| 260 | func writeCompactCommandList(cmds []*Node, iw *helpWriter) { |
| 261 | rows := [][2]string{} |
| 262 | for _, cmd := range cmds { |
| 263 | if cmd.Hidden { |
| 264 | continue |
| 265 | } |
| 266 | rows = append(rows, [2]string{cmd.Path(), cmd.Help}) |
| 267 | } |
| 268 | writeTwoColumns(iw, rows) |
| 269 | } |
| 270 | |
| 271 | func writeCommandTree(w *helpWriter, node *Node) { |
| 272 | rows := make([][2]string, 0, len(node.Children)*2) |
no test coverage detected