code: func RunAndCaptureOSCommand(cmd *exec.Cmd,
  	stdoutWriter io.Writer,
  	stderrWriter io.Writer,
  	logger *logrus.Logger) error {
  	logger.WithFields(logrus.Fields{
  		"Arguments": cmd.Args,
  		"Dir":       cmd.Dir,
  		"Path":      cmd.Path,
  		"Env":       cmd.Env,
  	}).Debug("Running Command")
  	cmd.Stdout = stdoutWriter
  	cmd.Stderr = stderrWriter
  	return cmd.Run()
  
  }
docs: // RunAndCaptureOSCommand runs the given command and
  // captures the stdout and stderr