cli
cli copied to clipboard
[Bug]: CLI fails if you try to use it when a TTY is not available
Contact Details
No response
What happened?
The CLI displays a spinner in some places, but this will fail with an error if a TTY is not present. We fixed this in one place in https://github.com/buildkite/cli/pull/409, but there are many other places where the standard spinner.New() is still being called. We should replace all those with SpinWhile, or perhaps consider discarding the spinner entirely. At any rate, there shouldn't be a hard requirement on a TTY.
Version
3.8.0
What environment are you seeing the problem on?
Local Development
Relevant log output
Trying to run bk build new
Aborted: user aborted: huh: could not open a new TTY: open /dev/tty: no such device or address (confirmation canceled (during: bk))