From 3a43b6199a518dd85c2607c6af47b1e3b5d4ae76 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Mon, 27 Jul 2026 13:34:39 +0200 Subject: fix(cli): --liturgy signals EF-not-implemented instead of silently returning OF --- internal/cli/liturgy.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'internal/cli/liturgy.go') diff --git a/internal/cli/liturgy.go b/internal/cli/liturgy.go index fabac48..24052ab 100644 --- a/internal/cli/liturgy.go +++ b/internal/cli/liturgy.go @@ -23,6 +23,14 @@ func runLiturgy(cfg config.Config, date string, stdout, stderr io.Writer) int { fmt.Fprintf(stderr, "lectio: bad date %q (want YYYY-MM-DD)\n", date) return 2 } + // The computed engine currently does the Ordinary Form only. Rather than + // silently return OF for a traditional (EF) config, say so. + if cfg.Selection().Form == "old" { + fmt.Fprintln(stderr, "lectio: the offline calendar engine currently computes only the Ordinary Form.") + fmt.Fprintln(stderr, " Traditional (1962 EF) computation is not built yet; your traditional daily") + fmt.Fprintln(stderr, " readings still work via 'lectio [DATE]'. To compute the OF: add --lectionary new.") + return 1 + } dir, _ := config.CalendarsDir() layers, errs := caldata.Stack(dir, cfg.Use) for _, e := range errs { -- cgit v1.3