Example #1
0
def cli(ctx, boring, verbose, zap_path, port, zap_url, api_key, log_path):
    """Main command line entry point."""
    console.colorize = not boring

    if verbose:
        console.setLevel('DEBUG')
    else:
        console.setLevel('INFO')

    ctx.obj = ZAPHelper(zap_path=zap_path, port=port, url=zap_url, api_key=api_key, log_path=log_path)
Example #2
0
def cli(ctx, boring, verbose, zap_path, port, zap_url, api_key):
    """Main command line entry point."""
    console.colorize = not boring

    if verbose:
        console.setLevel('DEBUG')
    else:
        console.setLevel('INFO')

    ctx.obj = ZAPHelper(zap_path=zap_path,
                        port=port,
                        url=zap_url,
                        api_key=api_key)
Example #3
0
def cli(ctx, boring, verbose, zap_path, port, zap_url, api_key, log_path,
        soft_fail):
    """Main command line entry point."""
    console.colorize = not boring

    if verbose:
        console.setLevel('DEBUG')
    else:
        console.setLevel('INFO')
    if soft_fail:
        os.environ["SOFT_FAIL"] = "true"

    ctx.obj = ZAPHelper(zap_path=zap_path,
                        port=port,
                        url=zap_url,
                        api_key=api_key,
                        log_path=log_path,
                        soft_fail=soft_fail)