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): apply optimizations #574

Merged
merged 1 commit into from
Apr 25, 2022
Merged

refactor(cli): apply optimizations #574

merged 1 commit into from
Apr 25, 2022

Conversation

VoltrexKeyva
Copy link
Member

• List the available types by a ListFormat formatter.
• Replace unnecessary conditional check.
• Use switch statement for better readablity and performance.
• Avoid casting strings to strings.

@codecov
Copy link

codecov bot commented Oct 26, 2021

Codecov Report

Merging #574 (7d6ba21) into main (44c6fc8) will decrease coverage by 0.16%.
The diff coverage is 41.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #574      +/-   ##
==========================================
- Coverage   82.57%   82.41%   -0.17%     
==========================================
  Files          35       35              
  Lines        1750     1751       +1     
==========================================
- Hits         1445     1443       -2     
- Misses        305      308       +3     
Impacted Files Coverage Δ
lib/cli.js 84.72% <41.66%> (-4.02%) ⬇️

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 44c6fc8...7d6ba21. Read the comment docs.

@VoltrexKeyva VoltrexKeyva changed the title cli: refactor CLI refactor(cli): apply optimizations Oct 26, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
• List the available types by a `ListFormat` formatter.
• Replace unnecessary conditional check.
• Use switch statement for better readablity and performance.
• Avoid casting strings to strings.
@targos targos merged commit 192228b into nodejs:main Apr 25, 2022
@VoltrexKeyva VoltrexKeyva deleted the refactor-cli branch June 20, 2022 13:09
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.

None yet

3 participants