forgemap 0.4.1-dev.69-291072b → 0.4.1-dev.70-e2b787f

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 CHANGED
@@ -56,7 +56,7 @@ forgemap cd laravel # fuzzy match → jump in; bare `forgem
56
56
  `forgemap cd` resolves the slug, walks/picks across your cloned repos, and actually changes directory because the shell wrapper from `shell-init` intercepts it before the binary runs. Every other subcommand falls through to the real binary unchanged. Hacking on forgemap itself? See [CONTRIBUTING.md → Trying the CLI locally](CONTRIBUTING.md#trying-the-cli-locally) — covers `pnpm setup`, `pnpm link --global .` and the shell-wrapper source.
57
57
 
58
58
  <details>
59
- <summary><strong>All commands</strong> — clone, cd, search, open, sync/status, import, cleanup, validate, shell-init, config</summary>
59
+ <summary><strong>All commands</strong> — clone, cd, search, open, sync/status, import, cleanup, delete, validate, shell-init, config</summary>
60
60
 
61
61
  ### Clone & jump
62
62
 
@@ -134,6 +134,18 @@ forgemap cleanup --include-dirty --include-unpushed --include-stashed # also d
134
134
 
135
135
  A repo is only deleted when it is idle for `--days`+ days (by last **local** commit), has a clean working tree, has nothing unpushed, has no stashed work, **and** its remote still exists — so everything removed is provably backed up. Repos without a remote (or with a gone/unreachable one) are never touched; empty owner directories left behind are pruned automatically. Deletion needs an explicit typed `yes` (or `--yes`).
136
136
 
137
+ ### Drop one repo — `delete`
138
+
139
+ ```bash
140
+ forgemap delete kirchDev/laravel-pbac # gates, then type "yes" to confirm
141
+ forgemap delete github:foo/bar # forge-qualified slug or full URL
142
+ forgemap delete foo/bar --dry-run # report the gates; never prompt or delete
143
+ forgemap delete foo/bar --yes # non-interactive (scripts)
144
+ forgemap delete foo/bar --include-dirty --include-unpushed --include-stashed # delete local-only work too (lost!)
145
+ ```
146
+
147
+ The targeted counterpart to `cleanup`: same safety gates, no staleness requirement — for the repo you are done with *today*. It runs the identical checks (clean tree, nothing unpushed, no stashed work, remote still exists) and prints the local-only work at stake, naming the branches that carry unpushed commits and the stash count rather than just saying "unpushed". A gone or unreachable remote is a **hard stop that no flag overrides** — that local copy may be the only one left. After deleting, the repo is evicted from the scan cache and emptied owner directories are pruned.
148
+
137
149
  ### Preflight your config
138
150
 
139
151
  ```bash