MCPcopy Create free account
hub / github.com/compozy/agh / taskChildRows

Function taskChildRows

internal/cli/task.go:4464–4479  ·  view source on GitHub ↗
(items []TaskSummaryRecord)

Source from the content-addressed store, hash-verified

4462}
4463
4464func taskChildRows(items []TaskSummaryRecord) [][]string {
4465 rows := make([][]string, 0, len(items))
4466 for idx := range items {
4467 item := &items[idx]
4468 rows = append(rows, []string{
4469 stringOrDash(item.ID),
4470 stringOrDash(item.Identifier),
4471 stringOrDash(string(item.Scope)),
4472 stringOrDash(item.WorkspaceID),
4473 stringOrDash(string(item.Status)),
4474 stringOrDash(formatTaskOwnership(item.Owner)),
4475 stringOrDash(item.Title),
4476 })
4477 }
4478 return rows
4479}
4480
4481func taskChildToonRows(items []TaskSummaryRecord) [][]string {
4482 rows := make([][]string, 0, len(items))

Callers 1

renderTaskDetailHumanFunction · 0.85

Calls 3

appendFunction · 0.85
stringOrDashFunction · 0.85
formatTaskOwnershipFunction · 0.85

Tested by

no test coverage detected