dmd report libyear

dmd report libyear

Report the Libyears metric for each repository

Usage

libyear

Examples

# To list all repositories
dmd report libyear --db dmd.db
# To list a specific repository, which shows a breakdown of the detected dependencies and calculated Libyear
dmd report libyear --db dmd.db --platform gitlab --organisation tanna.dev --repo dependency-management-data

Synopsis

Report how many Libyears behind the latest release repositories are

This uses the Libyear metric, which is defined as "how many years between the version we're currently using and the latest version released", and then totalled across all libraries used by the project.

Repositories with a Libyear value of 0 could indicate that either all dependencies are up-to-date, or that the Libyear could not be calculated and are not shown.

NOTE: that this may not include all dependencies, so the number could be higher than shown.

For further reading on the Libyear metric, check out:

Requires running db generate libyears to seed the data.

Options

Flag (type) Usage Notes
--csv Whether to output as a CSV file
-h, --help help for libyear
--organisation (string) Whether to filter Libyears by the given organisation that hosts the repository
--out (string) Where to output report(s)
--owner (string) Whether to filter Libyears by the underlying owner of the repository
--platform (gitlab) Whether to filter Libyears by the given platform that hosts the repository, for instance gitlab
--repo (string) Whether to filter Libyears by a specific repository name

Options inherited from parent commands

Flag (type) Usage Notes
--db (string) the path to the input/output database
--debug whether to enable debug logging