code: func RunCommandInDirWithEnvsAndReturnExitCode(envs []string, dir, name string, args ...string) (int, error) {
  	cmd := exec.Command(name, args...)
  	cmd.Stdin = os.Stdin
  	cmd.Stdout = os.Stdout
  	cmd.Stderr = os.Stderr
  	if dir != "" {
  		cmd.Dir = dir
  	}
  	if len(envs) > 0 {
  		cmd.Env = envs
  	}
  
  	return RunCmdAndReturnExitCode(cmd)
  }
docs: // RunCommandInDirWithEnvsAndReturnExitCode ...