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

Function printWorklogInfo

apps/cli/internal/cli/get.go:433–442  ·  view source on GitHub ↗
(w io.Writer, wl *worklogInfo, r *lipgloss.Renderer)

Source from the content-addressed store, hash-verified

431}
432
433func 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
444func printOptionalField(w io.Writer, label, value string, r *lipgloss.Renderer) {
445 if value != "" {

Callers 1

outputGetTextFunction · 0.85

Calls 1

formatLabelFunction · 0.85

Tested by

no test coverage detected