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

Function writeCommandList

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

Source from the content-addressed store, hash-verified

246}
247
248func writeCommandList(cmds []*Node, iw *helpWriter) {
249 for i, cmd := range cmds {
250 if cmd.Hidden {
251 continue
252 }
253 printCommandSummary(iw, cmd)
254 if i != len(cmds)-1 {
255 iw.Print("")
256 }
257 }
258}
259
260func writeCompactCommandList(cmds []*Node, iw *helpWriter) {
261 rows := [][2]string{}

Callers 1

printNodeDetailFunction · 0.85

Calls 2

printCommandSummaryFunction · 0.85
PrintMethod · 0.80

Tested by

no test coverage detected