feat(validate): add mutuallyExclusive for static conditional-profile conflict checks #29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-24-inter-conflict-conditional-profiles"
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?
Summary
mutuallyExclusive :: Text -> Text -> ConfigBuilder ()DSL combinator to declare two profiles as mutually exclusivevalidatenow statically checks declared pairs for enable/disable conflicts, reportingInterConflict ProfileKindUnknownExclusiveProfile Texterror when a name in amutuallyExclusivedeclaration doesn't match any profileinterConflictTest Plan
cabal test— 56/56 tests pass including 3 newmutuallyExclusivecasesmutuallyExclusive→Left (InterConflict ProfileKind ...)Right _mutuallyExclusive "left" "ghost"→Left (UnknownExclusiveProfile "ghost")Right _Closes #24