thesimj / envyaml

Simple YAML configuration file parser
MIT License
78 stars 21 forks source link

added EnvYAML(flatten:bool) flag so that flattening can be controlled #29

Closed shaybensasson closed 2 years ago

shaybensasson commented 2 years ago

When using EnvYAML, it could be great if we can decide whether to flatten the config hierarchy or not. When flatten=False, we can update the loaded EnvYAML instance only in one place (using the dictionary [] convention) and not twice (the flatten copied . keys also). I added a unit test also. Version should be bumped.

thesimj commented 2 years ago

hi, thank you for the suggestion. let add this option to config with a default value equals true.