(detail *TaskDetailRecord)
| 3993 | } |
| 3994 | |
| 3995 | func renderTaskDetailHuman(detail *TaskDetailRecord) (string, error) { |
| 3996 | taskBlock, err := taskBundle(&detail.Task).human() |
| 3997 | if err != nil { |
| 3998 | return "", err |
| 3999 | } |
| 4000 | return renderHumanBlocks( |
| 4001 | taskBlock, |
| 4002 | renderHumanTable( |
| 4003 | "Child Tasks", |
| 4004 | []string{ |
| 4005 | "ID", |
| 4006 | taskIdentifierValue, |
| 4007 | taskScopeValue, |
| 4008 | taskWorkspaceValue, |
| 4009 | taskStatusValue, |
| 4010 | taskOwnerValue, |
| 4011 | taskTitleValue, |
| 4012 | }, |
| 4013 | taskChildRows(detail.Children), |
| 4014 | ), |
| 4015 | renderHumanTable( |
| 4016 | "Dependencies", |
| 4017 | []string{taskTaskValue, "Depends On", taskKindValue, taskCreatedValue}, |
| 4018 | taskDependencyRows(detail.Dependencies), |
| 4019 | ), |
| 4020 | renderHumanTable( |
| 4021 | "Task Runs", |
| 4022 | []string{ |
| 4023 | "ID", |
| 4024 | taskStatusValue, |
| 4025 | taskAttemptValue, |
| 4026 | taskSessionValue, |
| 4027 | taskClaimedByValue, |
| 4028 | taskChannelValue, |
| 4029 | taskCoordinationChannelValue, |
| 4030 | taskQueuedValue, |
| 4031 | taskStartedValue, |
| 4032 | taskEndedValue, |
| 4033 | taskErrorValue, |
| 4034 | }, |
| 4035 | taskRunRows(detail.Runs), |
| 4036 | ), |
| 4037 | renderHumanTable( |
| 4038 | "Task Events", |
| 4039 | []string{"ID", taskTypeValue, taskRunValue, "Actor", taskOriginValue, taskTimeValue}, |
| 4040 | taskEventRows(detail.Events), |
| 4041 | ), |
| 4042 | ), nil |
| 4043 | } |
| 4044 | |
| 4045 | func renderTaskDetailToon(detail *TaskDetailRecord) (string, error) { |
| 4046 | taskBlock, err := taskBundle(&detail.Task).toon() |
no test coverage detected