report

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Summary

type Summary struct {
	Results   []*diff.DiffResult
	New       int
	Changed   int
	Unchanged int
	Deleted   int
	Total     int
}

Summary holds aggregated diff results.

func NewSummary

func NewSummary(results []*diff.DiffResult) *Summary

NewSummary creates a summary from diff results.

func (*Summary) ExitCode

func (s *Summary) ExitCode() int

ExitCode returns the appropriate exit code.

func (*Summary) HasChanges

func (s *Summary) HasChanges() bool

HasChanges returns true if there are any differences.

func (*Summary) PrintColor

func (s *Summary) PrintColor(w io.Writer)

PrintColor writes a colorized report to the writer.

func (*Summary) PrintJSON

func (s *Summary) PrintJSON(w io.Writer) error

PrintJSON writes a JSON report to the writer.

Jump to

Keyboard shortcuts

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