Skip to content

Add --list flag to delete-staged command#33

Merged
wesm merged 3 commits intomainfrom
delete-staged-list
Feb 3, 2026
Merged

Add --list flag to delete-staged command#33
wesm merged 3 commits intomainfrom
delete-staged-list

Conversation

@wesm
Copy link
Copy Markdown
Owner

@wesm wesm commented Feb 3, 2026

Fixes #30.

Summary

Adds --list (-l) flag to msgvault delete-staged that shows staged deletions without executing them.

$ msgvault delete-staged --list
Staged deletions: 2 batch(es)

  ID                         Status        Messages  Description
  ---                        ------        --------  -----------
  20260202-195132-Senders    pending           150  Senders: spam@...
  20260203-101500-Labels     in_progress        42  Labels: TRASH

Total: 192 messages across 2 batch(es)

Use 'msgvault delete-staged' to execute, or 'msgvault show-deletion <id>' for details.

Difference from list-deletions

  • list-deletions: Shows all batches (pending, in-progress, completed, failed)
  • delete-staged --list: Shows only staged batches (pending + in-progress) — i.e., what would be executed

🤖 Generated with Claude Code

wesm and others added 3 commits February 3, 2026 06:54
Fixes #30. Users can now preview pending deletions before executing:

  msgvault delete-staged --list

Shows only pending and in-progress batches (unlike list-deletions which
shows all statuses including completed/failed). Displays batch ID, status,
message count, and description in a table format.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Address review feedback: the list includes both pending and in-progress
batches, so 'Staged deletions' is more accurate than 'Pending deletions'.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@wesm wesm merged commit eb3899c into main Feb 3, 2026
1 check passed
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.

msgvault delete-staged --list: unknown flag: --list

1 participant