MCPcopy
hub / github.com/freedomofpress/dangerzone / clean_prompt

Function clean_prompt

dodo.py:413–431  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

411
412
413def clean_prompt():
414 ans = input(
415 f"""
416You have not specified a target to clean.
417This 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
422For a full list of the targets that doit will clean, run: doit clean --dry-run
423
424Are 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
434def task_clean_prompt():

Callers

nothing calls this directly

Calls 1

exitMethod · 0.80

Tested by

no test coverage detected