MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / ItemRef

Function ItemRef

internal/cli/format.go:95–100  ·  view source on GitHub ↗

ItemRef returns the reference string (e.g. "TASK-5") for an item, or empty string.

(item models.Item)

Source from the content-addressed store, hash-verified

93
94// ItemRef returns the reference string (e.g. "TASK-5") for an item, or empty string.
95func ItemRef(item models.Item) string {
96 if item.CollectionPrefix != "" && item.ItemNumber != nil {
97 return fmt.Sprintf("%s-%d", item.CollectionPrefix, *item.ItemNumber)
98 }
99 return ""
100}
101
102// StatusIcon returns a colorized status indicator.
103func StatusIcon(status string) string {

Callers 15

relatedCmdFunction · 0.92
implementedByCmdFunction · 0.92
noteCmdFunction · 0.92
decideCmdFunction · 0.92
reconcileItemFunction · 0.92
standupCmdFunction · 0.92
changelogCmdFunction · 0.92
itemDisplayLabelFunction · 0.92
githubLinkCmdFunction · 0.92
githubStatusCmdFunction · 0.92
githubUnlinkCmdFunction · 0.92
showItemPRStatusFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected