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

Function appendSourceURL

apps/cli/internal/sync/import_engine.go:202–208  ·  view source on GitHub ↗

appendSourceURL appends a source reference to the task description.

(description, url string)

Source from the content-addressed store, hash-verified

200
201// appendSourceURL appends a source reference to the task description.
202func appendSourceURL(description, url string) string {
203 if url == "" {
204 return description
205 }
206 suffix := "\n\n---\nSource: " + url
207 return strings.TrimRight(description, "\n") + suffix
208}

Callers 2

TestAppendSourceURLFunction · 0.85
importTaskFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestAppendSourceURLFunction · 0.68