Skip to content

recursively load .env files up to root#36

Open
ghost wants to merge 1 commit intomasterfrom
recurse-upwards
Open

recursively load .env files up to root#36
ghost wants to merge 1 commit intomasterfrom
recurse-upwards

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Feb 4, 2020

Closes #14

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 4, 2020

Codecov Report

❌ Patch coverage is 89.81481% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.41%. Comparing base (a17dd2c) to head (f479118).
⚠️ Report is 7 commits behind head on master.

Files with missing lines Patch % Lines
dotenv/tests/test-dotenv-iter.rs 60.00% 4 Missing ⚠️
dotenv/tests/test-from-filename-iter.rs 60.00% 4 Missing ⚠️
dotenv/src/find.rs 90.47% 2 Missing ⚠️
dotenv/src/iter.rs 93.75% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #36      +/-   ##
==========================================
+ Coverage   77.29%   83.41%   +6.11%     
==========================================
  Files          18       15       -3     
  Lines         740      416     -324     
==========================================
- Hits          572      347     -225     
+ Misses        168       69      -99     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

let iter = dotenv_iter().unwrap();

assert!(env::var("TESTKEY").is_err());
iter.filter_map(Result::ok).any(|(key, value)| key == "TESTKEY" && value == "test_val");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this meant to be an assertion?

@andrewbanchich
Copy link
Copy Markdown

Any updates on this? I'd love to have this feature.

@ghost
Copy link
Copy Markdown
Author

ghost commented Sep 18, 2020

@andrewbanchich Sorry, I've been unable to work on my open source projects for a while. I should be in a place to work on them again in a few weeks.

@andrewbanchich
Copy link
Copy Markdown

Okay, no worries! Thanks for the update.

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.

Recursively load .envs up to root

2 participants