Skip to content

Commit

Permalink
kart-data-ls: address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
olsen232 committed Jul 31, 2023
1 parent 9547044 commit f46c9c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kart/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ def data_ls(ctx, output_format, with_dataset_types, refish):
repo_desc = (
"Empty repository."
if repo.head_is_unborn
else "The commit at HEAD has no datasets."
else f"The commit at {refish} has no datasets."
)
click.echo(f'{repo_desc}\n (use "kart import" to add some data)')
return

if output_format == "text":
if with_dataset_types:
for ds_obj in json_list:
click.echo(f"{ds_obj['path']}\t({ds_obj['type']}.v{ds_obj['version']})")
click.echo("{path}\t({type}.v{version})".format(**ds_obj))

else:
for ds_obj in json_list:
Expand Down

0 comments on commit f46c9c5

Please sign in to comment.