Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions cve_bin_tool/output_engine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,11 @@ def output_cves(self, outfile, output_type="console"):
self.no_scan,
)

def output_file_wrapper(self, output_types=["console"]):
"""Call output_file method for all output types."""
for output_type in output_types:
self.output_file(output_type)

if isinstance(self.append, str):
save_intermediate(
self.all_cve_data,
Expand Down Expand Up @@ -895,11 +900,6 @@ def output_cves(self, outfile, output_type="console"):
)
sbomgen.generate_sbom()

def output_file_wrapper(self, output_types=["console"]):
"""Call output_file method for all output types."""
for output_type in output_types:
self.output_file(output_type)

def output_file(self, output_type="console"):
"""Generate a file for list of CVE"""

Expand Down
Loading