MCPcopy Create free account
hub / github.com/compozy/agh / newTaskReviewShowCommand

Function newTaskReviewShowCommand

internal/cli/task.go:1094–1111  ·  view source on GitHub ↗
(deps commandDeps)

Source from the content-addressed store, hash-verified

1092}
1093
1094func 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
1113func newTaskReviewSubmitCommand(deps commandDeps) *cobra.Command {
1114 input := taskReviewSubmitInput{}

Callers 1

newTaskReviewCommandFunction · 0.85

Calls 5

exactOneNonBlankArgFunction · 0.85
clientFromDepsFunction · 0.85
writeCommandOutputFunction · 0.85
taskRunReviewBundleFunction · 0.85
GetTaskRunReviewMethod · 0.65

Tested by

no test coverage detected