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

Function taskRunReviewRequestBundle

internal/cli/task.go:3447–3464  ·  view source on GitHub ↗
(record *TaskRunReviewRequestRecord)

Source from the content-addressed store, hash-verified

3445}
3446
3447func taskRunReviewRequestBundle(record *TaskRunReviewRequestRecord) outputBundle {
3448 return outputBundle{
3449 jsonValue: *record,
3450 human: func() (string, error) {
3451 return renderHumanSection("Task Run Review Request", []keyValue{
3452 {Label: taskReviewValue, Value: stringOrDash(record.Review.ReviewID)},
3453 {Label: taskRunValue, Value: stringOrDash(record.Review.RunID)},
3454 {Label: taskTaskValue, Value: stringOrDash(record.Review.TaskID)},
3455 {Label: taskStatusValue, Value: stringOrDash(string(record.Review.Status))},
3456 {Label: "Policy", Value: stringOrDash(string(record.Review.Policy))},
3457 {Label: taskCreatedValue, Value: strconv.FormatBool(record.Created)},
3458 }), nil
3459 },
3460 toon: func() (string, error) {
3461 return renderJSONPreview(record)
3462 },
3463 }
3464}
3465
3466func taskRunReviewBundle(review *TaskRunReviewRecord) outputBundle {
3467 return outputBundle{

Callers 1

Calls 3

renderHumanSectionFunction · 0.85
stringOrDashFunction · 0.85
renderJSONPreviewFunction · 0.85

Tested by

no test coverage detected