Documentation
¶
Overview ¶
Package output provides formatted terminal and JSON output for slimify reports.
Index ¶
- func PrintAuditJSON(report *analyzer.AuditReport) error
- func PrintAuditReport(report *analyzer.AuditReport, quiet bool)
- func PrintCompareJSON(report *analyzer.CompareReport) error
- func PrintCompareReport(report *analyzer.CompareReport)
- func PrintFixSummary(outputDir string, ignoreSaved int64, originalSize int64, hasDockerfile bool, ...)
- func PrintIgnoreSummary(ecosystems string, patternCount int, written bool, path string)
- func ToJSON(v interface{}) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintAuditJSON ¶
func PrintAuditJSON(report *analyzer.AuditReport) error
PrintAuditJSON outputs the audit report as JSON.
func PrintAuditReport ¶
func PrintAuditReport(report *analyzer.AuditReport, quiet bool)
PrintAuditReport renders an audit report to the terminal.
func PrintCompareJSON ¶
func PrintCompareJSON(report *analyzer.CompareReport) error
PrintCompareJSON outputs the compare report as JSON.
func PrintCompareReport ¶
func PrintCompareReport(report *analyzer.CompareReport)
PrintCompareReport renders a comparison report to the terminal.
func PrintFixSummary ¶
func PrintFixSummary(outputDir string, ignoreSaved int64, originalSize int64, hasDockerfile bool, savingsMB float64)
PrintFixSummary renders the output of a fix command.
func PrintIgnoreSummary ¶
PrintIgnoreSummary renders the output of the ignore command.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.