formatDuplicatePaths formats task file paths as a bulleted list.
(tasks []*model.Task)
| 57 | |
| 58 | // formatDuplicatePaths formats task file paths as a bulleted list. |
| 59 | func formatDuplicatePaths(tasks []*model.Task) string { |
| 60 | lines := make([]string, len(tasks)) |
| 61 | for i, t := range tasks { |
| 62 | lines[i] = fmt.Sprintf(" - %s", t.FilePath) |
| 63 | } |
| 64 | return strings.Join(lines, "\n") |
| 65 | } |
| 66 | |
| 67 | // formatDuplicatePathsWithTitles formats task file paths and titles as a bulleted list. |
| 68 | func formatDuplicatePathsWithTitles(tasks []*model.Task) string { |
no outgoing calls