Skip to content

Commit

Permalink
read stdin and pass it to the child process, getgauge/gauge-ruby#11
Browse files Browse the repository at this point in the history
  • Loading branch information
sriv committed May 18, 2015
1 parent 9847388 commit 16d1f84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/dmotylev/goproperties"
"io"
"io/ioutil"
"log"
Expand All @@ -39,6 +38,8 @@ import (
"strconv"
"strings"
"time"

"github.com/dmotylev/goproperties"
)

const (
Expand Down Expand Up @@ -598,6 +599,7 @@ func prepareCommand(command []string, workingDir string, outputStreamWriter io.W
cmd := GetExecutableCommand(command...)
cmd.Stdout = outputStreamWriter
cmd.Stderr = errorStreamWriter
cmd.Stdin = os.Stdin
return cmd, pwd, nil
}

Expand Down

0 comments on commit 16d1f84

Please sign in to comment.