-
Notifications
You must be signed in to change notification settings - Fork 31
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
Handle ambiguous paths #13
Comments
I'm not entirely sure which exact functionality you'd like, but have a look at a recent similar discussion in #12 about the inherent difficulties surrounding issues like this. After reading that, could you explain, perhaps with a complete, concrete example, what you might want Figment to do? |
I have no idea how I missed #12, given it's essentially what I am discussing here. 😄 Give me a few days, I'll have a poke and come back with a coherent example after properly reviewing the codebase and perhaps coming up with a draft PR to demonstrate my thinking (no expectation to merge, don't worry, I just find it easier to explain with functionality sometimes). |
I used double underscores for dot, and it works great. Use the split feature to split on "__" SOME__NESTED__ENV_VAR will them be treated like some.nested.env_var |
@bbqsrc Is it safe to close this out? |
My time for this ended up being consumed by GraphQL horrors, so I think so. The double underscore approach solves my immediate issues in any case. 😄 |
Hey!
Wondering if it would be possible to add support for ambiguous paths. Let's say I want to split by
_
but I also have a nested variable that happens to also include_
.An environment variable of
FOO_A_B_C=hi
doesn't resolve correctly, even though I would expect it to, with the following config:Is this something that is within scope for this project?
The text was updated successfully, but these errors were encountered: