diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-29 08:24:34 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-29 08:24:34 +0200 |
| commit | 4ef5570c348e2d8d83c67e049b06e7b5d1a7542d (patch) | |
| tree | 1da35c3bd67f4235f8ed58af6f3f6e27eaa5a270 /README.md | |
| parent | 802cedfa3b92a07247bf513b90e0fdff71201294 (diff) | |
| download | lectio-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.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
