Flagsmith / Flagsmith/flagsmith-cli

Ensure prompt output consistently uses stderr in raw-TTY mode

Đang mở
#51 0 bình luận 0 reaction 1 người được giao Được @khvn26 nhận Xem trên GitHub
Ngôn ngữ chính
Go
Star
12
Fork
3
Merge trung bình
14 giờ 56 phút
Pull request đã merge (30 ngày)
8

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.