Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a FlatEnvLayer #26

Merged
merged 1 commit into from
Aug 22, 2021
Merged

Added a FlatEnvLayer #26

merged 1 commit into from
Aug 22, 2021

Conversation

sehejss
Copy link

@sehejss sehejss commented Aug 17, 2020

I copied and and configured NewFlatEnvLayerPrefix from NewEnvLayerPrefix to solve the issue of needing an environment variable that corresponds to a configuration that is not hierarchical. For example, if one wanted to use onion to parse fields from a layer that they had implemented, and that filetype was not hierarchical, then the env layer with prefix would not match the configuration file. With this function, the Prefix + Separator will be stripped off of the beginning, but the rest of the name will remain the same.

@fzerorubigd fzerorubigd merged commit 261c6f0 into goraz:develop Aug 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants