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

Function formatDepList

apps/cli/internal/cli/get.go:517–527  ·  view source on GitHub ↗
(entries []depEntry, r *lipgloss.Renderer)

Source from the content-addressed store, hash-verified

515}
516
517func formatDepList(entries []depEntry, r *lipgloss.Renderer) string {
518 parts := make([]string, len(entries))
519 for i, e := range entries {
520 if e.Title != "" {
521 parts[i] = fmt.Sprintf("%s (%s)", formatTaskID(e.ID, r), e.Title)
522 } else {
523 parts[i] = formatTaskID(e.ID, r)
524 }
525 }
526 return strings.Join(parts, ", ")
527}
528
529// getOutput is the struct for JSON/YAML output (includes body unlike model.Task).
530type getOutput struct {

Callers 1

printDependenciesFunction · 0.85

Calls 1

formatTaskIDFunction · 0.85

Tested by

no test coverage detected