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

Function taskRunToonRows

internal/cli/task.go:4544–4562  ·  view source on GitHub ↗
(items []TaskRunRecord)

Source from the content-addressed store, hash-verified

4542}
4543
4544func taskRunToonRows(items []TaskRunRecord) [][]string {
4545 rows := make([][]string, 0, len(items))
4546 for _, item := range items {
4547 rows = append(rows, []string{
4548 item.ID,
4549 string(item.Status),
4550 strconv.Itoa(item.Attempt),
4551 item.SessionID,
4552 formatTaskActorPtr(item.ClaimedBy),
4553 item.NetworkChannel,
4554 item.CoordinationChannelID,
4555 formatTime(item.QueuedAt),
4556 formatTimePtr(item.StartedAt),
4557 formatTimePtr(item.EndedAt),
4558 item.Error,
4559 })
4560 }
4561 return rows
4562}
4563
4564func taskEventRows(items []TaskEventRecord) [][]string {
4565 rows := make([][]string, 0, len(items))

Callers 1

renderTaskDetailToonFunction · 0.85

Calls 4

appendFunction · 0.85
formatTaskActorPtrFunction · 0.85
formatTimeFunction · 0.85
formatTimePtrFunction · 0.85

Tested by

no test coverage detected