Skip to content

Commit 57db2bd

Browse files
authored
Add a board counter (#673)
1 parent 7d85efd commit 57db2bd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build-all.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ def main(clean=False, build=False):
1010
with open("crates.json", "r") as f:
1111
crates = json.load(f)
1212

13-
for (board, jobs) in crates["boards"].items():
13+
boards_len = len(crates["boards"])
14+
for (index, (board, jobs)) in enumerate(crates["boards"].items()):
15+
index += 1
1416
print()
1517
print("-" * 80)
16-
print(f"Crate: {board}")
18+
print(f"Crate: {board} | {index:2}/{boards_len}")
1719
print(f"Command: {jobs['build']}\n")
1820

1921
command = shlex.split(jobs["build"])

0 commit comments

Comments
 (0)