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 output can not be piped #453

Closed
Ajnasz opened this issue Nov 21, 2023 · 10 comments
Closed

spin output can not be piped #453

Ajnasz opened this issue Nov 21, 2023 · 10 comments

Comments

@Ajnasz
Copy link

Ajnasz commented Nov 21, 2023

Describe the bug
I can not pipe the output of the spin command to file or another command

To Reproduce
Steps to reproduce the behavior:

  1. Execute a command with gum spin --show-output and redirect the output to a file, for example: gum spin --show-output -- ls -l > files
  2. Check the content of the file cat files will be empty

Expected behavior
Be able to redirect the output of the command to a file

Desktop (please complete the following information):

  • OS: Debian Linux
  • Version: dd557ba

Additional context
If I remove the isTTY check from the spin command.go, it works as I expect

I'm happy to open a pull request if it's a suitable fix

@piero-vic
Copy link
Contributor

Hi @Ajnasz. The changes on #405 will fix this.

@pulberg
Copy link

pulberg commented Dec 3, 2023

Looks like this didn't make it into v0.12.0 as I still get the same behavior.

@Tschimmy
Copy link

Tschimmy commented Dec 7, 2023

Yes, the problem exists in version 0.12.0 for me as well.

@joshmedeski
Copy link

Yes, I can confirm it does not work on v0.12.0 for me either.

@maaslalani
Copy link
Contributor

@joshmedeski, are you able to try out gum on the latest main?

go install github.com/charmbracelet/gum@main

@joshmedeski
Copy link

It's working on gum version v0.12.1-0.20231207115433-c9afacc74b4b, thanks!

@willian
Copy link

willian commented Dec 8, 2023

Yeah, same issue on 0.12.0 here, installed with Homebrew.

@willian
Copy link

willian commented Dec 12, 2023

Any plans to release v0.12.1 soon?

@maaslalani
Copy link
Contributor

We just released v0.13.0!

@willian
Copy link

willian commented Dec 13, 2023

Thanks!

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

No branches or pull requests

7 participants