(deps commandDeps)
| 1092 | } |
| 1093 | |
| 1094 | func newTaskReviewShowCommand(deps commandDeps) *cobra.Command { |
| 1095 | return &cobra.Command{ |
| 1096 | Use: "show <review-id>", |
| 1097 | Short: "Show one task-run review", |
| 1098 | Args: exactOneNonBlankArg(), |
| 1099 | RunE: func(cmd *cobra.Command, args []string) error { |
| 1100 | client, err := clientFromDeps(deps) |
| 1101 | if err != nil { |
| 1102 | return err |
| 1103 | } |
| 1104 | review, err := client.GetTaskRunReview(cmd.Context(), args[0]) |
| 1105 | if err != nil { |
| 1106 | return err |
| 1107 | } |
| 1108 | return writeCommandOutput(cmd, taskRunReviewBundle(&review)) |
| 1109 | }, |
| 1110 | } |
| 1111 | } |
| 1112 | |
| 1113 | func newTaskReviewSubmitCommand(deps commandDeps) *cobra.Command { |
| 1114 | input := taskReviewSubmitInput{} |
no test coverage detected