MCPcopy Create free account
hub / github.com/compozy/agh / taskExecutionProfileDeleteBundle

Function taskExecutionProfileDeleteBundle

internal/cli/task.go:3655–3679  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

3653}
3654
3655func 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
3681func taskSummaryListBundle(items []TaskSummaryRecord) outputBundle {
3682 return listBundle(

Callers 1

Calls 3

renderHumanSectionFunction · 0.85
stringOrDashFunction · 0.85
renderToonObjectFunction · 0.85

Tested by

no test coverage detected