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: Add support for INCLUDE.ENV #66

Merged
merged 1 commit into from
Jan 6, 2023
Merged

feat: Add support for INCLUDE.ENV #66

merged 1 commit into from
Jan 6, 2023

Conversation

TekWizely
Copy link
Owner

Adds support for INCLUDE.ENV

  • Variables are immediately available, as if they had been defined in the same place in the Runfile
  • Variables are not automatically exported, even if the .env file uses the 'export' keyword
  • By default, no errors are generated if .env files are not found

feat: Explicitly make single-file INCLUDE optional

  • Use 'INCLUDE?' to explicitly make single-file includes optional

feat: Explicitly make .env includes required

  • Use 'INCLUDE.ENV!' to explicitly make .env includes required

chore: Adds config.IncludeEnvCycleMap to avoid including the same .env file multiple times

Adds support for INCLUDE.ENV
* Variables are immediately available, as if they had been defined in the same place in the Runfile
* Variables are not automatically exported, even if the .env file uses the 'export' keyword
* By default, no errors are generated if .env files are not found

feat: Explicitly make single-file INCLUDE optional
* Use 'INCLUDE?' to explicitly make single-file includes optional

feat: Explicitly make .env includes required
* Use 'INCLUDE.ENV!' to explicitly make .env includes required

chore: Adds config.IncludeEnvCycleMap to avoid including the same .env file multiple times
@TekWizely TekWizely merged commit b91368c into master Jan 6, 2023
@TekWizely TekWizely deleted the include-env branch January 6, 2023 23:59
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.

1 participant