From 588d9fb64e023d08b3e6105b69c08d3f9ddf6083 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Mon, 27 Jul 2026 20:40:12 +0200 Subject: feat(cli): config-driven reading corpus + surface user corpora --- internal/cli/cli.go | 16 ++++++++++++++-- internal/cli/cli_test.go | 14 ++++++++++++++ internal/cli/liturgy.go | 41 +++++++++++++++++++++++++++++------------ internal/cli/liturgy_test.go | 32 ++++++++++++++++++++++++++++++++ 4 files changed, 89 insertions(+), 14 deletions(-) (limited to 'internal') diff --git a/internal/cli/cli.go b/internal/cli/cli.go index eb01039..364e080 100644 --- a/internal/cli/cli.go +++ b/internal/cli/cli.go @@ -219,6 +219,9 @@ func Run(args []string, stdin io.Reader, stdout, stderr io.Writer) int { fmt.Fprintln(stderr, "lectio:", err) return 1 } + if dir, err := config.CorporaDir(); err == nil { + bible.SetUserCorporaDir(dir) + } if offline { cfg.Offline = true } @@ -1031,8 +1034,12 @@ func lookupRef(cfg config.Config, tbl *bible.BookTable, ref string, versions []s } // runList handles --list: print every book of the sigla dialect (scriptural -// order) as " ". The shortcut column is padded by rune count -// so diacritics ("Łk") still line up. +// order) as " ", followed by a "Versions:" block listing +// every known bible corpus -- built-in and user/drop-in alike (see +// bible.Corpora, which SetUserCorporaDir keeps current) -- as " +//