from typing import List
import click


def output_result(proc_packages: int, errors: List[str]) -> bool:
    """Output number of packages processed and errors."""
    click.echo(f"Checked {proc_packages} package(s).")
    if errors:
        click.echo(f"{len(errors)} errors found:\n" + ("\n").join(errors))
        return False
    else:
        click.echo("No errors detected.")
        return True