beads/internal/configfile
Trillium Smith 336728882a
feat(config): add central server config library (#3258)
* test(config): add specs for central server config library

Add test cases for LoadCentralConfig, ApplyCentralDefaults, and
DefaultCentralConfigPath with stub implementations. Tests define
the expected behavior; implementations follow in the next commit.

* feat(config): implement central server config library

Implement LoadCentralConfig and ApplyCentralDefaults to satisfy
the specs from the previous commit. LoadCentralConfig reads and
parses ~/.config/beads/server.json; ApplyCentralDefaults merges
server-only fields into per-project config at zero values.

* test(config): add integration specs for central config wiring

Add tests that verify applyCentralConfigDefaults loads the central
server config and merges it into the per-project config. Stub
implementation is a no-op; tests define expected behavior before
the wiring is implemented.

* feat(config): wire central config into store open paths

Implement applyCentralConfigDefaults and call it in both
NewFromConfigWithOptions and NewFromConfigWithCLIOptions so that
server fields from ~/.config/beads/server.json are applied as
defaults before per-project config resolution.
2026-04-27 12:54:11 -07:00
..
central_config.go feat(config): add central server config library (#3258) 2026-04-27 12:54:11 -07:00
central_config_test.go feat(config): add central server config library (#3258) 2026-04-27 12:54:11 -07:00
configfile.go fix(config): consult config.yaml for dolt.host (#3471) 2026-04-25 12:21:30 -07:00
configfile_test.go fix(config): consult config.yaml for dolt.host (#3471) 2026-04-25 12:21:30 -07:00
credentials.go Add credentials file support for Dolt server passwords (#2854) 2026-04-02 20:35:56 -07:00
credentials_test.go Add credentials file support for Dolt server passwords (#2854) 2026-04-02 20:35:56 -07:00
credentials_unix.go Add credentials file support for Dolt server passwords (#2854) 2026-04-02 20:35:56 -07:00
credentials_windows.go Add credentials file support for Dolt server passwords (#2854) 2026-04-02 20:35:56 -07:00