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