filterVSAOutputFormats filters output formats to only include json, yaml, text, and status
(outputFormats []string)
| 1631 | |
| 1632 | // filterVSAOutputFormats filters output formats to only include json, yaml, text, and status |
| 1633 | func filterVSAOutputFormats(outputFormats []string) []string { |
| 1634 | var filtered []string |
| 1635 | for _, format := range outputFormats { |
| 1636 | parts := strings.SplitN(format, "=", 2) |
| 1637 | formatName := parts[0] |
| 1638 | if formatName == outputFormatJSON || formatName == outputFormatYAML || formatName == outputFormatText || formatName == outputFormatStatus { |
| 1639 | filtered = append(filtered, format) |
| 1640 | } |
| 1641 | } |
| 1642 | return filtered |
| 1643 | } |
| 1644 | |
| 1645 | // hasFileOutputInFormats checks if any format in the list specifies a file path |
| 1646 | func hasFileOutputInFormats(outputFormats []string) bool { |
no outgoing calls
no test coverage detected