feat(config): merge platform config model and add disabled-platform guard #336
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/cp.nvim!336
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/platform-config"
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?
Problem
Supplying any
platformstable silently dropped all unlisted platforms,making it easy to accidentally disable platforms. Invoking a disabled
platform produced no user-facing error.
Solution
Switch to a merge model: all six platforms are enabled by default and
user entries are deep-merged on top. Set a platform key to
falsetodisable it explicitly. Add a
check_platform_enabledguard inhandle_commandfor contest fetch, login, logout, and race actions.