Skip to content

[Bug]: CLI fails if you try to use it when a TTY is not available #496

Description

@omehegan

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 #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))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions