Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions internal/utils/prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"fmt"
"io"
"os"
"strings"

"github.com/charmbracelet/bubbles/list"
Expand Down Expand Up @@ -123,6 +124,8 @@ func PromptChoice(ctx context.Context, title string, items []PromptItem, opts ..
// Create our model
ctx, cancel := context.WithCancel(ctx)
initial := model{cancel: cancel, list: l}
// Interactive prompts should always be written to stderr
opts = append(opts, tea.WithOutput(os.Stderr))
prog := tea.NewProgram(initial, opts...)
state, err := prog.Run()
if err != nil {
Expand Down
Loading