-
Notifications
You must be signed in to change notification settings - Fork 85
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
[eas-cli] diagnostics: add loader and progress information #2378
Conversation
Size Change: +1.43 kB (0%) Total Size: 51.3 MB
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2378 +/- ##
==========================================
- Coverage 53.55% 53.55% -0.00%
==========================================
Files 530 530
Lines 19513 19517 +4
Branches 4135 4135
==========================================
+ Hits 10449 10451 +2
- Misses 8332 8334 +2
Partials 732 732 ☔ View full report in Codecov by Sentry. |
/changelog-entry chore Add loader and progress information to |
✅ Thank you for adding the changelog entry! |
const spinner = ora().start(`Gathering diagnostic information...`); | ||
const info = await envinfo.run( | ||
{ | ||
System: ['OS', 'Shell'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should try / catch
it and call spinner.failed
when there is an error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK envinfo
always "succeedes" and only prints error messages instead of throwing on read failures.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome
Why
Let's give users an information that something is happening when
diagnostics
take a while to gather data.How
Add Ora spinner with simple process progress information + small formatting tweaks.
Test Plan
The changes have been tested locally.
Preview
Kapture.2024-05-13.at.13.29.27.mp4