@kaynooo/cli-base 0.11.1 → 0.12.1
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 +3 -3
- package/dist/cli.js +322 -156
- package/package.json +8 -10
- package/dist/proof-cli.js +0 -1640
package/README.md
CHANGED
|
@@ -18,12 +18,12 @@ base --keep tests/NewTest.php -- vendor/bin/phpunit tests/NewTest.php
|
|
|
18
18
|
- The exit code is the command's; a last stderr line says which ref ran, `base: ran at HEAD (1a2b3c4), exit 1`.
|
|
19
19
|
- Exit codes of its own: 2 a usage error, an unknown ref or a refused command, 127 a command that cannot start.
|
|
20
20
|
|
|
21
|
-
## proof
|
|
21
|
+
## base proof
|
|
22
22
|
|
|
23
|
-
`proof` shows that a test fails before a change and passes after it, the check `base` makes by hand: it runs the command at HEAD (or `--ref <rev>`) in the same temporary worktree as `base`, then in the working tree, both captured.
|
|
23
|
+
`base proof` shows that a test fails before a change and passes after it, the check `base` makes by hand: it runs the command at HEAD (or `--ref <rev>`) in the same temporary worktree as `base`, then in the working tree, both captured.
|
|
24
24
|
|
|
25
25
|
```sh
|
|
26
|
-
proof --keep tests/NewTest.php -- vendor/bin/phpunit tests/NewTest.php
|
|
26
|
+
base proof --keep tests/NewTest.php -- vendor/bin/phpunit tests/NewTest.php
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
- `--ref` defaults to the merge base with `origin/main` when HEAD is on a branch other than `main` that is ahead of it, else HEAD; `--ref HEAD` forces the old default. The `--json` `ref` and the line name the commit it resolved to.
|