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

Function formatWaitingOn

apps/cli/internal/cli/report_md.go:207–217  ·  view source on GitHub ↗
(deps []string, taskMap map[string]reportTask)

Source from the content-addressed store, hash-verified

205}
206
207func formatWaitingOn(deps []string, taskMap map[string]reportTask) string {
208 parts := make([]string, len(deps))
209 for i, depID := range deps {
210 if t, ok := taskMap[depID]; ok {
211 parts[i] = fmt.Sprintf("%s (%s)", depID, t.Status)
212 } else {
213 parts[i] = depID
214 }
215 }
216 return strings.Join(parts, ", ")
217}
218
219func formatWaitingOnColored(deps []string, taskMap map[string]reportTask, r *lipgloss.Renderer) string {
220 parts := make([]string, len(deps))

Callers 1

toHTMLDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected