unsignedapps / Vexil

Vexil (named for Vexillology) is a Swift package for managing feature flags (also called feature toggles) in a flexible, multi-provider way.
https://vexil.unsignedapps.com
MIT License
114 stars 11 forks source link

Added support for removing/resetting all flag values in a given `FlagValueSource` #80

Closed bok- closed 3 years ago

bok- commented 3 years ago

📒 Description

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