Skip to content

Commit

Permalink
fix: run spinner on stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed Aug 4, 2022
1 parent 131ae3b commit 4e61c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spin/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (o Options) Run() error {
title: o.TitleStyle.ToLipgloss().Render(o.Title),
command: o.Command,
}
p := tea.NewProgram(m)
p := tea.NewProgram(m, tea.WithOutput(os.Stderr))
mm, err := p.StartReturningModel()
m = mm.(model)

Expand Down

0 comments on commit 4e61c12

Please sign in to comment.