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

feat(recursive): full recursive support #37

Merged
merged 4 commits into from
Jun 23, 2019
Merged

Conversation

b3ross
Copy link
Owner

@b3ross b3ross commented Jun 22, 2019

Dotenvi now supports recursion. You can specify an expression that returns another expression. For example, if the following environment variables are defined:

  • RECURSIVE_OUTER: ${env:RECURSIVE_MIDDLE}-test
  • RECURSIVE_MIDDLE: foo${env:RECURSIVE_INNER}bar${env:RECURSIVE_INNER}
  • RECURSIVE_INNER: test

If you evaluate ${env:RECURSIVE_OUTER}, it will return footestbartest-test.

@b3ross
Copy link
Owner Author

b3ross commented Jun 22, 2019

@goldcaddy77 can you take a look and let me know if you approve? Need another pair of 👀 on this because I've been away from this code for a while.

@b3ross
Copy link
Owner Author

b3ross commented Jun 22, 2019

Should add a change to README...

@b3ross b3ross changed the title feat(recursive): support for evaluating expressions surrounded by strings feat(recursive): full recursive support Jun 22, 2019
@b3ross b3ross merged commit bfccb6a into master Jun 23, 2019
@b3ross b3ross deleted the feat/recursive-eval branch June 23, 2019 00:32
@b3ross
Copy link
Owner Author

b3ross commented Jun 23, 2019

🎉 This PR is included in version 0.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@goldcaddy77
Copy link
Contributor

Looks good 👍

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.

2 participants