in internal/terraform/tf.go [32:48]
func TfInit(dir string, m bool, verbose bool) error {
//var w string
var tfInitOptions []tfexec.InitOption
ctx := context.Background()
tf, _ := initializeTerraformClient(dir, verbose)
// If true, we need to migrate the state to a remote location
if m {
tfInitOptions = append(tfInitOptions, tfexec.ForceCopy(m))
}
err := tf.Init(ctx, tfInitOptions...)
return err
}