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

Function formatDuplicatePathsWithTitles

apps/cli/internal/cli/duplicate.go:68–74  ·  view source on GitHub ↗

formatDuplicatePathsWithTitles formats task file paths and titles as a bulleted list.

(tasks []*model.Task)

Source from the content-addressed store, hash-verified

66
67// formatDuplicatePathsWithTitles formats task file paths and titles as a bulleted list.
68func formatDuplicatePathsWithTitles(tasks []*model.Task) string {
69 lines := make([]string, len(tasks))
70 for i, t := range tasks {
71 lines[i] = fmt.Sprintf(" - %s (%s)", t.FilePath, t.Title)
72 }
73 return strings.Join(lines, "\n")
74}

Callers 2

resolveTaskFunction · 0.85

Calls

no outgoing calls

Tested by 1