4 . "github.com/tendermint/tmlibs/common"
7 // Runs a command and gets the result.
8 func Run(dir string, command string, args []string) (string, bool, error) {
9 outFile := NewBufferCloser(nil)
10 proc, err := StartProcess("", dir, command, args, nil, outFile)
17 if proc.ExitState.Success() {
18 return outFile.String(), true, nil
20 return outFile.String(), false, nil