ypocat/sshclient — pull request #1 by davestern (2014-02-27 20:17:02+00:00)
Title: Added output from the ssh command to the original opts.session

This is a _very_ simplistic and somewhat unconventional way to
access the SSH output. I avoided extensive changes to callbacks
as a first pass to prevent breaking anything. This is a useful feature
when using streamline as well so we don't have to be concerned
with callbacks.

Each element of the ops.session array will have `ops.session.out`
corresponding to the output of the ssh command. After the commands
are executed via `exec`, the array will look something like this:

```
opts.session= [ { op: 'exec',
command: 'hostname',
out:
{ code: 0,
signal: undefined,
stdout: 'Some output\n',
stderr: '' } },
{ op: 'exec',
command: 'uptime',
out:
{ code: 0,
signal: undefined,
stdout: 'Other output\n',
stderr: '' } } ]
```