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

Function formatWaitingOnColored

apps/cli/internal/cli/report_md.go:219–231  ·  view source on GitHub ↗
(deps []string, taskMap map[string]reportTask, r *lipgloss.Renderer)

Source from the content-addressed store, hash-verified

217}
218
219func formatWaitingOnColored(deps []string, taskMap map[string]reportTask, r *lipgloss.Renderer) string {
220 parts := make([]string, len(deps))
221 for i, depID := range deps {
222 if t, ok := taskMap[depID]; ok {
223 formattedID := formatTaskID(depID, r)
224 formattedStatus := formatStatus(t.Status, r)
225 parts[i] = fmt.Sprintf("%s (%s)", formattedID, formattedStatus)
226 } else {
227 parts[i] = formatTaskID(depID, r)
228 }
229 }
230 return strings.Join(parts, ", ")
231}
232
233func capitalizeFirst(s string) string {
234 if s == "" {

Callers 1

Calls 2

formatTaskIDFunction · 0.85
formatStatusFunction · 0.85

Tested by

no test coverage detected