in terranova/commands/binds.py [0:0]
def get(path: str | None, selectors: list[Selector] | None) -> None:
"""Display one or many resources."""
# Find all resources manifests
paths = resource_dirs(path)
# Render resources table
table = Table()
table.add_column("Path", justify="left", style="cyan", no_wrap=True)
table.add_column("Type", justify="left", style="green")
table.add_column("Name", style="magenta")
for full_path, rel_path in paths:
resources = discover_resources(full_path, selectors)
for resource in resources:
table.add_row(rel_path, resource.type, resource.name)
SharedContext.console().print(table)