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: exports env on context #12

Merged
merged 2 commits into from
Jun 3, 2017
Merged

feat: exports env on context #12

merged 2 commits into from
Jun 3, 2017

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Jun 3, 2017

No description provided.

@mention-bot
Copy link

@fengmk2, thanks for your PR! By analyzing the history of the files in this pull request, we identified @popomore and @atian25 to be potential reviewers.

@codecov
Copy link

codecov bot commented Jun 3, 2017

Codecov Report

Merging #12 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #12      +/-   ##
=======================================
+ Coverage   96.98%   97%   +0.01%     
=======================================
  Files           3     3              
  Lines         166   167       +1     
=======================================
+ Hits          161   162       +1     
  Misses          5     5
Impacted Files Coverage Δ
lib/command.js 100% <100%> (ø) ⬆️

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 da0dfda...05de809. Read the comment docs.

@@ -131,6 +133,7 @@ class CommonBin {
* @protected
*/
errorHandler(err) {
console.error(chalk.red(`⚠️ ${err.name}: ${err.message}`));
Copy link
Member Author

Choose a reason for hiding this comment

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

@popomore 还是需要打印一下 error name 和 message 的,要不然连 yargs 参数检验失败都看不出来。

Copy link
Member Author

Choose a reason for hiding this comment

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

image

Copy link
Member

Choose a reason for hiding this comment

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

@fengmk2 fengmk2 merged commit 17b30fa into master Jun 3, 2017
@fengmk2 fengmk2 deleted the contexnt.env branch June 3, 2017 16:37
@fengmk2
Copy link
Member Author

fengmk2 commented Jun 3, 2017

2.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants