igneus / calendarium-romanum

liturgical calendar library (Roman Catholic, post-Vatican II)
50 stars 21 forks source link

Command "diffing" two sanctorale data files #64

Closed igneus closed 2 years ago

igneus commented 3 years ago

Now when we have SanctoraleWriter, it would be useful to have a new subcommand of the calendariumrom command which will take two paths of sanctorale data files, load them and print to stdout a single new sanctorale data file containing only celebrations which differ between the two files.

There should be an option to ignore celebration names in the comparison.

Typical use case: You have a single file containing both celebrations from the General Roman Calendar and from some national/diocesan/... proper, you want to extract only the proper ones.

Where to start: there's already calendariumrom cmp subcommand which detects differences and prints them in a user-readable format. Part of it's implementation can probably be reused.

igneus commented 2 years ago

Done in 18f932e