github.com/terraform-modules-krish/terratest@v0.29.0/modules/terraform/get.go (about) 1 package terraform 2 3 import ( 4 "github.com/terraform-modules-krish/terratest/modules/testing" 5 ) 6 7 // Get calls terraform get and return stdout/stderr. 8 func Get(t testing.TestingT, options *Options) string { 9 out, err := GetE(t, options) 10 if err != nil { 11 t.Fatal(err) 12 } 13 return out 14 } 15 16 // GetE calls terraform get and return stdout/stderr. 17 func GetE(t testing.TestingT, options *Options) (string, error) { 18 return RunTerraformCommandE(t, options, "get", "-update") 19 }