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

Function prStateColor

cmd/pad/cmd_github.go:406–417  ·  view source on GitHub ↗
(state string)

Source from the content-addressed store, hash-verified

404}
405
406func prStateColor(state string) *color.Color {
407 switch state {
408 case "OPEN":
409 return color.New(color.FgGreen, color.Bold)
410 case "MERGED":
411 return color.New(color.FgMagenta, color.Bold)
412 case "CLOSED":
413 return color.New(color.FgRed)
414 default:
415 return color.New(color.Faint)
416 }
417}
418
419func relativeTimeStr(t time.Time) string {
420 d := time.Since(t)

Callers 4

githubLinkCmdFunction · 0.85
githubStatusCmdFunction · 0.85
showItemPRStatusFunction · 0.85
showCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected