-
-
Notifications
You must be signed in to change notification settings - Fork 302
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
Support setting flags globally and locally using cosmiconfig
#354
Support setting flags globally and locally using cosmiconfig
#354
Conversation
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, do we need to document it somewhere?
This should be documented in the readme, in its own section. |
@sindresorhus I addressed #279 (comment) in 67fb219. |
The code looks good, but haven't tested it yet. Can you add the docs? |
I think we should allow |
Sure
Done |
We could really use some tests for this. |
I'm not really sure how this should be tested. For local configs, I guess we could create some fixtures to test out the behavior, but I have no idea how to mock |
I just feel like we add more and more functionality and we have basically no tests. |
It bothers me as well. I think that this could be improved by:
I'll also try to work on adding more tests (and add tests here as well). |
@sindresorhus Also see #354 (comment). |
👍 Would you be up for doing that?
Yup. Can do. |
Can you open an issue or follow-up PR about that? |
Manually tested this and works well. |
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
Sure (will probably get it done in the next few days).
👌🏻 |
@sindresorhus It would be great if you could reward me on IssueHunt for this and #334 🙃 |
Also, it seems like this breaks using Edit: I also get a triple increment when using |
Fixes #279.
// cc @voxpelli Let me know what you think and if you have any suggestions on how to improve this.