diff --git a/cve_bin_tool/output_engine/__init__.py b/cve_bin_tool/output_engine/__init__.py index 5493250989..51f2357a81 100644 --- a/cve_bin_tool/output_engine/__init__.py +++ b/cve_bin_tool/output_engine/__init__.py @@ -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, @@ -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"""