Flagsmith / Flagsmith/flagsmith-cli

Ensure prompt output consistently uses stderr in raw-TTY mode

Open
#51 0 comments 0 reactions 1 assignee Claimed by @khvn26 View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.