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

Accept env variables for pip-inspired options #186

Merged
merged 1 commit into from Jul 22, 2015

Conversation

Projects
None yet
2 participants
@pquentin
Contributor

pquentin commented Jul 22, 2015

pip allows passing options as environment variables [0]. pip-tools has
three pip-inspired options: passing envvar to @click.option allows to
accept those environment variables too. click also supports
auto_envvar_prefrix [1], but this would apply to all options, not only
pip-inspired options.

[0] https://pip.pypa.io/en/stable/user_guide.html#environment-variables
[1] http://click.pocoo.org/4/options/#values-from-environment-variables

Accept env variables for pip-inspired options
pip allows passing options as environment variables [0]. pip-tools has
three pip-inspired options: passing envvar to `@click.option` allows to
accept those environment variables too. click also supports
`auto_envvar_prefrix` [1], but this would apply to all options, not only
pip-inspired options.

[0] https://pip.pypa.io/en/stable/user_guide.html#environment-variables
[1] http://click.pocoo.org/4/options/#values-from-environment-variables
@nvie

This comment has been minimized.

Show comment
Hide comment
@nvie

nvie Jul 22, 2015

Member

Great, thanks!

Member

nvie commented Jul 22, 2015

Great, thanks!

nvie added a commit that referenced this pull request Jul 22, 2015

Merge pull request #186 from pquentin/master
Accept env variables for pip-inspired options

@nvie nvie merged commit 189d11d into jazzband:master Jul 22, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment