-
Notifications
You must be signed in to change notification settings - Fork 522
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
Automatic .env file support #526
Comments
Hi @ilog2000 , Therefore you can just put these variables in your .env file and source it before running Hurl.
|
Hi @fabricereix , I understand what you are saying. I tried hurl my-script.hurl without long typing or batch files. |
Hi @ilog2000 Software magic/automatic *.env file detection/parsing always depends on user's specific needs and developers patterns (there is no real IT cross-platform specification) so there are many ways to achieve what you expect:
As hurl philosophy is to keep the code simple, high-performing and explicit, we plan to allow the creation of variables directly inside hurl files, we can also consider using multiple This would allow you to manage all cases:
|
Hi @lepapareil Sorry, my bad, I had to explain the concept of
Practically any programming language has an implementation of this convention:
Stars in corresponding repositories will reflect the popularity of this idea. On the other hand I know at least one very popular piece of software which does not process I am not trying to push hurl authors to accept this my suggestion, the decision is definitely up to them. I am just saying I personally find the idea of automatic |
Hi @ilog2000, I definitively agree with you about the ease of use of I just wanted to point out that there is not specs and even though it looks simple and is developed in several languages, it is not implemented the same way (except the first rule):
Sorry if i may have misspoken, i am not at all trying to push hurl authors not to accept your suggestion 😄, i just wanted to debate the pros and cons. |
There's a sort of spec: https://hexdocs.pm/dotenvy/dotenv-file-format.html |
See also #290 |
It would be good to have automatic
.env
file detection and parsing, whilevariables-file
option and environment variables should work as overrides.The text was updated successfully, but these errors were encountered: