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

Function newTaskApproveCommand

internal/cli/task.go:627–636  ·  view source on GitHub ↗
(deps commandDeps)

Source from the content-addressed store, hash-verified

625}
626
627func newTaskApproveCommand(deps commandDeps) *cobra.Command {
628 return newTaskExecutionCommand(
629 deps,
630 "approve <id>",
631 "Approve a task and enqueue its first run",
632 func(ctx context.Context, client DaemonClient, id string, request TaskExecutionRequest) (TaskExecutionRecord, error) {
633 return client.ApproveTask(ctx, id, request)
634 },
635 )
636}
637
638func newTaskDeleteCommand(deps commandDeps) *cobra.Command {
639 cmd := &cobra.Command{

Callers 1

newTaskCommandFunction · 0.85

Calls 2

newTaskExecutionCommandFunction · 0.85
ApproveTaskMethod · 0.65

Tested by

no test coverage detected