From c6d93ad8ce496a2e1a256a359d5fb643f04c5b65 Mon Sep 17 00:00:00 2001 From: Benjamin Dornel Date: Sun, 8 Sep 2024 21:27:30 +0800 Subject: [PATCH] refactor(cli): show number of files processed/errors as final action --- src/monopoly/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/monopoly/cli.py b/src/monopoly/cli.py index b0815aaf..3bb74b8e 100644 --- a/src/monopoly/cli.py +++ b/src/monopoly/cli.py @@ -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" @@ -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,