Gexpect is a pure golang expect-like module. It provides the following
functions for simpler creation and control of other terminal applications:
.
- ReadLine, ReadUntil and SendLine send strings from/to stdout/stdin
- Wait and Close allow for graceful and ungraceful termination.
- AsyncInteractChannels spawns two go routines to pipe into and from
stdout/stdin, allowing for some usecases to be a little simpler.
- ExpectRegex uses golang's internal regex engine to wait until a match from
the process with the given regular expression (or an error on process
termination with no match)
- ExpectRegexFind allows for groups to be extracted from process stdout.
Installed Size: 32.8 kB
Architectures: all