oscope-dev / scope

Scoping user machines
https://oscope-dev.github.io/scope/
BSD 3-Clause "New" or "Revised" License
6 stars 3 forks source link

Overhaul doctor run output to focus on user experience #49

Open technicalpickles opened 9 months ago

technicalpickles commented 9 months ago

I think I have worked with enough scope scripts + configs to get a decent feel for it. I'd like to take some time to figure out what the idea output users see when they are running this command. I think the current view is very log-centric as in tracking what happened, which makes sense considering it's using the tracing library.

Here's what output looks like now:

CleanShot 2024-02-02 at 16 30 54

technicalpickles commented 9 months ago

I was playing around with TextEdit, and coloring the output. Thinking about something more like:

CleanShot 2024-02-02 at 16 32 51

It does imply a few changes:

I'm not as solid on that last summary line. Like if something is successfully fixed, do you list it as fixed AND successful? Maybe not as useful.

The text for reference
Checking `Homebrew`... OK
Checking `~/.gusto/init.sh`... OK
Checking `rbenv`... OK
Checking `GitHub CLI`... OK
Checking `GitHub SSH Authentication`... OK
Checking `AWS SSO`... PROBLEM
Trying to fix `AWS SSO`...

Signing in... keep an eye out for the browser window
Attempting to automatically open the SSO authorization page in your default browser.
If the browser does not open or you wish to use a different device to authorize this request, open the following URL:

https://device.sso.us-west-2.amazonaws.com/

Then enter the code:

ABCD-EFG
Successfully logged into Start URL: https://gusto.awsapps.com/start

Rechecking `AWS SSO`... OK

--------------------------
Summary: 1 FIXED, 7 OK