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

Function fileStatusTag

apps/cli/internal/cli/feed.go:199–216  ·  view source on GitHub ↗
(fc feed.FileChange)

Source from the content-addressed store, hash-verified

197}
198
199func fileStatusTag(fc feed.FileChange) string {
200 if fc.TaskStatus == "completed" {
201 return "[Completed]"
202 }
203 if fc.TaskStatus == "cancelled" {
204 return "[Cancelled]"
205 }
206 switch fc.Status {
207 case "created":
208 return "[Added]"
209 case "modified":
210 return "[Modified]"
211 case "renamed":
212 return "[Renamed]"
213 default:
214 return "[?]"
215 }
216}

Callers 1

writeFileChangeTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected