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

Change default output & add WithTTY option #117

Merged
merged 2 commits into from
Mar 8, 2023
Merged

Change default output & add WithTTY option #117

merged 2 commits into from
Mar 8, 2023

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
output.go Outdated Show resolved Hide resolved
@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
2 participants