func buildClient()

in internal/terraform/tf.go [274:286]


func buildClient(d string, p string, v bool) (*tfexec.Terraform, error) {
	tf, err := tfexec.NewTerraform(d, p)

	if err != nil {
		return nil, err // error building Terraform client
	}

	if v {
		tf.SetStdout(os.Stdout) // Write tf logs to stdout
	}

	return tf, nil
}