Skip to content

Use dotenv package to parse environment variables definition files#1802

Merged
DonJayamanne merged 1 commit into
microsoft:masterfrom
DonJayamanne:issue1376DotEnv
Jun 5, 2018
Merged

Use dotenv package to parse environment variables definition files#1802
DonJayamanne merged 1 commit into
microsoft:masterfrom
DonJayamanne:issue1376DotEnv

Conversation

@DonJayamanne
Copy link
Copy Markdown

Fixes #1376

This pull request:

  • Has a title summarizes what is changing
  • Includes a news entry file (remember to thank yourself!)

@codecov
Copy link
Copy Markdown

codecov Bot commented May 31, 2018

Codecov Report

Merging #1802 into master will decrease coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1802      +/-   ##
==========================================
- Coverage    74.1%   74.06%   -0.05%     
==========================================
  Files         282      282              
  Lines       13089    13074      -15     
  Branches     2335     2330       -5     
==========================================
- Hits         9700     9683      -17     
- Misses       3259     3260       +1     
- Partials      130      131       +1
Impacted Files Coverage Δ
src/client/common/variables/environment.ts 97.36% <100%> (+4.91%) ⬆️
src/client/debugger/mainV2.ts 78.71% <0%> (-1.21%) ⬇️
...rc/client/debugger/PythonProcessCallbackHandler.ts 53.61% <0%> (-0.66%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3d5f760...cfb63a6. Read the comment docs.

Copy link
Copy Markdown

@d3r3kk d3r3kk left a comment

Choose a reason for hiding this comment

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

I approve!

resolve(parseEnvironmentVariables(data));
});
});
return dotenv.parse(filePath);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cool! This package - does it deal with multiple encoding then?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

yes and no. We basically need tell it the encoding that needs to be used.

@DonJayamanne DonJayamanne merged commit ff674b8 into microsoft:master Jun 5, 2018
@DonJayamanne DonJayamanne deleted the issue1376DotEnv branch June 20, 2018 03:13
@lock lock Bot locked as resolved and limited conversation to collaborators Jul 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use dotenv to read env variables

2 participants