Skip to content
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

allow specifying environment variable types other than string #7

Open
brendanlensink opened this issue Mar 16, 2023 · 1 comment
Open

Comments

@brendanlensink
Copy link
Collaborator

No description provided.

@brendanlensink
Copy link
Collaborator Author

I'm not really sure if there's a good way to do this - I don't love the idea of having to include some kind of type information in the .env files, I kind of like how clean they are as just KEY=VALUE and worry it might end up snowballing into a nightmare to parse things.

I think adding some kind of automatic unwrapper that naively guesses what type the key should be might be more annoying than helpful if it's ever wrong, so maybe the 'official' suggestion is just to add an extension to your Environment object that unwraps to the correct type :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant