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

--strict mode for all variables #109

Closed
kekbait opened this issue Apr 18, 2020 · 6 comments
Closed

--strict mode for all variables #109

kekbait opened this issue Apr 18, 2020 · 6 comments

Comments

@kekbait
Copy link

kekbait commented Apr 18, 2020

Hello, first of all, thank you for all your great work, this utility clearly made my life easier :)

Is there any way to use the --strict flag so it applies to all the env variables from the template?

@sobolevn
Copy link
Member

Nope, but this is a great idea!

Do you want to implement this feature?

@micheledicosmo
Copy link

--strict-source seems not to be available in the 1.2.0 on PyPi:

(.venv) PS C:\Users\michdi\code> dump-env -s template.env --strict-source

usage: dump-env [-h] [-p PREFIX] [-t TEMPLATE] [--strict STRICT]
dump-env: error: unrecognized arguments: -s template.env --strict-source
(.venv) PS C:\Users\michdi\code> dump-env --help

usage: dump-env [-h] [-p PREFIX] [-t TEMPLATE] [--strict STRICT] 

optional arguments:
  -h, --help            show this help message and exit
  -p PREFIX, --prefix PREFIX
                        Adds prefix
  -t TEMPLATE, --template TEMPLATE
                        Adds template path
  --strict STRICT       Strict variables should exists in os envs

@sobolevn
Copy link
Member

sobolevn commented Apr 12, 2021

I will release 1.3.0 in a moment 🙂

@micheledicosmo
Copy link

Amazing

@sobolevn
Copy link
Member

Here we go: https://github.com/wemake-services/dump-env/releases/tag/1.3.0
PyPI package is also available! 👍

@micheledicosmo
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants