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

Refactor CLI options definition #4530

Merged
merged 4 commits into from Jan 11, 2020
Merged

Conversation

ybiquitous
Copy link
Member

@ybiquitous ybiquitous commented Jan 9, 2020

This aims to prepare for type-checking cli.js and does NOT type-check actually (I will do it on another PR).

  • Camelize option names for type-checking.
  • Add missing type for some options.
  • Sort options alphabetically for readability.
  • Add a unit test for the definition (A system test is too much for this purpose).

See #4504 (comment) for details.

This aims to prepare for type-checking `cli.js` and does NOT type-check actually.

- Camelize option names for type-checking.
- Add missing `type` for some options.
- Sort options alphabetically for readability.
- Add a unit test for the definition (A system test is too much for this purpose).

See <#4504 (comment)> for details.
},
'no-color': {
Copy link
Member Author

@ybiquitous ybiquitous Jan 9, 2020

Choose a reason for hiding this comment

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

no-color is unneeded so removed (color is enough).
See the test.

@ybiquitous ybiquitous marked this pull request as ready for review January 9, 2020 13:26
lib/__tests__/cli.test.js Show resolved Hide resolved
lib/cli.js Show resolved Hide resolved
lib/cli.js Outdated Show resolved Hide resolved
@hudochenkov hudochenkov mentioned this pull request Jan 10, 2020
7 tasks
@hudochenkov hudochenkov merged commit eaee6a4 into master Jan 11, 2020
@hudochenkov hudochenkov deleted the refactor-cli-options-definition branch January 11, 2020 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants