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

Function taskExecutionBundle

internal/cli/task.go:3572–3598  ·  view source on GitHub ↗
(item *TaskExecutionRecord)

Source from the content-addressed store, hash-verified

3570}
3571
3572func taskExecutionBundle(item *TaskExecutionRecord) outputBundle {
3573 return outputBundle{
3574 jsonValue: *item,
3575 human: func() (string, error) {
3576 taskBlock, err := taskBundle(&item.Task).human()
3577 if err != nil {
3578 return "", err
3579 }
3580 runBlock, err := taskRunBundle(item.Run).human()
3581 if err != nil {
3582 return "", err
3583 }
3584 return renderHumanBlocks(taskBlock, runBlock), nil
3585 },
3586 toon: func() (string, error) {
3587 taskBlock, err := taskBundle(&item.Task).toon()
3588 if err != nil {
3589 return "", err
3590 }
3591 runBlock, err := taskRunBundle(item.Run).toon()
3592 if err != nil {
3593 return "", err
3594 }
3595 return renderHumanBlocks(taskBlock, runBlock), nil
3596 },
3597 }
3598}
3599
3600func taskFanOutRunsBundle(record FanOutTaskRunsRecord) outputBundle {
3601 return listBundle(

Callers 1

newTaskExecutionCommandFunction · 0.85

Calls 3

taskBundleFunction · 0.85
taskRunBundleFunction · 0.85
renderHumanBlocksFunction · 0.85

Tested by

no test coverage detected