Skip to content

Commit ec9bd08

Browse files
committed
Add progress bar to improve UI
Change-Id: I1089bfda4d511c888c8610ab8d8e799a52b47723
1 parent 9a8a66f commit ec9bd08

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ linux-version-finder --help
2121

2222
## Linux Install requirements
2323

24-
python3 -mpip install --upgrade --user typer
24+
pip3 install -r requirements.txt

linux-version-finder

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import sys
1111
from typing import List
1212

1313
import typer
14+
from tqdm import tqdm
1415

1516

1617
def linux_version_finder_single(single_script_path: str, commit: str) -> list[str]:
@@ -73,7 +74,7 @@ def find_commits_versions(
7374
This is the first half of the tool and the part the require almost all the cpu/mem"""
7475
minor_versions = get_minor_versions()
7576
versions_count = collections.defaultdict(list)
76-
for commit in commits:
77+
for commit in tqdm(commits):
7778
minor_version = ""
7879
versions = linux_version_finder_single(single_script_path, commit)
7980
for version in versions:

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
tqdm
2+
typer

0 commit comments

Comments
 (0)