@kaynooo/cli-check 0.11.0 → 0.12.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 +7 -1
- package/dist/cli.js +495 -183
- package/dist/errs-cli.js +139 -74
- package/dist/fix-cli.js +220 -316
- package/dist/j-cli.js +157 -105
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# check and fix
|
|
2
2
|
|
|
3
|
-
`check` runs a repo's validation and `fix` its fixers, both showing only what failed, so a Claude Code session spends no tokens on passing output.
|
|
3
|
+
`check` runs a repo's validation and `check --fix` its fixers, both showing only what failed, so a Claude Code session spends no tokens on passing output. `fix` stays installed as the alias of `check --fix`: same options, output and exit codes.
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
6
|
bun install -g @kaynooo/cli-check
|
|
@@ -10,6 +10,8 @@ check --only lint,test
|
|
|
10
10
|
check --timeout 5m # end a step still running after 5 minutes, exit 2
|
|
11
11
|
check --slot # queue each step behind the machine-wide slots of `slot` (@kaynooo/cli-wait)
|
|
12
12
|
check --in app # run every step in this compose service, whatever is detected
|
|
13
|
+
check --failed # run again only the steps that failed in this folder's last run
|
|
14
|
+
check --fix # run the fixers instead, what `fix` does
|
|
13
15
|
check --host # run on the host even when a compose service mounts the folder
|
|
14
16
|
check --json # [{name, command, in?, ok, ms, log, failed?}] once every step ran
|
|
15
17
|
```
|
|
@@ -55,8 +57,12 @@ SIGINT, SIGTERM and SIGHUP go to the running step's whole process group and `che
|
|
|
55
57
|
|
|
56
58
|
Exit code 0 when every step passed, 1 when one failed, 2 on bad usage, when no step is found or when a step timed out.
|
|
57
59
|
|
|
60
|
+
`--failed` reads the last finished run's folder of logs, where each run leaves a `results.json` of its steps' names and results, and runs the steps that failed there again. When that run had none, or there was no run, it says so and exits 2. The re-run leaves its own `results.json`.
|
|
61
|
+
|
|
58
62
|
## fix
|
|
59
63
|
|
|
64
|
+
`fix` is `check --fix`: `check --fix --only lint:fix` is the same call. `--only` then names fixers, and `--changed`, `--failed` and `--slot` are refused.
|
|
65
|
+
|
|
60
66
|
```sh
|
|
61
67
|
fix # run every fixer that applies to this folder
|
|
62
68
|
fix --list # print them and their commands
|