You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I write an app which has code in /opt/app and I would like users to optionally put a config.ini in /etc/app/, there is no way to do it through prettyconf's current discovery strategy.
It would be nice to be able to configure this behavior.
I imagine something like:
The above snippet means that a config variable would be first checked within the environment variables,
if it is not found there, it would look at /etc/app, etc.
What do you think? I'm currently facing this issue and I'm willing to work on this.
The text was updated successfully, but these errors were encountered:
Sounds good to me.
What are your thoughts on having something similar to Directory() called Files() that would look for configuration files with specific names:
CommandLine(...) strategy is very interesting too, maybe it can receive sys.argv or maybe something else after the args parsing has been handled by another library?
If I write an app which has code in
/opt/app
and I would like users to optionally put aconfig.ini
in/etc/app/
, there is no way to do it through prettyconf's current discovery strategy.It would be nice to be able to configure this behavior.
I imagine something like:
The above snippet means that a config variable would be first checked within the environment variables,
if it is not found there, it would look at
/etc/app
, etc.What do you think? I'm currently facing this issue and I'm willing to work on this.
The text was updated successfully, but these errors were encountered: