From e4ac5326a42e45281ac8cdcf45757330bae007e9 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Thu, 23 Jul 2026 14:10:09 +0200 Subject: config: add web_theme/web_port fields Add WebTheme (default: "transfiguration") and WebPort (default: 0) to Config for the upcoming lectio-web binary. WebTheme resolves theme names (built-in or user files) later in internal/web; WebPort 0 means auto-pick a free port. - Updated Config struct with new fields - Set defaults in Default() - Updated embedded seed config.toml with documentation - Added TDD tests: TestWebDefaults and TestWebLoadsFromSeed - Existing tests (TestLoadSeeds, TestLoadOverride) still pass --- internal/config/config.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/config/config.go') diff --git a/internal/config/config.go b/internal/config/config.go index 4e11c56..9c3c3cd 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -40,6 +40,8 @@ type Config struct { Width int `toml:"width"` All bool `toml:"all"` Offline bool `toml:"offline"` + WebTheme string `toml:"web_theme"` + WebPort int `toml:"web_port"` Parts map[string]map[string]bool `toml:"parts"` } @@ -65,6 +67,8 @@ func Default() Config { Width: 0, All: false, Offline: false, + WebTheme: "transfiguration", + WebPort: 0, Parts: nil, } } -- cgit v1.3