@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.
- package/CHANGELOG.md +31 -0
- package/README.md +691 -305
- package/dist/branches.d.ts +37 -36
- package/dist/branches.js +199 -196
- package/dist/clean.d.ts +179 -0
- package/dist/clean.js +824 -0
- package/dist/cli.d.ts +12 -16
- package/dist/cli.js +367 -478
- package/dist/hooks.d.ts +8 -12
- package/dist/hooks.js +2 -2
- package/dist/index.d.ts +18 -25
- package/dist/index.js +16 -23
- package/dist/landing.d.ts +3 -3
- package/dist/landing.js +7 -7
- package/dist/plan.d.ts +76 -70
- package/dist/plan.js +82 -77
- package/dist/providers/github.d.ts +2 -1
- package/dist/providers/github.js +2 -1
- package/dist/providers/gitlab.d.ts +3 -2
- package/dist/providers/gitlab.js +14 -8
- package/dist/providers/index.d.ts +5 -4
- package/dist/providers/index.js +8 -5
- package/dist/providers/types.d.ts +8 -2
- package/dist/prs.d.ts +35 -7
- package/dist/prs.js +45 -12
- package/dist/receipt.d.ts +46 -57
- package/dist/receipt.js +52 -28
- package/dist/reference.d.ts +12 -0
- package/dist/reference.js +152 -0
- package/dist/remote-mirror.d.ts +9 -1
- package/dist/remote-mirror.js +19 -1
- package/dist/render.d.ts +66 -61
- package/dist/render.js +206 -255
- package/dist/resolve.d.ts +3 -3
- package/dist/resolve.js +4 -12
- package/dist/status-line.d.ts +1 -1
- package/dist/status-line.js +5 -5
- package/dist/step-board.d.ts +1 -1
- package/dist/step-board.js +2 -5
- package/dist/submodules.d.ts +120 -0
- package/dist/submodules.js +292 -0
- package/dist/sweep.d.ts +107 -64
- package/dist/sweep.js +333 -119
- package/dist/types.d.ts +294 -105
- package/dist/types.js +106 -54
- package/dist/util.d.ts +13 -0
- package/dist/util.js +36 -0
- package/dist/version.generated.d.ts +1 -1
- package/dist/version.generated.js +1 -1
- package/dist/worktrees.d.ts +21 -37
- package/dist/worktrees.js +198 -165
- package/package.json +5 -5
- package/dist/apply.d.ts +0 -131
- 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
|
-
*
|
|
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
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
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
|
|
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
|
|
24
|
-
* 11
|
|
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
|
/**
|