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

Function filterOutStatusFormat

cmd/validate/vsa.go:1168–1178  ·  view source on GitHub ↗

filterOutStatusFormat removes "status" format from output formats list Status format is only valid for VSA output, not for fallback image validation

(outputFormats []string)

Source from the content-addressed store, hash-verified

1166// filterOutStatusFormat removes "status" format from output formats list
1167// Status format is only valid for VSA output, not for fallback image validation
1168func filterOutStatusFormat(outputFormats []string) []string {
1169 var filtered []string
1170 for _, format := range outputFormats {
1171 parts := strings.SplitN(format, "=", 2)
1172 formatName := parts[0]
1173 if formatName != outputFormatStatus {
1174 filtered = append(filtered, format)
1175 }
1176 }
1177 return filtered
1178}
1179
1180// shouldPrintFallbackHeader determines if the fallback header should be printed
1181// The header should only be printed when using text format or when no format is specified

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected