Flagsmith / Flagsmith/flagsmith-cli
Ensure prompt output consistently uses stderr in raw-TTY mode
Open
- Dominant language
- Go
- Stars
- 12
- Forks
- 3
- Avg merge
- 14h 56m
- Merged PRs (30d)
- 8
Description
Currently, `prompt.run` configures `huh.Form.WithOutput(streams.ErrOut)` only for accessible-mode prompts. In raw-TTY mode, the form uses huh's default TUI output stream, despite the `prompt.IO` documentation stating that prompts go to `ErrOut`.
Use `huh.Form.WithOutput(streams.ErrOut)` unconditionally.
### Backlinks
- Source PR: https://github.com/Flagsmith/flagsmith-cli/pull/43
- Review discussion: https://github.com/Flagsmith/flagsmith-cli/pull/43#discussion_r3666673374
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.