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

Make CLI wrapper install quieter #1177

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

scotttrinh
Copy link
Collaborator

@scotttrinh scotttrinh commented Jan 17, 2025

  1. Do not prompt for confirmation when installing the CLI, even for TTYs
  2. More gracefully handle errors from the CLI. stderr is already being
    piped to the parent process, so no need to log errors so loudly.

1. Do not prompt for confirmation when installing the CLI, even for TTYs
2. More gracefully handle errors from the CLI. `stderr` is already being
   piped to the parent process, so no need to log errors so loudly.
Use the `Result` type to gracefully handle errors from the CLI.
@scotttrinh scotttrinh requested a review from jaclarke January 17, 2025 02:19
error: Error & SpawnSyncReturns<string | Buffer>;
}

type Result = Ok | Err;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I could've made this generic, but... Yeah, maybe let me make this generic 🙈

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.

1 participant