cli: config loaded twice in main() and subcommands #106

Closed
opened 2026-07-05 14:47:07 +00:00 by the.auditor · 0 comments
Owner

In src/kronai/cli.py:113-115, main() calls load_config() to get log settings for setup_logging(), then subcommands (_cmd_list, _cmd_run) call load_config() again. Config is loaded twice for every command.

Consider passing the already-loaded config to subcommands instead of reloading.

From PR #105 review suggestion.

In `src/kronai/cli.py:113-115`, `main()` calls `load_config()` to get log settings for `setup_logging()`, then subcommands (`_cmd_list`, `_cmd_run`) call `load_config()` again. Config is loaded twice for every command. Consider passing the already-loaded config to subcommands instead of reloading. _From PR #105 review suggestion._
fuzzy closed this issue 2026-07-05 17:30:34 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/kronai#106
No description provided.