(deps commandDeps)
| 434 | } |
| 435 | |
| 436 | func newTaskGetCommand(deps commandDeps) *cobra.Command { |
| 437 | return &cobra.Command{ |
| 438 | Use: taskGetIDValue, |
| 439 | Short: "Show one task with related detail", |
| 440 | Args: exactOneNonBlankArg(), |
| 441 | RunE: func(cmd *cobra.Command, args []string) error { |
| 442 | client, err := clientFromDeps(deps) |
| 443 | if err != nil { |
| 444 | return err |
| 445 | } |
| 446 | |
| 447 | taskDetail, err := client.GetTask(cmd.Context(), args[0]) |
| 448 | if err != nil { |
| 449 | return err |
| 450 | } |
| 451 | return writeCommandOutput(cmd, taskDetailBundle(&taskDetail)) |
| 452 | }, |
| 453 | } |
| 454 | } |
| 455 | |
| 456 | func newTaskInspectCommand(deps commandDeps) *cobra.Command { |
| 457 | return &cobra.Command{ |
no test coverage detected