(id string)
| 3627 | } |
| 3628 | |
| 3629 | func taskDeleteBundle(id string) outputBundle { |
| 3630 | item := struct { |
| 3631 | ID string `json:"id"` |
| 3632 | Status string `json:"status"` |
| 3633 | }{ |
| 3634 | ID: strings.TrimSpace(id), |
| 3635 | Status: taskDeletedKey, |
| 3636 | } |
| 3637 | return outputBundle{ |
| 3638 | jsonValue: item, |
| 3639 | human: func() (string, error) { |
| 3640 | return renderHumanSection(taskTaskValue, []keyValue{ |
| 3641 | {Label: "ID", Value: stringOrDash(item.ID)}, |
| 3642 | {Label: taskStatusValue, Value: item.Status}, |
| 3643 | }), nil |
| 3644 | }, |
| 3645 | toon: func() (string, error) { |
| 3646 | return renderToonObject( |
| 3647 | taskTaskKey, |
| 3648 | []string{"id", taskStatusKey}, |
| 3649 | []string{item.ID, item.Status}, |
| 3650 | ), nil |
| 3651 | }, |
| 3652 | } |
| 3653 | } |
| 3654 | |
| 3655 | func taskExecutionProfileDeleteBundle(id string) outputBundle { |
| 3656 | item := struct { |
no test coverage detected