output

package
v0.0.0-...-be47510 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package output contains helper methods for pretty-printing code reviews.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintComments

func PrintComments(repo repository.Repo, c []review.CommentThread) error

PrintComments prints all of the given comment threads.

func PrintCommentsJSON

func PrintCommentsJSON(c []review.CommentThread) error

PrintCommentsJSON pretty prints the given review in JSON format.

func PrintDetails

func PrintDetails(r *review.Review) error

PrintDetails prints a multi-line overview of a review, including all comments.

func PrintDiff

func PrintDiff(r *review.Review, diffArgs ...string) error

PrintDiff prints the diff of the review.

func PrintJSON

func PrintJSON(r *review.Review) error

PrintJSON pretty prints the given review in JSON format.

func PrintSummaries

func PrintSummaries(reviews []review.Summary, listAll bool)

PrintSummaries prints single-line summaries of a slice of reviews.

func PrintSummary

func PrintSummary(r *review.Summary)

PrintSummary prints a single-line summary of a review.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL