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

Function printGetContextFiles

apps/cli/internal/cli/get.go:596–608  ·  view source on GitHub ↗

printGetContextFiles appends context file information to the text output.

(w io.Writer, files []taskcontext.FileEntry, r *lipgloss.Renderer)

Source from the content-addressed store, hash-verified

594
595// printGetContextFiles appends context file information to the text output.
596func 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}

Callers 1

outputGetTextFunction · 0.85

Calls 2

formatLabelFunction · 0.85
formatWarningFunction · 0.85

Tested by

no test coverage detected