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

spin: fix isTTY check #404

Merged
merged 1 commit into from
Jul 28, 2023
Merged

spin: fix isTTY check #404

merged 1 commit into from
Jul 28, 2023

Conversation

gregkh
Copy link
Contributor

@gregkh gregkh commented Jul 27, 2023

The isTTY check is inverted in the --show-output option for spin, so no output is shown anymore. Fix this by correctly checking if we are a tty or not.

The isTTY check is inverted in the --show-output option for spin, so no
output is shown anymore.  Fix this by correctly checking if we are a tty
or not.
@maaslalani
Copy link
Contributor

Thank you so much!

@maaslalani maaslalani merged commit a63ea30 into charmbracelet:main Jul 28, 2023
6 checks passed
@hopefulTex
Copy link
Contributor

This check is meant for when the output is being piped to another program, as the spin ui uses stderr if it's in a TTY.
The output fails to display because the --show-output flag is not passed to the program model as of patch #385

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.

3 participants