(deps commandDeps)
| 625 | } |
| 626 | |
| 627 | func 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 | |
| 638 | func newTaskDeleteCommand(deps commandDeps) *cobra.Command { |
| 639 | cmd := &cobra.Command{ |
no test coverage detected