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

Function formatEffort

apps/cli/internal/cli/colors.go:152–155  ·  view source on GitHub ↗

formatEffort formats effort text with effort-based color.

(effort string, r *lipgloss.Renderer)

Source from the content-addressed store, hash-verified

150
151// formatEffort formats effort text with effort-based color.
152func formatEffort(effort string, r *lipgloss.Renderer) string {
153 style := getEffortColor(effort, r)
154 return style.Render(effort)
155}
156
157// formatType formats type text with type-based color.
158func formatType(taskType string, r *lipgloss.Renderer) string {

Callers 9

colorizeNextColumnFunction · 0.85
colorizeFieldValueFunction · 0.85
printStatusOptionalFieldFunction · 0.85
printOptionalFieldFunction · 0.85
TestEffortColorsFunction · 0.85
colorizeColumnFunction · 0.85

Calls 1

getEffortColorFunction · 0.85

Tested by 3

TestEffortColorsFunction · 0.68