Skip to content

Commit

Permalink
fix(spinner): set stdin and stderr
Browse files Browse the repository at this point in the history
fixes #266

Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Dec 10, 2024
1 parent c25be3c commit afb6111
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spin/spin.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ func commandStart(command []string) tea.Cmd {
executing.Stderr = io.MultiWriter(&bothbuf, &errbuf)
} else {
executing.Stdout = os.Stdout
executing.Stderr = os.Stderr
}
executing.Stdin = os.Stdin
_ = executing.Run()
status := executing.ProcessState.ExitCode()
if status == -1 {
Expand Down

0 comments on commit afb6111

Please sign in to comment.