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: vendor/gomodules.xyz/go-sh/README.md
+43
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ These are some of its features:
25
25
* pipe command
26
26
* shell build-in commands echo & test
27
27
* timeout support
28
+
* run multiple concurrent leaf commands using a single pipe input
28
29
29
30
Examples are important:
30
31
@@ -80,6 +81,48 @@ By default, pipeline returns error only if the last command exit with a non-zero
80
81
81
82
By default, pipelines's std-error is set to last command's std-error. However, you can also combine std-errors of all commands into pipeline's std-error using `session.PipeStdErrors = true`.
82
83
84
+
By default, pipeline returns error only if the last command exit with a non-zero status. However, you can also enable `pipefail` option like `bash`. In that case, pipeline returns error if any of the commands fail and for multiple failed commands, it returns the error of rightmost failed command.
0 commit comments