Skip to content
Merged
Show file tree
Hide file tree
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
43 changes: 0 additions & 43 deletions pkg/api/io.go

This file was deleted.

14 changes: 7 additions & 7 deletions pkg/compose/compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func NewComposeService(dockerCli command.Cli, options ...Option) (api.Compose, e
}

// WithStreams sets custom I/O streams for output and interaction
func WithStreams(out, err api.OutputStream, in api.InputStream) Option {
func WithStreams(out, err io.Writer, in io.Reader) Option {
return func(s *composeService) error {
s.outStream = out
s.errStream = err
Expand All @@ -114,23 +114,23 @@ func WithStreams(out, err api.OutputStream, in api.InputStream) Option {
}

// WithOutputStream sets a custom output stream
func WithOutputStream(out api.OutputStream) Option {
func WithOutputStream(out io.Writer) Option {
return func(s *composeService) error {
s.outStream = out
return nil
}
}

// WithErrorStream sets a custom error stream
func WithErrorStream(err api.OutputStream) Option {
func WithErrorStream(err io.Writer) Option {
return func(s *composeService) error {
s.errStream = err
return nil
}
}

// WithInputStream sets a custom input stream
func WithInputStream(in api.InputStream) Option {
func WithInputStream(in io.Reader) Option {
return func(s *composeService) error {
s.inStream = in
return nil
Expand Down Expand Up @@ -197,9 +197,9 @@ type composeService struct {
prompt Prompt

// Optional overrides for specific components (for SDK users)
outStream api.OutputStream
errStream api.OutputStream
inStream api.InputStream
outStream io.Writer
errStream io.Writer
inStream io.Reader
contextInfo api.ContextInfo
proxyConfig map[string]string

Expand Down