mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-21 14:23:34 +00:00
Migrate to containerd 1.54
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
committed by
Alex Ellis
parent
4c9c66812a
commit
2ae8b31ac0
7
vendor/github.com/alexellis/go-execute/pkg/v1/exec.go
generated
vendored
7
vendor/github.com/alexellis/go-execute/pkg/v1/exec.go
generated
vendored
@ -16,6 +16,10 @@ type ExecTask struct {
|
||||
Env []string
|
||||
Cwd string
|
||||
|
||||
// Stdin connect a reader to stdin for the command
|
||||
// being executed.
|
||||
Stdin io.Reader
|
||||
|
||||
// StreamStdio prints stdout and stderr directly to os.Stdout/err as
|
||||
// the command runs.
|
||||
StreamStdio bool
|
||||
@ -86,6 +90,9 @@ func (et ExecTask) Execute() (ExecResult, error) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if et.Stdin != nil {
|
||||
cmd.Stdin = et.Stdin
|
||||
}
|
||||
|
||||
stdoutBuff := bytes.Buffer{}
|
||||
stderrBuff := bytes.Buffer{}
|
||||
|
Reference in New Issue
Block a user