Documentation
¶
Index ¶
- type Summary
- func (s *Summary) ExitCode() int
- func (s *Summary) HasChanges() bool
- func (s *Summary) PrintColor(w io.Writer)
- func (s *Summary) PrintJSON(w io.Writer) error
- func (s *Summary) PrintMarkdown(w io.Writer)
- func (s *Summary) PrintPlain(w io.Writer)
- func (s *Summary) PrintSummaryOnly(w io.Writer)
- func (s *Summary) PrintTable(w io.Writer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Summary ¶
type Summary struct {
Results []*diff.Result
New int
Changed int
Unchanged int
Deleted int
Total int
}
Summary holds aggregated diff results.
func NewSummary ¶
NewSummary creates a summary from diff results.
func (*Summary) HasChanges ¶
HasChanges returns true if there are any differences.
func (*Summary) PrintColor ¶
PrintColor writes a colorized report to the writer.
func (*Summary) PrintMarkdown ¶
PrintMarkdown writes a markdown-formatted report to the writer.
func (*Summary) PrintPlain ¶
PrintPlain writes a plain-text report (no ANSI colors) to the writer.
func (*Summary) PrintSummaryOnly ¶
PrintSummaryOnly writes only the summary line to the writer.
func (*Summary) PrintTable ¶
PrintTable writes a table-formatted report to the writer.
Click to show internal directories.
Click to hide internal directories.