Skip to content

Commit

Permalink
Fix vara-art show
Browse files Browse the repository at this point in the history
  • Loading branch information
boehmseb committed Jan 6, 2024
1 parent cb8f8f1 commit 6fe7894
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions varats/varats/tools/driver_artefacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,16 @@ def _create_artefact_choice() -> TypedChoice['Artefact']:


@main.command(help="Show detailed information about artefacts.") # type: ignore
@click.argument("name", type=_create_artefact_choice())
def show(name: Artefact) -> None:
@click.argument("artefact", type=_create_artefact_choice())
def show(artefact: Artefact) -> None:
"""
Show detailed information about artefacts.
Args:
name: the artefact to display
artefact: the artefact to display
"""
print(textwrap.indent(yaml.dump(name.get_dict()), ' '))
print(f"Artefact '{artefact.name}':")
print(textwrap.indent(yaml.dump(artefact.get_dict()), ' '))


@main.command( # type: ignore
Expand Down

0 comments on commit 6fe7894

Please sign in to comment.