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

Environment Variable support? #109

Closed
rwaweber opened this issue Aug 24, 2021 · 4 comments
Closed

Environment Variable support? #109

rwaweber opened this issue Aug 24, 2021 · 4 comments

Comments

@rwaweber
Copy link

Thanks for building this!

Would you be open to a contribution expanding support for the username, password and url arguments as environment variables?
For our use case, it would simplify using mark in a continuous integration context.

Unfortunately it looks like docopt.go doesn't seem to support environment variables in its configuration: docopt/docopt.go#48

A cursory pass at the code looks like this might be a good spot for some of the os.Getenv calls.

@kovetskiy
Copy link
Owner

hi, it's actually implemented already, not documented tho
https://github.com/kovetskiy/mark/blob/master/config.go#L10-L12

@mrueg
Copy link
Collaborator

mrueg commented Aug 10, 2023

Environment variables are supported now.

@mrueg mrueg closed this as completed Aug 10, 2023
@djpbessems
Copy link

Is there documentation on how to use Environment variables?

@mrueg
Copy link
Collaborator

mrueg commented Aug 16, 2023

https://github.com/kovetskiy/mark#usage see the variables in the brackets

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

4 participants