Added FlagPole.removeFlagValues(in:) to be able to remove / clear / reset all of the values in a given FlagValueSource. It works by discovering all of the non-nil flag keys inside the FlagValueSource and then setting it to nil.
📓 Documentation Plan
A separate PR is coming today to uplift the whole documentation site to DocC. The new options will be included then. (Reinstalling swift-doc on my new Mac is harder than I remember)
🗳 Test Plan
Additional tests were added
🧯 Source Impact
This change is additive only.
✅ Checklist
[x] I've added at least one test that validates that my change is working, if appropriate
[x] I've followed the code style of the rest of the project
📒 Description
Added
FlagPole.removeFlagValues(in:)
to be able to remove / clear / reset all of the values in a givenFlagValueSource
. It works by discovering all of the non-nil flag keys inside theFlagValueSource
and then setting it tonil
.📓 Documentation Plan
A separate PR is coming today to uplift the whole documentation site to DocC. The new options will be included then. (Reinstalling swift-doc on my new Mac is harder than I remember)
🗳 Test Plan
Additional tests were added
🧯 Source Impact
This change is additive only.
✅ Checklist