(w io.Writer, wl *worklogInfo, r *lipgloss.Renderer)
| 431 | } |
| 432 | |
| 433 | func printWorklogInfo(w io.Writer, wl *worklogInfo, r *lipgloss.Renderer) { |
| 434 | if wl == nil { |
| 435 | return |
| 436 | } |
| 437 | text := fmt.Sprintf("%d entries", wl.EntryCount) |
| 438 | if wl.LastUpdated != "" { |
| 439 | text += fmt.Sprintf(", last updated %s", wl.LastUpdated) |
| 440 | } |
| 441 | fmt.Fprintf(w, "%s %s\n", formatLabel("Worklog:", r), text) |
| 442 | } |
| 443 | |
| 444 | func printOptionalField(w io.Writer, label, value string, r *lipgloss.Renderer) { |
| 445 | if value != "" { |
no test coverage detected