MCPcopy Create free account
hub / github.com/alecthomas/kong / writeCompactCommandList

Function writeCompactCommandList

help.go:260–269  ·  view source on GitHub ↗
(cmds []*Node, iw *helpWriter)

Source from the content-addressed store, hash-verified

258}
259
260func 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
271func writeCommandTree(w *helpWriter, node *Node) {
272 rows := make([][2]string, 0, len(node.Children)*2)

Callers 1

printNodeDetailFunction · 0.85

Calls 2

writeTwoColumnsFunction · 0.85
PathMethod · 0.80

Tested by

no test coverage detected