mirror of https://github.com/databricks/cli.git
e6241e196f
## Changes Right now we ask users for two confirmations when destroying a bundle. One to destroy the resources and one to delete the files. This PR consolidates the two prompts into one. ## Tests Manually Destroying a bundle with no resources: ``` ➜ bundle-playground git:(master) ✗ cli bundle destroy All files and directories at the following location will be deleted: /Users/shreyas.goenka@databricks.com/.bundle/bundle-playground/default Would you like to proceed? [y/n]: y No resources to destroy Updating deployment state... Deleting files... Destroy complete! ``` Destroying a bundle with no remote state: ``` ➜ bundle-playground git:(master) ✗ cli bundle destroy No active deployment found to destroy! ``` When a user cancells a deployment: ``` ➜ bundle-playground git:(master) ✗ cli bundle destroy The following resources will be deleted: delete job job_1 delete job job_2 delete pipeline foo All files and directories at the following location will be deleted: /Users/shreyas.goenka@databricks.com/.bundle/bundle-playground/default Would you like to proceed? [y/n]: n Destroy cancelled! ``` When a user destroys resources: ``` ➜ bundle-playground git:(master) ✗ cli bundle destroy The following resources will be deleted: delete job job_1 delete job job_2 delete pipeline foo All files and directories at the following location will be deleted: /Users/shreyas.goenka@databricks.com/.bundle/bundle-playground/default Would you like to proceed? [y/n]: y Updating deployment state... Deleting files... Destroy complete! ``` |
||
---|---|---|
.. | ||
tfdyn | ||
apply.go | ||
check_running_resources.go | ||
check_running_resources_test.go | ||
convert.go | ||
convert_test.go | ||
destroy.go | ||
dir.go | ||
import.go | ||
init.go | ||
init_test.go | ||
interpolate.go | ||
interpolate_test.go | ||
load.go | ||
load_test.go | ||
pkg.go | ||
pkg_test.go | ||
plan.go | ||
state_pull.go | ||
state_pull_test.go | ||
state_push.go | ||
state_push_test.go | ||
state_test.go | ||
unbind.go | ||
util.go | ||
util_test.go | ||
write.go |