perf(cli): pass loaded config to subcommands to avoid double load #145
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/kronai!145
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/0106-pass-config-to-subcommands"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
_main()loads config once and passes it to_cmd_list,_cmd_run, and_cmd_intervalinstead of each subcommand loading it again.Why
Eliminates redundant
load_config()calls — config was being loaded twice for every CLI command.Testing
Closes #106
7b82f409407b4891da45Automated Review — PR #145
Result: APPROVED
Clean perf fix —
_main()loads config once and passes it to_cmd_list,_cmd_run, and_cmd_intervalvia optionalconfigparam. Eliminates redundantload_config()per command. Closes #106.No suggestions.
7b4891da454a28a00ae44a28a00ae43e82e9c3a83e82e9c3a8e3121477c3New commits pushed, approval review dismissed automatically according to repository settings
Automated Review — PR #145
Result: APPROVED
Clean perf fix —
_main()loads config once and passes it to_cmd_list,_cmd_run, and_cmd_intervalvia optionalconfigparam. Eliminates redundantload_config()per command. Closes #106.No suggestions.
e3121477c386613c55a4