From 7d44d09b51291334c67311cf81babad094674597 Mon Sep 17 00:00:00 2001 From: Stefan Konschak Date: Tue, 20 Aug 2019 15:36:43 +0200 Subject: [PATCH] made cmd publicly available --- expect.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/expect.go b/expect.go index f675ea8..259f885 100644 --- a/expect.go +++ b/expect.go @@ -545,6 +545,7 @@ type GExpect struct { pty *term.PTY // cmd contains the cmd information for the spawned process. cmd *exec.Cmd + Cmd *exec.Cmd ssh *ssh.Session // snd is the channel used by the Send command to send data into the spawned command. snd chan string @@ -933,6 +934,7 @@ func SpawnWithArgs(command []string, timeout time.Duration, opts ...Option) (*GE rcv: make(chan struct{}), snd: make(chan string), cmd: cmd, + Cmd: cmd, timeout: timeout, chkDuration: checkDuration, pty: pty,