Skip to content

List mob names in purge confirmation prompt#36

Merged
blipinsk merged 4 commits into
mainfrom
purge-list-mobs
Apr 8, 2026
Merged

List mob names in purge confirmation prompt#36
blipinsk merged 4 commits into
mainfrom
purge-list-mobs

Conversation

@blipinsk

@blipinsk blipinsk commented Apr 8, 2026

Copy link
Copy Markdown
Member

Closes #35

adds listing of mobs to be deleted in the purge operation:

❯ codemob purge

  ⚠ DESTRUCTIVE OPERATION

  The following mobs will be permanently removed:

    NAME              BRANCH
    epic-dragonfruit  mob/epic-dragonfruit
    dark-lime         mob/dark-lime
    test-test         mob/test-test
    loud-grape        mob/loud-grape
    rough-radish      mob/rough-radish
    daring-jackfruit  mob/daring-jackfruit
    zippy-banana      mob/zippy-banana
    epic-fig          fix/mob-remove-non-interactive
    shy-fig           purge-list-mobs

  Any uncommitted or unpushed changes in those worktrees will be permanently lost.

  This cannot be undone.

  Are you sure? [y/N]:

Summary

  • codemob purge now lists each mob by name in the confirmation prompt instead of just showing a count
  • Helps the user see exactly what they're about to delete before confirming

Test plan

  • Existing TestPurge extended to verify mob names appear in output
  • All purge-related tests pass

blipinsk added 4 commits April 8, 2026 18:29
Instead of showing just a count, purge now lists each mob by name
before asking for confirmation.
Render table to a buffer so ANSI codes don't skew tabwriter
column widths, then indent each line on output.
@blipinsk blipinsk changed the title List mob names in purge confirmation prompt List mob names in purge confirmation prompt Apr 8, 2026
@blipinsk blipinsk merged commit 4148bdf into main Apr 8, 2026
1 check passed
@blipinsk blipinsk deleted the purge-list-mobs branch April 8, 2026 16:42
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.

codemob purge needs to list the existing codemobs automatically

1 participant