(ctx: click.Context, last_found: bool)
Command to ignore some secrets.
Command to ignore some secrets.
Command to ignore some secrets .
def ignore(ctx: click.Context, last_found: bool) -> int:
    """
    Command to ignore some secrets.
    """

    if last_found:
        config = ctx.obj["config"]
        cache = ctx.obj["cache"]
        nb = ignore_last_found(config, cache)
        click.echo(
            f"{nb} secrets have been added to your ignore list in"
            " .gitguardian.yaml under matches-ignore section."
        )

    sys.exit(0)
def ignore ( ctx : click . Context , last_found : bool ) -> int : if last_found : config = ctx . obj [ "config" ] cache = ctx . obj [ "cache" ] nb = ignore_last_found ( config , cache ) click . echo ( f"{nb} secrets have been added to your ignore list in" " .gitguardian.yaml under matches-ignore section." ) sys . exit ( 0 )