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

Function formatAmbiguousMatches

apps/cli/internal/cli/get.go:236–242  ·  view source on GitHub ↗

formatAmbiguousMatches formats a list of tasks for an ambiguity error message.

(tasks []*model.Task)

Source from the content-addressed store, hash-verified

234
235// formatAmbiguousMatches formats a list of tasks for an ambiguity error message.
236func 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.
245type fuzzyMatch struct {

Callers 1

findFilePathMatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected