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

Function writeMarkdownCriticalPath

apps/cli/internal/cli/report_md.go:147–163  ·  view source on GitHub ↗
(cpTasks []reportTask, w io.Writer, r *lipgloss.Renderer)

Source from the content-addressed store, hash-verified

145}
146
147func writeMarkdownCriticalPath(cpTasks []reportTask, w io.Writer, r *lipgloss.Renderer) {
148 fmt.Fprintln(w, formatLabel("## Critical Path", r))
149 fmt.Fprintln(w)
150
151 if len(cpTasks) == 0 {
152 fmt.Fprintln(w, "No dependency chains found.")
153 fmt.Fprintln(w)
154 return
155 }
156
157 for i, t := range cpTasks {
158 formattedID := formatTaskID(t.ID, r)
159 formattedStatus := formatStatus(t.Status, r)
160 fmt.Fprintf(w, "%d. [%s] %s (%s)\n", i+1, formattedID, t.Title, formattedStatus)
161 }
162 fmt.Fprintln(w)
163}
164
165func writeMarkdownBlockedTasks(data *reportData, w io.Writer, r *lipgloss.Renderer) {
166 fmt.Fprintln(w, formatLabel("## Blocked Tasks", r))

Callers 1

outputReportMarkdownFunction · 0.85

Calls 3

formatLabelFunction · 0.85
formatTaskIDFunction · 0.85
formatStatusFunction · 0.85

Tested by

no test coverage detected