Files
poiesis/internal/runtime/options.go
2026-01-28 21:55:20 -05:00

18 lines
280 B
Go

package runtime
import "io"
type RuntimeOption func(*Runtime)
func WithStdout(stdout io.Writer) RuntimeOption {
return func(r *Runtime) {
r.opts.Stdout = stdout
}
}
func WithStderr(stderr io.Writer) RuntimeOption {
return func(r *Runtime) {
r.opts.Stderr = stderr
}
}