diff --git a/devchat/_cli.py b/devchat/_cli.py index ff241505..e5a93558 100644 --- a/devchat/_cli.py +++ b/devchat/_cli.py @@ -172,5 +172,7 @@ def log(skip, max_count): recent_prompts = store.select_recent(skip, skip + max_count) + logs = [] for record in recent_prompts: - click.echo(json.dumps(record.shortlog(), indent=2)) + logs.append(record.shortlog()) + click.echo(json.dumps(logs, indent=2))