Comments (5)
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
from figment.
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?
from figment.
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).
from figment.
@bbqsrc Is it safe to close this out?
from figment.
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. 😄
from figment.
Related Issues (20)
- Reading single line from file HOT 5
- Unable to prioritise clap arguments over environment variables HOT 2
- How to handle replacement of single config entries inside a nested configuration? HOT 2
- Option to append vectors instead of replacing them. HOT 12
- Feature - set config values by path HOT 4
- Strange behavior with figment.join HOT 1
- Question: Iterator over values and best practices for modification of config HOT 2
- Question: How can I load string vectors from the environment? HOT 2
- Improve clap support recipes HOT 5
- Defaults for list of nested objects HOT 2
- Default value not being loaded HOT 4
- `Env` provider deserializes into unsigned int by force HOT 2
- Get names of expected environment variables HOT 1
- INI format support HOT 3
- Expose coalesce module HOT 3
- kebab-case environment variable fails to be used HOT 5
- Question: Serialize the profile name when extracting HOT 5
- Pattern for mixing required fields and optional fields with defaults HOT 3
- There's no way to unset an `Option` field from env variables HOT 2
- Support FromStr/Display serialization and deserialization HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from figment.