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

Function parseOutputSpec

cmd/validate/vsa.go:1323–1330  ·  view source on GitHub ↗

parseOutputSpec parses an output specification string into format name and file path Format: "format" or "format=file"

(outputSpec string)

Source from the content-addressed store, hash-verified

1321// parseOutputSpec parses an output specification string into format name and file path
1322// Format: "format" or "format=file"
1323func parseOutputSpec(outputSpec string) (formatName, file string) {
1324 parts := strings.SplitN(outputSpec, "=", 2)
1325 formatName = parts[0]
1326 if len(parts) > 1 {
1327 file = parts[1]
1328 }
1329 return formatName, file
1330}
1331
1332// writeVSAReport writes a combined VSAReport to all specified output formats
1333// display is used for text format to avoid reconstructing ComponentResultsDisplay

Callers 4

WriteAllMethod · 0.85
writeVSAReportFunction · 0.85
writeStatusOutputFunction · 0.85
isStatusOnlyFormatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected