-
Notifications
You must be signed in to change notification settings - Fork 16
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
Extract an env variable from several possible keys? #40
Comments
@Keksoj This seems to be a very exotic use case! What do you think about this? #[derive(Envconfig)]
struct Config {
#[envconfig(from = ["POSTGRESQL_URL", "POSTGRES_URL"])]
pub postgresql_url: String,
} |
@Keksoj Interalie.. Ĉu vi estas samideano? :D |
I like your idea (samideano!) but your syntax yields this:
Would love for it to work though. (@greyblake kara samlingvano! De terure longa tempo mi ne babilis la lingvon. Mi nostalgias iom ;-) ) |
@greyblake mi ĝojas babili kaj bierumi sed ĉi tie ne plej bonas. Ni provu kontakti unu la alian alimaniere. |
This crate fits all my needs up to a feature I'd like to see:
Because I may need to run a binary that will run with different environments where the env variables may have slightly different names. The level of priority for each of these names could be determined by their order.
The text was updated successfully, but these errors were encountered: