@gw-tools/gw 0.48.0 → 0.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1211,6 +1211,7 @@ gw clean [options]
|
|
|
1211
1211
|
|
|
1212
1212
|
#### Options
|
|
1213
1213
|
|
|
1214
|
+
- `-i, --interactive`: Interactive mode — select worktrees, branches, and orphan branches to remove using a multi-select checklist. Uses arrow keys to navigate, space to toggle, enter to confirm, Ctrl+C to cancel. **WARNING:** Uses force deletion for all selected items
|
|
1214
1215
|
- `--use-autoclean-threshold`: Only remove worktrees older than configured threshold (default: 7 days)
|
|
1215
1216
|
- `-f, --force`: Skip safety checks (uncommitted changes, unpushed commits). WARNING: This may result in data loss
|
|
1216
1217
|
- `-n, --dry-run`: Preview what would be removed without actually removing
|
|
@@ -1221,6 +1222,9 @@ gw clean [options]
|
|
|
1221
1222
|
#### Examples
|
|
1222
1223
|
|
|
1223
1224
|
```bash
|
|
1225
|
+
# Interactive mode: pick exactly what to remove
|
|
1226
|
+
gw clean --interactive
|
|
1227
|
+
|
|
1224
1228
|
# Preview all safe worktrees (default behavior)
|
|
1225
1229
|
gw clean --dry-run
|
|
1226
1230
|
|
|
@@ -1259,6 +1263,7 @@ The clean command:
|
|
|
1259
1263
|
|
|
1260
1264
|
| Command | Age Check | Safety Checks | Use Case |
|
|
1261
1265
|
| ------------------------------------ | ------------------ | -------------------- | ----------------------------------- |
|
|
1266
|
+
| `gw clean --interactive` | N/A (user picks) | No (force delete) | Manually pick items to remove |
|
|
1262
1267
|
| `gw clean` | No (all worktrees) | Yes (unless --force) | Clean up all finished work |
|
|
1263
1268
|
| `gw clean --use-autoclean-threshold` | Yes (7+ days) | Yes (unless --force) | Clean up old, stale worktrees |
|
|
1264
1269
|
| `gw clean --force` | No (all worktrees) | No | Force removal of all worktrees |
|