Skip to content
Myr

fix(examples): run filepicker on stdout (versus stderr)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tai Groot · committed by GitHub · parent 913e7e8 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:examples/file-picker/main.go+1 added-1 removed
86 unmodified lines
8788 m := model{89 filepicker: fp,90 }91 tm, _ := tea.NewProgram(&m, tea.WithOutput(os.Stderr)).Run()91 tm, _ := tea.NewProgram(&m).Run()92 mm := tm.(model)93 fmt.Println("\n You selected: " + m.filepicker.Styles.Selected.Render(mm.selectedFile) + "\n")94}