MCPcopy Create free account
hub / github.com/driangle/taskmd / printChildren

Function printChildren

apps/cli/internal/cli/get.go:503–515  ·  view source on GitHub ↗
(w io.Writer, children []depEntry, r *lipgloss.Renderer)

Source from the content-addressed store, hash-verified

501}
502
503func printChildren(w io.Writer, children []depEntry, r *lipgloss.Renderer) {
504 if len(children) == 0 {
505 return
506 }
507 fmt.Fprintf(w, "\n%s\n", formatLabel("Children:", r))
508 for _, c := range children {
509 entry := formatDepEntry(c, r)
510 if c.Status != "" {
511 entry += " " + formatStatus(c.Status, r)
512 }
513 fmt.Fprintf(w, " %s\n", entry)
514 }
515}
516
517func formatDepList(entries []depEntry, r *lipgloss.Renderer) string {
518 parts := make([]string, len(entries))

Callers 1

outputGetTextFunction · 0.85

Calls 3

formatLabelFunction · 0.85
formatDepEntryFunction · 0.85
formatStatusFunction · 0.85

Tested by

no test coverage detected