writeVSASectionsToStdout writes VSA sections to stdout using String() methods
(display ComponentResultsDisplay)
| 1617 | |
| 1618 | // writeVSASectionsToStdout writes VSA sections to stdout using String() methods |
| 1619 | func 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 |
| 1633 | func filterVSAOutputFormats(outputFormats []string) []string { |
no test coverage detected