output

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package output provides formatted terminal and JSON output for slimify reports.

Index

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

func PrintIgnoreSummary(ecosystems string, patternCount int, written bool, path string)

PrintIgnoreSummary renders the output of the ignore command.

func ToJSON

func ToJSON(v interface{}) (string, error)

ToJSON serializes any value as indented JSON to a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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