Documentation ¶
Index ¶
- type PTY
- func (p *PTY) Attach(inv *clibase.Invocation) *PTY
- func (p *PTY) Close() error
- func (p *PTY) ExpectMatch(str string) string
- func (p *PTY) ExpectMatchContext(ctx context.Context, str string) string
- func (p *PTY) Peek(ctx context.Context, n int) []byte
- func (p *PTY) ReadLine(ctx context.Context) string
- func (p *PTY) ReadRune(ctx context.Context) rune
- func (p *PTY) Write(r rune)
- func (p *PTY) WriteLine(str string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PTY ¶
func Start ¶
Start starts a new process asynchronously and returns a PTY and Process. It kills the process upon cleanup.
func (*PTY) ExpectMatch ¶
func (*PTY) ExpectMatchContext ¶ added in v0.15.0
TODO(mafredri): Rename this to ExpectMatch when refactoring.
Click to show internal directories.
Click to hide internal directories.