Expand description
Batch removal orchestration for gw rm.
Multi-target removal pipeline: resolve-all → plan (busy) → summary →
confirm → execute → exit code. Reuses worktree::delete_one for per-target
execution.
Structs§
- Resolved
- Resolved worktree target (path + optional branch).
Enums§
- Plan
Entry - A single entry in the batch execution plan.
Functions§
- confirm_
batch - Ask for a single y/N confirmation on the whole batch. Only invoked when planned.ready > 1 (or planned.ready >= 1 combined with skips worth surfacing). Returns true if the user confirmed.
- plan_
busy - Annotate resolved entries with busy status. Unresolved entries pass through.
- print_
summary - Print the batch summary. Summary/progress goes to stdout; errors and prompts go to stderr.
- resolve_
all - Resolve a list of user inputs against the main repository.
- rm_
worktrees - Top-level orchestrator for
gw rm.