(deps commandDeps)
| 2404 | } |
| 2405 | |
| 2406 | func newTaskRunShowCommand(deps commandDeps) *cobra.Command { |
| 2407 | return &cobra.Command{ |
| 2408 | Use: "show <run-id>", |
| 2409 | Short: "Show a task run", |
| 2410 | Args: exactOneNonBlankArg(), |
| 2411 | RunE: func(cmd *cobra.Command, args []string) error { |
| 2412 | client, err := clientFromDeps(deps) |
| 2413 | if err != nil { |
| 2414 | return err |
| 2415 | } |
| 2416 | |
| 2417 | detail, err := client.GetTaskRun(cmd.Context(), args[0]) |
| 2418 | if err != nil { |
| 2419 | return err |
| 2420 | } |
| 2421 | return writeCommandOutput(cmd, taskRunDetailBundle(&detail)) |
| 2422 | }, |
| 2423 | } |
| 2424 | } |
| 2425 | |
| 2426 | func newTaskRunEnqueueCommand(deps commandDeps) *cobra.Command { |
| 2427 | var ( |
no test coverage detected