-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Parse environment variable replacement tokens in .snag.yml #42
Comments
I think exporting variables in the shell that snag is running in or passing variables directly to snag might be a better approach than having environment variables in the Have you tried doing something like:
|
@zabawaba99 if that works then that'd be sweet. Does spawning off a new process to handle the request take the global env vars or would it include the one defined when calling the snag command. |
I've used the snippet that I posted before. If I remember correctly, the |
@robertoandrade does that work for you or do you still see value in allowing env vars in the snag file? |
well, say I wanted to pass a parameter to one of the commands... that was available as an env variable... say: For me to be able to pre-set the env variables and have them be picked up by Your suggestion works well for PATH, but I don't think it addresses the other use cases. |
@robertoandrade I think I understand your use case a bit better now. @zabawaba99 let's chat and think of possible ways to approach this or if you already have thoughts on how to solve this let me know. I'd be happy to see a PR for this. |
I see the issue now, using |
Do you guys think there's value in using environment variables replacement tokens inside
.snag.yml
so I can have the paths to scripts be configurable per user environment?Is there any other way you would rather have this be passed to snag so it knows where to look for the files other than adding them to the PATH?
The text was updated successfully, but these errors were encountered: