MCPcopy Create free account
hub / github.com/codehamr/codehamr / PrintHelp

Function PrintHelp

internal/tui/slash.go:129–135  ·  view source on GitHub ↗

PrintHelp writes the canonical human-readable command list. Used by --help.

(out io.Writer)

Source from the content-addressed store, hash-verified

127
128// PrintHelp writes the canonical human-readable command list. Used by --help.
129func PrintHelp(out io.Writer) {
130 w := tabwriter.NewWriter(out, 0, 0, 2, ' ', 0)
131 for _, c := range commands {
132 fmt.Fprintf(w, " %s\t%s\n", c.name, c.description)
133 }
134 w.Flush()
135}
136
137// --- handlers ---------------------------------------------------------------
138

Callers 2

printHelpFunction · 0.92

Calls

no outgoing calls

Tested by 1