MCPcopy Create free account
hub / github.com/conforma/cli / writeVSASectionsToStdout

Function writeVSASectionsToStdout

cmd/validate/vsa.go:1619–1630  ·  view source on GitHub ↗

writeVSASectionsToStdout writes VSA sections to stdout using String() methods

(display ComponentResultsDisplay)

Source from the content-addressed store, hash-verified

1617
1618// writeVSASectionsToStdout writes VSA sections to stdout using String() methods
1619func writeVSASectionsToStdout(display ComponentResultsDisplay) {
1620 fmt.Print(display.Header.String())
1621 fmt.Println()
1622 fmt.Print(display.Result.String())
1623 fmt.Println()
1624 fmt.Print(display.VSASummary.String())
1625 fmt.Println()
1626 if display.PolicyDiff != nil {
1627 fmt.Print(display.PolicyDiff.String())
1628 fmt.Println()
1629 }
1630}
1631
1632// filterVSAOutputFormats filters output formats to only include json, yaml, text, and status
1633func filterVSAOutputFormats(outputFormats []string) []string {

Callers 1

Calls 2

PrintMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected