github.com/tilotech/tilores-cli@v0.28.0/internal/pkg/step/terraformdestroy.go (about) 1 package step 2 3 // TerraformDestroy creates a step that runs terraform destroy with the provided arguments. 4 func TerraformDestroy(workspace string, args ...string) Step { 5 args = append([]string{"destroy", "-auto-approve"}, args...) 6 command := createCommand("terraform", args...) 7 command.Env = append(command.Env, tfWorkspaceEnv(workspace)) 8 return runCommand("could not destroy: %v", command) 9 }