dotenv-cli
dotenv-cli copied to clipboard
Add --override flag to override any existing environment variables
Any update for this PR?
The problem is that --override
doesn't really work well together with multiple env files. I think it makes more sense to add a flag to ignore a specific env variable already set. Because all other use cases can be achieved already AFAIK.
It seems some people also want this flag for the wrong reasons (reverting the order of files, while you can just pass -e
in the reverse order as well to achieve this)
@entropitor in my case I need to override an environment variable given to a pod (for example overriding the default connection string for test purposes). any chance we can merge this PR?
@IdanDavidi This PR is broken as you can see here https://github.com/entropitor/dotenv-cli/pull/63#discussion_r788541172.
I think something like https://github.com/entropitor/dotenv-cli/pull/63#issuecomment-1100945178 could work but nobody seems to be willing to put the work in so I don't think it's happening.