Skip to content

Commit

Permalink
refactor(cli): show report as final action
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-awd committed Sep 8, 2024
1 parent 45a3143 commit 317761a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/monopoly/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ def display_report(self, verbose=False) -> None:
Parses all results, displaying the number of successfully
processed statements and any errors.
"""
for res in self.processed_results:
click.echo(f"{res.source_file_name} -> {res.target_file_name}")

if self.number_errored > 0:
error_msg = (
f"{self.number_errored} statement(s) had errors while processing"
Expand All @@ -98,9 +101,6 @@ def display_report(self, verbose=False) -> None:
)
)

for res in self.processed_results:
click.echo(f"{res.source_file_name} -> {res.target_file_name}")


def process_statement(
file: Path,
Expand Down

0 comments on commit 317761a

Please sign in to comment.