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

Function prStateColor

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

Source from the content-addressed store, hash-verified

464}
465
466func prStateColor(state string) *color.Color {
467 switch state {
468 case "OPEN":
469 return color.New(color.FgGreen, color.Bold)
470 case "MERGED":
471 return color.New(color.FgMagenta, color.Bold)
472 case "CLOSED":
473 return color.New(color.FgRed)
474 default:
475 return color.New(color.Faint)
476 }
477}
478
479func relativeTimeStr(t time.Time) string {
480 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