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

[CustomConfiguration]: merging with cli options if provided. #32

Merged
merged 2 commits into from
May 19, 2020

Conversation

gagoar
Copy link
Owner

@gagoar gagoar commented May 19, 2020

when using the library in a project I discovered that having custom configuration (mainly to keep the region and prefix there) prevents alo to use as well the command line options provided (if we don't provide the prefix).

I've added the ability to merge configurations (except prefix) and documented a bit of the behavior so it's more clear.

@codecov
Copy link

codecov bot commented May 19, 2020

Codecov Report

Merging #32 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #32   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           15        15           
  Lines          302       304    +2     
  Branches        50        51    +1     
=========================================
+ Hits           302       304    +2     
Flag Coverage Δ
#unittests 100.00% <100.00%> (ø)
Impacted Files Coverage Δ
src/utils/getGlobalOptions.ts 100.00% <100.00%> (ø)

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 a364e40...1f0b090. Read the comment docs.

@codeclimate
Copy link

codeclimate bot commented May 19, 2020

Code Climate has analyzed commit 1f0b090 and detected 0 issues on this pull request.

View more on Code Climate.

@gagoar gagoar merged commit ffb3dbe into master May 19, 2020
@gagoar gagoar deleted the gg/mergeConfiguration branch May 19, 2020 21:44
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