(deps commandDeps)
| 603 | } |
| 604 | |
| 605 | func 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 | |
| 616 | func newTaskStartCommand(deps commandDeps) *cobra.Command { |
| 617 | return newTaskExecutionCommand( |
no test coverage detected