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

Add method to update multiple key/values to .env #342

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mwjin
Copy link

@mwjin mwjin commented Jul 7, 2021

update_dict_to_dotenv was implemented to support for updating multiple environment variables at once.
This method is necessary because set_key can update only one environment variable at once.

Feel free to ask any questions or give your opinion. Thanks.

Following things were changed.

  • update_dict_to_dotenv was added to main.py
  • make_env_line was extracted from set_key
  • test_update_dict_to_dotenv was added to test_main.py
  • Update tests/__init__.py to import update_dict_to_dotenv

@mwjin
Copy link
Author

mwjin commented Jul 30, 2021

@theskumar Could you take a look at this PR?

Following things were changed.
* `update_dict_to_dotenv` was added to `main.py`
* `make_env_line` was extracted from `set_key`
* `test_update_dict_to_dotenv` was added to `test_main.py`
@mwjin
Copy link
Author

mwjin commented Aug 12, 2021

I make the commit history clearer.

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

Successfully merging this pull request may close these issues.

1 participant