(status verify.StepStatus, r *lipgloss.Renderer)
| 215 | } |
| 216 | |
| 217 | func formatVerifyStatus(status verify.StepStatus, r *lipgloss.Renderer) string { |
| 218 | switch status { |
| 219 | case verify.StatusPass: |
| 220 | return formatSuccess("PASS", r) |
| 221 | case verify.StatusFail: |
| 222 | return formatError("FAIL", r) |
| 223 | case verify.StatusPending: |
| 224 | return formatWarning("PEND", r) |
| 225 | case verify.StatusSkip: |
| 226 | return formatDim("SKIP", r) |
| 227 | default: |
| 228 | return string(status) |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | // resolveProjectRoot returns the absolute path of the directory containing .taskmd.yaml, or cwd as fallback. |
| 233 | // Since initConfig() already walks up the directory tree to find the config, we just use the config location. |
no test coverage detected