@kaynooo/cli-check 0.18.3 → 0.20.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 CHANGED
@@ -8,7 +8,7 @@ check # run every step found
8
8
  check --list # print the steps and the commands that run them
9
9
  check --only lint,test
10
10
  check --timeout 5m # end a step still running after 5 minutes, exit 2
11
- check --slot # queue each step behind the machine-wide slots of `slot` (@kaynooo/cli-wait)
11
+ check --no-slot # run the steps at once; by default each queues behind the machine-wide slots of `slot` (@kaynooo/cli-wait) when it is installed
12
12
  check --in app # run every step in this compose service, whatever is detected
13
13
  check --failed # run again only the steps that failed in this folder's last run
14
14
  check --quiet # print only the failing steps, nothing when all pass
@@ -46,7 +46,7 @@ Athome repos run their tools in a container, so `check`, `fix` and `errs -- <com
46
46
  - `COMPOSE_FILE` (in the environment or the project's `.env`) replaces the search for `compose.yaml`: the files it names, separated by `:` (`COMPOSE_PATH_SEPARATOR` if set) and read relative to the project folder, are merged in order. A file it names that does not exist fails the call, as `docker compose` would.
47
47
  - No `docker` on the PATH (a devcontainer, CI): there is no container to reach, so the step runs on the host and stderr says `host, docker not found` once per project; `--in <service>` fails instead.
48
48
  - A compose file that does not parse fails the call naming the file and the parse error, and points at `--host`; it never falls back to the host silently, even without docker.
49
- - `--slot` queues the whole docker command. `--timeout` ends the `docker compose exec` client, which does not always end what it started inside the container.
49
+ - The slot queue (the default when `slot` is installed, `--slot` to require it) holds the whole docker command. `--timeout` ends the `docker compose exec` client, which does not always end what it started inside the container.
50
50
  - `check --changed` (`-c`) narrows `lint` to the changed source files (staged, unstaged and untracked, against HEAD) when its script is a bare `keslint`, `eslint` or `oxlint`, and `test` to the changed test files and the tests next to changed sources (same folder, `tests/`, `../tests/`) when its script is a bare `bun test`. Every other step runs in full and its line says so, a test step finding no test for the diff included. The typecheck is never narrowed.
51
51
  - `fix` runs the project's scripts and `php-cs-fixer` in the service, and keeps its own formatters (`justfile`, `go`, `rust`, `python`, `makefile`) on the host. The recursion guard variable is passed into the container.
52
52
 
@@ -62,7 +62,7 @@ Exit code 0 when every step passed, 1 when one failed, 2 on bad usage, when no s
62
62
 
63
63
  ## fix
64
64
 
65
- `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
+ `fix` is `check --fix`: `check --fix --only lint:fix` is the same call. `--only` then names fixers, and `--changed`, `--failed`, `--slot`, `--no-slot` and `--parallel` are refused.
66
66
 
67
67
  ```sh
68
68
  fix # run every fixer that applies to this folder