WithStdin sets the stdin for the host command
(stdin io.Reader)
| 20 | |
| 21 | // WithStdin sets the stdin for the host command |
| 22 | func WithStdin(stdin io.Reader) CmdOption { |
| 23 | return func(cmd *exec.Cmd) { |
| 24 | if globalconfig.DdevVerbose { |
| 25 | output.UserOut.Printf("WithStdin: setting custom stdin") |
| 26 | } |
| 27 | cmd.Stdin = stdin |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | // WithEnv sets the environment variables for the host command |
| 32 | func WithEnv(env []string) CmdOption { |
no outgoing calls