(id string)
| 3653 | } |
| 3654 | |
| 3655 | func taskExecutionProfileDeleteBundle(id string) outputBundle { |
| 3656 | item := struct { |
| 3657 | TaskID string `json:"task_id"` |
| 3658 | Status string `json:"status"` |
| 3659 | }{ |
| 3660 | TaskID: strings.TrimSpace(id), |
| 3661 | Status: taskDeletedKey, |
| 3662 | } |
| 3663 | return outputBundle{ |
| 3664 | jsonValue: item, |
| 3665 | human: func() (string, error) { |
| 3666 | return renderHumanSection("Task Execution Profile", []keyValue{ |
| 3667 | {Label: taskTaskIDValue, Value: stringOrDash(item.TaskID)}, |
| 3668 | {Label: taskStatusValue, Value: item.Status}, |
| 3669 | }), nil |
| 3670 | }, |
| 3671 | toon: func() (string, error) { |
| 3672 | return renderToonObject( |
| 3673 | "task_execution_profile", |
| 3674 | []string{taskTaskIDKey, taskStatusKey}, |
| 3675 | []string{item.TaskID, item.Status}, |
| 3676 | ), nil |
| 3677 | }, |
| 3678 | } |
| 3679 | } |
| 3680 | |
| 3681 | func taskSummaryListBundle(items []TaskSummaryRecord) outputBundle { |
| 3682 | return listBundle( |
no test coverage detected