-
Notifications
You must be signed in to change notification settings - Fork 17
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
Possible to have different configurations #11
Comments
Hi Cristopher, I've indeed been thinking about making it possible in Omniconf to have separate configuration maps. I think it is possible to do so without breaking the backwards compatibility. I'll get back to you as soon as I have something.
Under this usecase, are you envisioning just separate configuration maps where you have to explicitly say which one you are getting values from, or do you have something else in mind? |
Hi Alexander Thanks for your response and thought on this. In my situation, much of the configuration would be the same between subsystems, though details may vary between them. An ideal solution would give just the right room for overlap and differentiation/customization as needed. I haven't thought about this in a while though, so it may take some thinking for me to come back around to what I had in mind. Thanks again! |
Just wanted to chime in that I also really like the general idea behind Omniconf, but only thing that bothers me is that configuration is one mutable singleton. |
@vmarcinko @metasoarous @alexander-yakushev It's just an idea, but it's not backwards-compatible o/ All the tests are passing. |
I really like the idea behind omniconf, and have been wanting something like this that would make it possible to unify configuration from files, env variables, and command line arguments. The one catch is that for my application, I have subcommands/subsystems which run under a shared code base, and need to differentiate how options are processed depending on which subsystem is being activated, but still share most of the configuration. I'm a bit inspired here on the cli args side by the python argparse library, which is splendid. But I realize that this overall idea might be difficult to make compatible with the full functionality of omniconf. Do you see a way this could be made possible?
Thanks in advance
The text was updated successfully, but these errors were encountered: