omniconf icon indicating copy to clipboard operation
omniconf copied to clipboard

Feature request: Ability to add data-readers when reading a configuration file

Open neuromantik33 opened this issue 5 years ago • 1 comments

Hello, I have a perhaps rare but not unheard of usecase where I need to read a configuration file with custom reader macros (like integrant's ig/ref). Therefore I've provided a simple patch which breaks the api somewhat (the depracted quit-on-error? arity) @ here.

Can you tell me if this goes against the philosophy of omniconf as I use the latter as a centralized configuration system-of-record which contains many other types of configurations, some of which make use of reader macros.

Thanks for any feedback,

Nicolas

neuromantik33 avatar Dec 11 '18 12:12 neuromantik33

Hi Nicolas,

I think there is no problem with Omniconf supporting such feature. I would accept this as a PR if you don't mind implementing it non-breakingly, e.g. by introducing a dynamic variable, maybe? You could than mention it in the dosctring.

alexander-yakushev avatar Dec 11 '18 14:12 alexander-yakushev