Versions in this module Expand all Collapse all v0 v0.1.1 Dec 8, 2016 v0.1.0 Mar 31, 2016 Changes in this version + var ErrEmptySearch = errors.New("empty search string") — darwin/amd64, js/wasm, linux/amd64 + type ExpectSubprocess struct — darwin/amd64, js/wasm, linux/amd64 + Cmd *exec.Cmd + func Command(command string) (*ExpectSubprocess, error) + func Spawn(command string) (*ExpectSubprocess, error) + func SpawnAtDirectory(command string, directory string) (*ExpectSubprocess, error) + func (expect *ExpectSubprocess) AsyncInteractChannels() (send chan string, receive chan string) + func (expect *ExpectSubprocess) Capture() + func (expect *ExpectSubprocess) Close() error + func (expect *ExpectSubprocess) Collect() []byte + func (expect *ExpectSubprocess) Expect(searchString string) (e error) + func (expect *ExpectSubprocess) ExpectRegex(regex string) (bool, error) + func (expect *ExpectSubprocess) ExpectRegexFind(regex string) ([]string, error) + func (expect *ExpectSubprocess) ExpectRegexFindWithOutput(regex string) ([]string, string, error) + func (expect *ExpectSubprocess) ExpectTimeout(searchString string, timeout time.Duration) (e error) + func (expect *ExpectSubprocess) ExpectTimeoutRegexFind(regex string, timeout time.Duration) ([]string, error) + func (expect *ExpectSubprocess) ExpectTimeoutRegexFindWithOutput(regex string, timeout time.Duration) ([]string, string, error) + func (expect *ExpectSubprocess) Interact() + func (expect *ExpectSubprocess) ReadLine() (string, error) + func (expect *ExpectSubprocess) ReadUntil(delim byte) ([]byte, error) + func (expect *ExpectSubprocess) Send(command string) error + func (expect *ExpectSubprocess) SendLine(command string) error + func (expect *ExpectSubprocess) Start() error + func (expect *ExpectSubprocess) Wait() error