Skip to content

Commit

Permalink
Added counter to update-projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jul 6, 2023
1 parent 66a3a20 commit 7d60dda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jaraco/develop/update-projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import subprocess
import functools
import shutil
import itertools

import path
import autocommand
Expand Down Expand Up @@ -82,4 +83,7 @@ def main(
branch=None,
):
update = functools.partial(update_project, base=base, branch=branch)
consume(map(update, filter(tag, filter(keyword, git.projects()))))
counter = itertools.count()
updates = map(update, filter(tag, filter(keyword, git.projects())))
consume(zip(counter, updates))
print(f"Updated {next(counter)} projects.")
1 change: 1 addition & 0 deletions newsfragments/+25e5b97a.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added counter to update-projects.

0 comments on commit 7d60dda

Please sign in to comment.