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

Function taskDeleteBundle

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

Source from the content-addressed store, hash-verified

3627}
3628
3629func 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
3655func taskExecutionProfileDeleteBundle(id string) outputBundle {
3656 item := struct {

Callers 1

newTaskDeleteCommandFunction · 0.85

Calls 3

renderHumanSectionFunction · 0.85
stringOrDashFunction · 0.85
renderToonObjectFunction · 0.85

Tested by

no test coverage detected