Skip to content

feat: confirm purge on a TTY before deleting - #53

Merged
wcgomes merged 1 commit into
mainfrom
patch/purge-tty-confirmation
Sep 23, 2026
Merged

wcgomes merged 1 commit into
mainfrom
patch/purge-tty-confirmation

Conversation

@wcgomes

@wcgomes wcgomes commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

Interactive purge is no longer an immediate delete on a TTY.

  • TTY purge prompts Purge dev container <id> and its unreferenced volumes and image? [y/N].
  • Only y or yes proceeds.
  • Any other line or EOF cancels with no deletes.
  • Non-TTY still purges.
  • Esc alone does not cancel.
  • Recovery helpers still skip with no prompt and no deletes.
  • README tests badge is 1105+.

Test plan

  • swift run adevcontainerTests — 1105 passed, 0 failed, 15 skipped
  • CI on this PR

Interactive purge prompts before any delete and proceeds only on y/yes.
Non-TTY still purges. Recovery helpers skip with no prompt.
@wcgomes
wcgomes merged commit 47ff9ae into main Sep 23, 2026
1 check passed
@wcgomes
wcgomes deleted the patch/purge-tty-confirmation branch September 23, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant