dotenv-org / python-dotenv-vault

Load environment variables from encrypted .env.vault files
https://www.dotenv.org/docs/languages/python
MIT License
28 stars 9 forks source link

Support custom environments #3

Closed motdotla closed 1 year ago

motdotla commented 1 year ago

The logic to check the environment is too strict. Support custom environments (users can customize their environments to whatever names they wish)

See Node.js example: https://github.com/dotenv-org/dotenv-vault-core/blob/master/lib/main.js#L107

Fix here: https://github.com/dotenv-org/python-dotenv-vault/blob/1205fc7142a67e6cfb2949243a5f5b137901d1f2/src/dotenv_vault/vault.py#L44

nsnguyen commented 1 year ago

support custom env like node https://github.com/dotenv-org/python-dotenv-vault/blob/master/src/dotenv_vault/vault.py#L43