Skip to content

Interactive prompt appears when tty not attached #480

@smlx

Description

@smlx

Describe the bug
Lagoon CLI always prompts interactively to create a config file even when it is not running in an interactive terminal.

To Reproduce
Steps to reproduce the behavior:

  1. rm -f ~/.lagoon.yml
  2. lagoon bash completion > /tmp/completion.sh
  3. Command hangs

Expected behavior
Prompt should not appear unless the terminal is interactive. Also bash completion should not require a config file.

Screenshots
n/a

Desktop (please complete the following information):

  • OS: Debian testing

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions