Skip to content

Commit 4dc84ea

Browse files
committed
🎨 Use SearchingProgressBar to make the output more user-friendly
1 parent 570c381 commit 4dc84ea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

code_counter/core/counter.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from code_counter.conf.config import Config
88
from code_counter.core.visualization import GraphVisualization
99
from code_counter.core.countable.iterator import CountableIterator, RemoteCountableIterator
10+
from code_counter.tools.progress import SearchingProgressBar
1011

1112

1213
class CodeCounter:
@@ -46,7 +47,11 @@ def search(self):
4647
if self.args.verbose:
4748
self.__print_searching_verbose_title(output_file)
4849

50+
progress_bar = SearchingProgressBar()
51+
progress_bar.start()
4952
asyncio.run(self.__search(input_path, output_file))
53+
progress_bar.stop()
54+
progress_bar.join()
5055

5156
self.__print_result_info(output_file)
5257

0 commit comments

Comments
 (0)