formatAmbiguousMatches formats a list of tasks for an ambiguity error message.
(tasks []*model.Task)
| 234 | |
| 235 | // formatAmbiguousMatches formats a list of tasks for an ambiguity error message. |
| 236 | func formatAmbiguousMatches(tasks []*model.Task) string { |
| 237 | parts := make([]string, len(tasks)) |
| 238 | for i, t := range tasks { |
| 239 | parts[i] = fmt.Sprintf("%s [%s]", t.ID, t.FilePath) |
| 240 | } |
| 241 | return strings.Join(parts, ", ") |
| 242 | } |
| 243 | |
| 244 | // fuzzyMatch holds a task and its similarity score. |
| 245 | type fuzzyMatch struct { |