You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+41-38Lines changed: 41 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,26 +24,26 @@ Or
24
24
25
25
Like in the native NodeJS API, the callback is not required in case you wish to work with the returned child stream. The "sshOrNull" and "command" arguments are also facultative because they could be provided respectively as the "ssh" and "command" property of the options object.
26
26
27
-
Valid `options` properties are:
28
-
29
-
-`ssh`
30
-
SSH connection if the command must run remotely
31
-
-`command`
32
-
Command to run unless provided as first argument
33
-
-`cwd`
34
-
Current working directory
35
-
-`end`
36
-
Close the SSH connection on exit, default to true if an ssh connection instance is provided.
37
-
-`env`
38
-
An environment to use for the execution of the command.
39
-
-`pty`
40
-
Set to true to allocate a pseudo-tty with defaults, or an object containing specific pseudo-tty settings. Apply only to SSH remote commands.
41
-
-`cwd`
42
-
Apply only to local commands.
43
-
-`uid`
44
-
Apply only to local commands.
45
-
-`gid`
46
-
Apply only to local commands.
27
+
Valid `options` properties are:
28
+
29
+
-`ssh`
30
+
SSH connection if the command must run remotely
31
+
-`command`
32
+
Command to run unless provided as first argument
33
+
-`cwd`
34
+
Current working directory
35
+
-`end`
36
+
Close the SSH connection on exit, default to true if an ssh connection instance is provided.
37
+
-`env`
38
+
An environment to use for the execution of the command.
39
+
-`pty`
40
+
Set to true to allocate a pseudo-tty with defaults, or an object containing specific pseudo-tty settings. Apply only to SSH remote commands.
41
+
-`cwd`
42
+
Apply only to local commands.
43
+
-`uid`
44
+
Apply only to local commands.
45
+
-`gid`
46
+
Apply only to local commands.
47
47
48
48
See the [ssh2] and [ssh2-connect] modules on how to create a new SSH connection.
49
49
@@ -66,10 +66,10 @@ If the exit code is not `0`, the thrown error object contains the `stdout`, `std
0 commit comments