@osdlc/repo-cleaner 0.17.2 → 0.19.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +691 -305
  3. package/dist/branches.d.ts +37 -36
  4. package/dist/branches.js +199 -196
  5. package/dist/clean.d.ts +179 -0
  6. package/dist/clean.js +824 -0
  7. package/dist/cli.d.ts +12 -16
  8. package/dist/cli.js +367 -478
  9. package/dist/hooks.d.ts +8 -12
  10. package/dist/hooks.js +2 -2
  11. package/dist/index.d.ts +18 -25
  12. package/dist/index.js +16 -23
  13. package/dist/landing.d.ts +3 -3
  14. package/dist/landing.js +7 -7
  15. package/dist/plan.d.ts +76 -70
  16. package/dist/plan.js +82 -77
  17. package/dist/providers/github.d.ts +2 -1
  18. package/dist/providers/github.js +2 -1
  19. package/dist/providers/gitlab.d.ts +3 -2
  20. package/dist/providers/gitlab.js +14 -8
  21. package/dist/providers/index.d.ts +5 -4
  22. package/dist/providers/index.js +8 -5
  23. package/dist/providers/types.d.ts +8 -2
  24. package/dist/prs.d.ts +35 -7
  25. package/dist/prs.js +45 -12
  26. package/dist/receipt.d.ts +46 -57
  27. package/dist/receipt.js +52 -28
  28. package/dist/reference.d.ts +12 -0
  29. package/dist/reference.js +152 -0
  30. package/dist/remote-mirror.d.ts +9 -1
  31. package/dist/remote-mirror.js +19 -1
  32. package/dist/render.d.ts +66 -61
  33. package/dist/render.js +206 -255
  34. package/dist/resolve.d.ts +3 -3
  35. package/dist/resolve.js +4 -12
  36. package/dist/status-line.d.ts +1 -1
  37. package/dist/status-line.js +5 -5
  38. package/dist/step-board.d.ts +1 -1
  39. package/dist/step-board.js +2 -5
  40. package/dist/submodules.d.ts +120 -0
  41. package/dist/submodules.js +292 -0
  42. package/dist/sweep.d.ts +107 -64
  43. package/dist/sweep.js +333 -119
  44. package/dist/types.d.ts +294 -105
  45. package/dist/types.js +106 -54
  46. package/dist/util.d.ts +13 -0
  47. package/dist/util.js +36 -0
  48. package/dist/version.generated.d.ts +1 -1
  49. package/dist/version.generated.js +1 -1
  50. package/dist/worktrees.d.ts +21 -37
  51. package/dist/worktrees.js +198 -165
  52. package/package.json +5 -5
  53. package/dist/apply.d.ts +0 -131
  54. package/dist/apply.js +0 -541
package/dist/cli.d.ts CHANGED
@@ -1,27 +1,23 @@
1
1
  /**
2
2
  * `repo-cleaner` — what has been merged, and what can go away.
3
3
  *
4
- * Four verbs over one set of sweep filters:
4
+ * repo-cleaner [target...] the report; deletes nothing
5
+ * repo-cleaner plan save the sweep's rows and their evidence, to run later
6
+ * repo-cleaner clean check again, show the steps, ask, delete
7
+ * repo-cleaner cache list or remove the clones kept for remote URL targets
5
8
  *
6
- * status (the default) inventory and classify; read-only but for the fetch
7
- * summary the same sweep as counts: totals, merged, delete, prune, review, keep
8
- * plan write the deletable rows as a plan, to stdout or a file
9
- * apply re-check, show the steps, ask, then delete
10
- *
11
- * and `cache`, which lists and removes the clones `--remote-url` keeps.
12
- *
13
- * `apply` works from a saved plan (`--plan`) or sweeps first. Either way it
14
- * re-checks every row, prints the steps it would run and asks before deleting;
15
- * `--yes` skips the question. Without a terminal and without `--yes` it
16
- * refuses rather than deleting. Scope is opt-in: the sweep covers the
17
- * repository you are standing in unless a path says otherwise.
9
+ * Every command takes `--help`, and `--help --extended` for the full
10
+ * reference: what each option means, the words the report uses, and which
11
+ * combinations are refused. A combination that contradicts itself, or one
12
+ * with an option that would have no effect, is refused with exit 2 before
13
+ * anything is swept.
18
14
  *
19
15
  * Exit codes:
20
- * 0 swept; or apply ran, was declined, or had nothing to run
16
+ * 0 swept; or clean ran, was declined, or had nothing to do
21
17
  * 1 failed against the state it found
22
18
  * 2 cannot run as typed
23
- * 10 nothing to sweep: no entry named a repository
24
- * 11 apply stopped at a failed step; the receipt says which
19
+ * 10 no target named a repository
20
+ * 11 clean stopped at a failed step; the receipt says which
25
21
  */
26
22
  import { type CliContext } from '@osdlc/cli-tool';
27
23
  /**