From 4ef5570c348e2d8d83c67e049b06e7b5d1a7542d Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Wed, 29 Jul 2026 08:24:34 +0200 Subject: feat(cli): --cal-dump NAME to generate a commented calendar template Replace the static examples/sanctorale-of.ini with a `--cal-dump NAME` flag that writes the running universal calendar to ~/.config/lectio/calendars/NAME.ini as a fully-commented layer template (every celebration present, all commented). Uncomment one day and edit a field to override it; enable with `use = NAME`. - Form-aware: respects -l/--lectionary, so `-l trad --cal-dump x` dumps the 1962 calendar (322 entries) and the default dumps the OF calendar (212 entries). - Entries sorted by date then slug; refuses to overwrite an existing file. - Always in sync with the embedded (or sanctorale-overridden) calendar, so no stale checked-in template to maintain. - Update help text, man page (OPTIONS/FILES/EXAMPLES) and README to match; drop examples/sanctorale-of.ini. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index ca16b79..bd1155f 100644 --- a/README.md +++ b/README.md @@ -308,9 +308,9 @@ INI: and enable it with `use = ` (comma list, later wins). A layer **adds** a saint, **overrides** any field of an existing one (rank, colour, name, readings), or **suppresses** it (`suppress = true`). This is the place for diocesan/national - propers and one-off rank fixes — you only write the deltas. `examples/sanctorale-of.ini` - is a ready-made template: every universal entry, commented out — copy it into - `calendars/`, uncomment a day, and edit it. + propers and one-off rank fixes — you only write the deltas. `lectio --cal-dump + ` writes a ready-made template into `calendars/`: every universal entry, + commented out — uncomment a day and edit it (add `-l trad` to dump the 1962 form). - **Replace the whole base.** Drop `~/.config/lectio/sanctorale/of.ini` (Ordinary Form) or `ef.ini` (Extraordinary Form) and it is used *instead of* the embedded calendar — for shipping a full refreshed calendar (regenerate with -- cgit v1.3