Flagsmith / Flagsmith/flagsmith-cli

Ensure prompt output consistently uses stderr in raw-TTY mode

未关闭
#51 0 条评论 0 个 reaction 已指派 1 人 已被 @khvn26 认领 在 GitHub 查看
主要语言
Go
星标
12
派生
3
平均合并
14 小时 56 分钟
30 天内合并 PR
8

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。