how-many-days, day 3 (1.2.0)

Published by

on

how-many-days is a command-line tool that counts the distinct days of work recorded in a git history — not commits, not calendar span, but the number of separate days somebody actually committed something. Point it at a repository and it reports that number. To use it just run npx how-many-days in your repo.

New feature! --repo added, it landed on version 1.2.0, published on npm.

Added support for specifying one or more repositories as optional parameters, so the tool no longer runs exclusively in the current repository (although that capability is kept).

This is useful in case a single project spans multiple repositories and you want to know how many days you worked in the project overall, merging days you worked in both. You can also group by repo using the --by repo parameter.

Also fixed a visual bug in the rendering of the histograms due to cases when some columns are not being rendered, which led to a small refactor in the code to split concerns from the main script and into the renderer script.

I also added changelog support, but publishing the new version to npm proved a bit wacky; some improvements were done to automate it using a github action connected to npm as a trusted publisher, the dry runs went fine after some iteration, but we’ll only know how well it works until the next version.

Leave a Reply

Discover more from Slashie's Gamedev Adventures

Subscribe now to keep reading and get access to the full archive.

Continue reading