aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-07-29 08:24:34 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-07-29 08:24:34 +0200
commit4ef5570c348e2d8d83c67e049b06e7b5d1a7542d (patch)
tree1da35c3bd67f4235f8ed58af6f3f6e27eaa5a270 /README.md
parent802cedfa3b92a07247bf513b90e0fdff71201294 (diff)
downloadlectio-4ef5570c348e2d8d83c67e049b06e7b5d1a7542d.tar.gz
lectio-4ef5570c348e2d8d83c67e049b06e7b5d1a7542d.zip
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.
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
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 = <name>` (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
+ <name>` 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