Skip to content

Conversation

@aymanbagabas
Copy link
Collaborator

@aymanbagabas aymanbagabas commented Mar 2, 2023

Change the default global output.
Add a WithTTY option to assume tty output

Fixes: #105
Fixes: #108

@aymanbagabas aymanbagabas requested a review from muesli March 2, 2023 21:58
@aymanbagabas aymanbagabas changed the title feat(output): set default global output Change default output & add WithTTY option Mar 3, 2023
@muesli
Copy link
Owner

muesli commented Mar 7, 2023

The only thing I still dislike here is that we now have: tty, isTTY, and isTty.

@aymanbagabas
Copy link
Collaborator Author

The only thing I still dislike here is that we now have: tty, isTTY, and isTty.

Yes, this can get confusing :/ What do you suggest we name them instead?

@muesli
Copy link
Owner

muesli commented Mar 8, 2023

Renamed to assumeTTY internally.

@muesli muesli merged commit 7eb5f84 into master Mar 8, 2023
@muesli muesli deleted the default-output branch March 8, 2023 15:53
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.

Allow effectively overriding isTTY for mocking console output

3 participants