(self, scan: ScanCollection)
return OutputHandler._get_exit_code(scan)
Process a scan collection, write the report to :attr:`self.output`

        :param scan: The scan collection to process
        :return: The exit code
Process a scan collection, write the report to :attr:`self.output`
Process a scan collection write the report to : attr : self . output
def process_scan(self, scan: ScanCollection) -> int:
        """Process a scan collection, write the report to :attr:`self.output`

        :param scan: The scan collection to process
        :return: The exit code
        """
        text = self._process_scan_impl(scan)
        if self.output:
            with open(self.output, "w+") as f:
                f.write(text)
        else:
            click.echo(text)
        return OutputHandler._get_exit_code(scan)
def process_scan ( self , scan : ScanCollection ) -> int : text = self . _process_scan_impl ( scan ) if self . output : with open ( self . output , "w+" ) as f : f . write ( text ) else : click . echo ( text ) return OutputHandler . _get_exit_code ( scan )