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

Fix 180: Add environment variables to Click CLI options #187

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

calizarr
Copy link

@calizarr calizarr commented Aug 13, 2024

This will add environment variables as extra options for the index-url flag. Click will split on whitespace for multiple values by default.

Added a possibly unnecessary test to make sure that flags override environment variables.

Signed-off-by: Cesar Lizarraga [email protected]

Copy link
Collaborator

@pombredanne pombredanne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@calizarr Thanks! Looking good.
Do you mind to add a DCO signoff, at least once in the PR comments? No need to amend your commits

@TG1999 we need to enable the DCO bot here :)

@calizarr
Copy link
Author

I believe I've just rebased and added my signature.

@TG1999
Copy link
Contributor

TG1999 commented Aug 15, 2024

@calizarr not all the commits have the sign-off, neither the PR description have it

@calizarr
Copy link
Author

calizarr commented Aug 15, 2024

Alright, I'll try again. Not entirely sure how to add it to the PR description though

@TG1999
Copy link
Contributor

TG1999 commented Aug 15, 2024

Something like this

Signed-off-by: Name <email>

in the end of PR description

@calizarr calizarr force-pushed the fix-180-env-vars branch 6 times, most recently from fe1df6c to ce07ad6 Compare August 26, 2024 19:10
Signed-off-by: Cesar Lizarraga <[email protected]>
They should be able to use the same ones as the flag.
Signed-off-by: Cesar Lizarraga <[email protected]>
@calizarr
Copy link
Author

calizarr commented Aug 26, 2024

All commits should be signed off now. @pombredanne @TG1999

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.

3 participants