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

Feature request/question: fix missing keys from comparison #728

Open
stephwestgarth opened this issue Nov 21, 2023 · 1 comment
Open

Feature request/question: fix missing keys from comparison #728

stephwestgarth opened this issue Nov 21, 2023 · 1 comment
Labels
discussion Discussion of something

Comments

@stephwestgarth
Copy link

Hi there!

I'm looking for a tool that can copy missing keys from one .env file to another (we have a generic template .env file in our codebase and then a not committed .env file in everyone's dev environment with the actual values in them). I'd love if this tool could see keys from the template file (let's call it .env.template) and if it doesn't exist, copy it to the local .env file. I can see in the docs the keys can be identified but not "fixed" (copied over), and I think that ability would be amazing. Thanks!

@mgrachev
Copy link
Member

mgrachev commented Jan 6, 2024

@stephwestgarth Hi 👋

Thank you for the idea. We'll think about it. Maybe we'll add something like this:

$ dotenv-linter compare --fix

@dotenv-linter/core What do you think about this?

@mgrachev mgrachev added the discussion Discussion of something label Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Discussion of something
Development

No branches or pull requests

2 participants