summaryrefslogtreecommitdiff
path: root/examples/cli
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-01 23:41:55 +0200
committerPaul Buetow <paul@buetow.org>2026-03-01 23:41:55 +0200
commit9a6526a7022c1d1172c1be9b9b3545ed6e00c9e6 (patch)
tree5958efd55a2d11bbc7805b7bc539a53dc928e394 /examples/cli
parent211e3650387bd299bfcc6d21b7230323e45217c2 (diff)
refactor: defer Config loading — add explicit Config.load! method
Loading config.toml at module eval time (during require) runs before the application's working directory is set, can slow down tests that don't use config at all, and gives no way to reload between calls. Move the load logic into Config.load! (mirrors the Options.parse! pattern added in the previous commit). The module body now just initialises @@config to {}. Call Config.load! alongside Options.parse! at the top of configure() so all entry points reload from the correct directory. Also qualify File as ::File inside the RCM module to avoid resolving it as RCM::File once the keyword files are loaded. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'examples/cli')
0 files changed, 0 insertions, 0 deletions