So I am implementing FunWithFlags, an amazing lib to have feature flags in an app.
I’d like to write a “boundary” layer, i.e. a module that would wrap the whole logic of feature flags for my app, an be the only source exposed in my app, so that if ever I get rid of FunWithFlags for another solution, all I would have to do is update that boundary layer module.
However, I’d like to have better control over FunWithFlag, and must add its supervisor to my application.ex start/2 function, as the application start behaviour of the FWF doc explains.
Therefore instead of adding
FunWithFlags.Surpervisor, I’d like to add
MyApp.FeatureFlag.Supervisor, which under the hood in my
MyApp.FeatureFlag boundary module, would call
Is this possible? then how?
Hope my explanation is clear, let me know if I have to add any further information!