Closed tejoha closed 5 years ago
Thank you for your contribution! This indeed sounds like a great feature.
I've been thinking about it for a while and I'm a little bit concerned about adding it as a global setting as on the screenshot above, next to "enable substitution" etc. How do you like an idea of adding it as another "env provider type"? Currently "yaml", ".env" and so on are just datasource "plugins" that work with the extension points that EnvFile plugin exposes on its own. Current interface won't be enough for the functionality provided in this PR but I'd be positive on expanding it sufficiently for this. I could imagine table looking like:
Enabled | Type | Name | Source |
---|---|---|---|
✅ | .env | test.env | File |
✅ | yaml | vars.yaml | File |
✅ | IP | host | MyNetworkAdapterName |
Thanks for your feedback. It sounds a great Idea! I like this! I will realise this (in July/August).
Update: Working on it
This extension allows to set env variables dynamicly to the IP address of a Network Interface of the computer.
How it works?