(record BulkForceTaskRunRecord)
| 4350 | } |
| 4351 | |
| 4352 | func bulkForceTaskRunBundle(record BulkForceTaskRunRecord) outputBundle { |
| 4353 | return listBundle( |
| 4354 | record, |
| 4355 | record.Results, |
| 4356 | "Task Run Force Operations", |
| 4357 | []string{"Run ID", "OK", taskStatusValue, taskErrorValue}, |
| 4358 | "task_run_force_operations", |
| 4359 | []string{taskRunIDKey, "ok", taskStatusKey, taskErrorKey}, |
| 4360 | func(item BulkForceTaskRunItemRecord) []string { |
| 4361 | return []string{ |
| 4362 | item.RunID, |
| 4363 | strconv.FormatBool(item.OK), |
| 4364 | bulkForceTaskRunStatus(item), |
| 4365 | bulkForceTaskRunError(item), |
| 4366 | } |
| 4367 | }, |
| 4368 | func(item BulkForceTaskRunItemRecord) []string { |
| 4369 | return []string{ |
| 4370 | item.RunID, |
| 4371 | strconv.FormatBool(item.OK), |
| 4372 | bulkForceTaskRunStatus(item), |
| 4373 | bulkForceTaskRunError(item), |
| 4374 | } |
| 4375 | }, |
| 4376 | ) |
| 4377 | } |
| 4378 | |
| 4379 | func bulkForceTaskRunStatus(item BulkForceTaskRunItemRecord) string { |
| 4380 | if item.Run == nil { |
no test coverage detected