mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
WithOutput option should take io.Writer as argument.
This commit is contained in:
committed by
Christian Muehlhaeuser
parent
65e8067a82
commit
ac36017f86
2
tea.go
2
tea.go
@@ -73,7 +73,7 @@ type ProgramOption func(*Program)
|
||||
|
||||
// WithOutput sets the output which, by default, is stdout. In most cases you
|
||||
// won't need to use this.
|
||||
func WithOutput(output *os.File) ProgramOption {
|
||||
func WithOutput(output io.Writer) ProgramOption {
|
||||
return func(m *Program) {
|
||||
m.output = output
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user