| 4397 | } |
| 4398 | |
| 4399 | func taskRunListBundle(items []TaskRunRecord) outputBundle { |
| 4400 | return listBundle( |
| 4401 | items, |
| 4402 | items, |
| 4403 | "Task Runs", |
| 4404 | []string{ |
| 4405 | "ID", |
| 4406 | taskStatusValue, |
| 4407 | taskAttemptValue, |
| 4408 | taskSessionValue, |
| 4409 | taskClaimedByValue, |
| 4410 | taskChannelValue, |
| 4411 | taskCoordinationChannelValue, |
| 4412 | taskQueuedValue, |
| 4413 | taskStartedValue, |
| 4414 | taskEndedValue, |
| 4415 | taskErrorValue, |
| 4416 | }, |
| 4417 | "task_runs", |
| 4418 | []string{ |
| 4419 | "id", |
| 4420 | taskStatusKey, |
| 4421 | taskAttemptKey, |
| 4422 | taskSessionIDKey, |
| 4423 | taskClaimedByKey, |
| 4424 | taskNetworkChannelKey, |
| 4425 | taskCoordinationChannelIDKey, |
| 4426 | taskQueuedAtKey, |
| 4427 | taskStartedAtKey, |
| 4428 | taskEndedAtKey, |
| 4429 | taskErrorKey, |
| 4430 | }, |
| 4431 | func(item TaskRunRecord) []string { |
| 4432 | return []string{ |
| 4433 | stringOrDash(item.ID), |
| 4434 | stringOrDash(string(item.Status)), |
| 4435 | intOrDash(item.Attempt), |
| 4436 | stringOrDash(item.SessionID), |
| 4437 | stringOrDash(formatTaskActorPtr(item.ClaimedBy)), |
| 4438 | stringOrDash(item.NetworkChannel), |
| 4439 | stringOrDash(item.CoordinationChannelID), |
| 4440 | stringOrDash(formatTime(item.QueuedAt)), |
| 4441 | stringOrDash(formatTimePtr(item.StartedAt)), |
| 4442 | stringOrDash(formatTimePtr(item.EndedAt)), |
| 4443 | stringOrDash(item.Error), |
| 4444 | } |
| 4445 | }, |
| 4446 | func(item TaskRunRecord) []string { |
| 4447 | return []string{ |
| 4448 | item.ID, |
| 4449 | string(item.Status), |
| 4450 | strconv.Itoa(item.Attempt), |
| 4451 | item.SessionID, |
| 4452 | formatTaskActorPtr(item.ClaimedBy), |
| 4453 | item.NetworkChannel, |
| 4454 | item.CoordinationChannelID, |
| 4455 | formatTime(item.QueuedAt), |
| 4456 | formatTimePtr(item.StartedAt), |