diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-29 09:55:22 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-29 09:55:22 +0200 |
| commit | 0db24ba21a67c99d79d321fc82391e13656c40e4 (patch) | |
| tree | fc52c9130a7b54d811cd1c61bc5d7f4fb180cacc /internal/config/config_test.go | |
| parent | 4ef5570c348e2d8d83c67e049b06e7b5d1a7542d (diff) | |
| download | lectio-0db24ba21a67c99d79d321fc82391e13656c40e4.tar.gz lectio-0db24ba21a67c99d79d321fc82391e13656c40e4.zip | |
feat(clectio-gen): apply a calendar layer/sanctorale when generating
Add opt-in flags so clectio's tables can be regenerated from a customized
calendar instead of only the embedded universal one:
clectio-gen -caldir DIR -use a,b [-sanctorale DIR] <new|old> y0 y1 out/
- -caldir + -use stack calendar layers (rank, colour, name, reading.*) over the
calendar; -sanctorale DIR applies a full of.ini/ef.ini replacement.
- The BOOK table stays hermetic (LECTIO_CONFIG still points nowhere), so the
generator can't read a stale user books.ini -- calendar customization and the
book aliases are kept separate concerns.
- config.SetCalendarsDir lets CalendarsDir be pointed at an explicit layer dir
without a full config tree (and without an unrelated books.ini there).
Verified end to end: a layer adding a feast with a proper gospel regenerates
into liturgy_of.h + verses_of.keys, and the rebuilt clectio shows it. Default
(no flags) output is byte-identical to before. make test green.
Diffstat (limited to 'internal/config/config_test.go')
0 files changed, 0 insertions, 0 deletions
