Interactive prompt appears when tty not attached
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Reproduce the issue with rm -f ~/.lagoon.yml followed by lagoon bash completion > /tmp/completion.sh. Trace the CLI's config-file prompt and bash-completion entry point; done means completion exits without hanging or requiring a config file, while prompts remain limited to interactive terminals.
Written by the indexing model from the issue text.
Description
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:
rm -f ~/.lagoon.ymllagoon bash completion > /tmp/completion.sh- 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
- Dominant language
- Go
- Stars
- 28
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from uselagoon/lagoon-cli
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
uselagoon/lagoon-cli#501 · 1 reaction ·
-
Nix flakeOpen
Difficulty 3/5 1-2 days Newbie friendliness 68/100
uselagoon/lagoon-cli#495 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
uselagoon/lagoon-cli#455 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
uselagoon/lagoon-cli#454 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
uselagoon/lagoon-cli#453 · 4 comments ·
All issues in uselagoon/lagoon-cli
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
slavakurilyak/awesome-ai-agents#1026 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Tarektouati/made#197 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
GetBatchResponseById panics for items without a body (204/302) and for unknown idsPossibly taken @0z5a claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100