(deps commandDeps)
| 2328 | } |
| 2329 | |
| 2330 | func newTaskDependencyRemoveCommand(deps commandDeps) *cobra.Command { |
| 2331 | return &cobra.Command{ |
| 2332 | Use: "remove <task-id> <depends-on-id>", |
| 2333 | Short: "Remove a dependency edge from a task", |
| 2334 | Args: cobra.ExactArgs(2), |
| 2335 | RunE: func(cmd *cobra.Command, args []string) error { |
| 2336 | client, err := clientFromDeps(deps) |
| 2337 | if err != nil { |
| 2338 | return err |
| 2339 | } |
| 2340 | |
| 2341 | updated, err := client.RemoveTaskDependency(cmd.Context(), args[0], args[1]) |
| 2342 | if err != nil { |
| 2343 | return err |
| 2344 | } |
| 2345 | return writeCommandOutput(cmd, taskDetailBundle(&updated)) |
| 2346 | }, |
| 2347 | } |
| 2348 | } |
| 2349 | |
| 2350 | func newTaskRunCommand(deps commandDeps) *cobra.Command { |
| 2351 | cmd := &cobra.Command{ |
no test coverage detected