| 411 | |
| 412 | |
| 413 | def clean_prompt(): |
| 414 | ans = input( |
| 415 | f""" |
| 416 | You have not specified a target to clean. |
| 417 | This means that doit will clean the following targets: |
| 418 | |
| 419 | * ALL the containers, images, and build cache in {CONTAINER_RUNTIME.capitalize()} |
| 420 | * ALL the built targets and directories |
| 421 | |
| 422 | For a full list of the targets that doit will clean, run: doit clean --dry-run |
| 423 | |
| 424 | Are you sure you want to clean everything (y/N): \ |
| 425 | """ |
| 426 | ) |
| 427 | if ans.lower() in ["yes", "y"]: |
| 428 | return |
| 429 | else: |
| 430 | print("Exiting...") |
| 431 | sys.exit(1) |
| 432 | |
| 433 | |
| 434 | def task_clean_prompt(): |