Figment icon indicating copy to clipboard operation
Figment copied to clipboard

Add custom parser support to Env provider

Open felipou opened this issue 1 year ago • 3 comments

Add the Env::parser function to setup a custom parser for environment variable values, allowing the usage of other formats like JSON or YAML.

felipou avatar Sep 04 '24 13:09 felipou

@SergioBenitez I would use this if it was available in a release. I was just wondering how to pass arrays of values through environment variables.

calavera avatar Dec 10 '24 21:12 calavera

Any plans to merge this @SergioBenitez ? In dire need of it as well

joaopcm1996 avatar Dec 12 '24 20:12 joaopcm1996

The test needed a cfg(gate) but otherwise looks fine

Merged on figment2 fork:

  • https://github.com/lmmx/figment2/pull/5

lmmx avatar Dec 03 '25 17:12 lmmx