INNER CODE UNIT · Python

validate

infosecB/LOOBins · src/pyloobins/cli.py:25

def validate(path: str) -> None:
    """Validate a LOOBin YAML file."""
    if validate_loobin(yml_path=path):
        print(f"LOOBin at {path} is valid.")
        sys.exit(0)
    else:
        print(f"LOOBin at {path} is NOT valid.")
        sys.exit(1)


@cli.command()
@click.option("--name", type=str, required=False, help="Enter the name of the binary")
@click.option(
    "--path",
    type=str,
    required=False,
    help="Enter the path where you would like to create the template YAML file.",
)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…