(deps commandDeps)
| 614 | } |
| 615 | |
| 616 | func newTaskStartCommand(deps commandDeps) *cobra.Command { |
| 617 | return newTaskExecutionCommand( |
| 618 | deps, |
| 619 | "start <id>", |
| 620 | "Enqueue a run for an executable task", |
| 621 | func(ctx context.Context, client DaemonClient, id string, request TaskExecutionRequest) (TaskExecutionRecord, error) { |
| 622 | return client.StartTask(ctx, id, request) |
| 623 | }, |
| 624 | ) |
| 625 | } |
| 626 | |
| 627 | func newTaskApproveCommand(deps commandDeps) *cobra.Command { |
| 628 | return newTaskExecutionCommand( |
no test coverage detected