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.
Now when we have
SanctoraleWriter
, it would be useful to have a new subcommand of thecalendariumrom
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.