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

CLI: Seclude version output functionality out of CLI class #8741

Merged
merged 1 commit into from Jan 11, 2021

Conversation

medikoo
Copy link
Contributor

@medikoo medikoo commented Jan 11, 2021

Addresses 1.0 from #8364

@codecov
Copy link

codecov bot commented Jan 11, 2021

Codecov Report

Merging #8741 (6a091e3) into master (b4fef7d) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #8741   +/-   ##
=======================================
  Coverage   87.43%   87.44%           
=======================================
  Files         256      257    +1     
  Lines        9631     9630    -1     
=======================================
  Hits         8421     8421           
+ Misses       1210     1209    -1     
Impacted Files Coverage Δ
lib/classes/CLI.js 92.81% <ø> (-0.22%) ⬇️
lib/cli/eventually-list-version.js 100.00% <100.00%> (ø)

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 b4fef7d...6a091e3. Read the comment docs.

@medikoo medikoo requested a review from pgrzesik January 11, 2021 12:14
Copy link
Contributor

@pgrzesik pgrzesik left a comment

Choose a reason for hiding this comment

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

One note about node version check, otherwise it looks good 👍


const userNodeVersion = Number(process.version.split('.')[0].slice(1));
// only show components version if user is running Node 8+
if (userNodeVersion >= 8) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this check is redundant as we require node>=10 now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good find, thanks for pointing!

Copy link
Contributor

@pgrzesik pgrzesik left a comment

Choose a reason for hiding this comment

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

👍

@medikoo medikoo merged commit b61621a into master Jan 11, 2021
@medikoo medikoo deleted the 0108-cli-version branch January 11, 2021 14:57
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.

None yet

2 participants