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

Function newTaskPublishCommand

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

Source from the content-addressed store, hash-verified

603}
604
605func newTaskPublishCommand(deps commandDeps) *cobra.Command {
606 return newTaskExecutionCommand(
607 deps,
608 "publish <id>",
609 "Publish a draft task and enqueue its first run",
610 func(ctx context.Context, client DaemonClient, id string, request TaskExecutionRequest) (TaskExecutionRecord, error) {
611 return client.PublishTask(ctx, id, request)
612 },
613 )
614}
615
616func newTaskStartCommand(deps commandDeps) *cobra.Command {
617 return newTaskExecutionCommand(

Callers 1

newTaskCommandFunction · 0.85

Calls 2

newTaskExecutionCommandFunction · 0.85
PublishTaskMethod · 0.65

Tested by

no test coverage detected