Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 40ca4b5

Browse files
committed
Remove passthrough_pipe
1 parent 5cba77d commit 40ca4b5

File tree

3 files changed

+10
-144
lines changed

3 files changed

+10
-144
lines changed

expect/console.go

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,10 @@ import (
3131
// input back on it's tty. Console can also multiplex other sources of input
3232
// and multiplex its output to other writers.
3333
type Console struct {
34-
opts ConsoleOpts
35-
pty pty.Pty
36-
passthroughPipe *PassthroughPipe
37-
runeReader *bufio.Reader
38-
closers []io.Closer
34+
opts ConsoleOpts
35+
pty pty.Pty
36+
runeReader *bufio.Reader
37+
closers []io.Closer
3938
}
4039

4140
// ConsoleOpt allows setting Console options.
@@ -106,18 +105,17 @@ func NewConsole(opts ...ConsoleOpt) (*Console, error) {
106105
closers := []io.Closer{consolePty}
107106
reader := consolePty.Reader()
108107

109-
passthroughPipe, err := NewPassthroughPipe(reader)
108+
/*passthroughPipe, err := NewPassthroughPipe(reader)
110109
if err != nil {
111110
return nil, err
112111
}
113-
closers = append(closers, passthroughPipe)
112+
closers = append(closers, passthroughPipe)*/
114113

115114
console := &Console{
116-
opts: options,
117-
pty: consolePty,
118-
passthroughPipe: passthroughPipe,
119-
runeReader: bufio.NewReaderSize(passthroughPipe, utf8.UTFMax),
120-
closers: closers,
115+
opts: options,
116+
pty: consolePty,
117+
runeReader: bufio.NewReaderSize(reader, utf8.UTFMax),
118+
closers: closers,
121119
}
122120

123121
return console, nil

expect/passthrough_pipe.go

Lines changed: 0 additions & 100 deletions
This file was deleted.

expect/passthrough_pipe_test.go

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)