(cpTasks []reportTask, w io.Writer, r *lipgloss.Renderer)
| 145 | } |
| 146 | |
| 147 | func 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 | |
| 165 | func writeMarkdownBlockedTasks(data *reportData, w io.Writer, r *lipgloss.Renderer) { |
| 166 | fmt.Fprintln(w, formatLabel("## Blocked Tasks", r)) |
no test coverage detected