INNER CODE UNIT · Python
get
infosecB/LOOBins · src/pyloobins/cli.py:69
def get(name: str, path: str = "") -> None:
"""Get a LOOBin object."""
if path:
loobins = get_loobins(path=path)
else:
loobins = get_loobins()
res = [loobin for loobin in loobins if loobin.name == name]
if len(res) == 0:
print(f"No LOOBin found for {name}.")
else:
print(res[0].model_dump_json(indent=True, exclude_none=True))
@cli.command()
@click.option(
"--path",