Skip to content

Conversation

@xandris
Copy link
Contributor

@xandris xandris commented Mar 17, 2020

Uses yargs to parse options and implements the flags at the helpers level. Exposes per-country stats to the CLI. --color is defined in yargs, but chalk supports it natively. Country code normalization is shuffled around to avoid repeating it in the CLI and webapp code.

Copy link
Owner

@sagarkarira sagarkarira left a comment

Choose a reason for hiding this comment

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

Wow, thanks @xandris. I will review and merge this as soon as I wake up. 😃

@xandris
Copy link
Contributor Author

xandris commented Mar 18, 2020

Glad to help! Feel free to change anything or ask me to; I realize this is a lot of merge request to drop unbidden lol

@sagarkarira sagarkarira merged commit 5bb10fb into sagarkarira:master Mar 18, 2020
@sagarkarira
Copy link
Owner

@xandris I made some formatting changes. I've merged the PR and I've published to npm. You can check it out.
Thanks for the PR.

@xandris
Copy link
Contributor Author

xandris commented Mar 18, 2020

Nice! Love the yargs colors :) I think the .command() description is missing a word though :x

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.

2 participants