printGetContextFiles appends context file information to the text output.
(w io.Writer, files []taskcontext.FileEntry, r *lipgloss.Renderer)
| 594 | |
| 595 | // printGetContextFiles appends context file information to the text output. |
| 596 | func printGetContextFiles(w io.Writer, files []taskcontext.FileEntry, r *lipgloss.Renderer) { |
| 597 | if len(files) == 0 { |
| 598 | return |
| 599 | } |
| 600 | fmt.Fprintf(w, "\n%s\n", formatLabel("Context Files:", r)) |
| 601 | for _, f := range files { |
| 602 | path := f.Path |
| 603 | if !f.Exists { |
| 604 | path += " " + formatWarning("(missing)", r) |
| 605 | } |
| 606 | fmt.Fprintf(w, " %s\n", path) |
| 607 | } |
| 608 | } |
no test coverage detected