Skip to content

Commit

Permalink
made cmd publicly available
Browse files Browse the repository at this point in the history
  • Loading branch information
p3ls committed Aug 20, 2019
1 parent c416f18 commit 7d44d09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions expect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7d44d09

Please sign in to comment.