@runfile/cli 0.43.0 → 0.44.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 +9 -0
- package/bin/darwin-arm64/run +0 -0
- package/bin/darwin-x64/run +0 -0
- package/bin/linux-arm64/run +0 -0
- package/bin/linux-x64/run +0 -0
- package/bin/win32-arm64/run.exe +0 -0
- package/bin/win32-x64/run.exe +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -614,6 +614,15 @@ Wrap any commands in a `when:` block to run them only after a failure, or always
|
|
|
614
614
|
]
|
|
615
615
|
```
|
|
616
616
|
|
|
617
|
+
**Ctrl+C runs your cleanup too.** Pressing Ctrl+C stops the running command and skips everything still pending,
|
|
618
|
+
but `when: failure` and `when: always` blocks still execute before Runfile exits (with code `130`) — so a
|
|
619
|
+
container, a lock file, or a dev server started earlier gets torn down instead of leaked. The interrupt is not
|
|
620
|
+
suppressible by `ignoreErrors` (that forgives a failed command, not a user asking to stop), it stops `for` loops
|
|
621
|
+
from starting further iterations, and it reaches every target on the stack: an interrupted `@target` dependency
|
|
622
|
+
runs its own cleanup, then its caller runs the caller's. Cleanup blocks are exempt from the abort, so their own
|
|
623
|
+
steps — including a `@teardown` they delegate to — run in full. Press Ctrl+C **again** to quit immediately if a
|
|
624
|
+
cleanup block is itself slow or stuck.
|
|
625
|
+
|
|
617
626
|
#### Single-shell mode with `sameShell`
|
|
618
627
|
|
|
619
628
|
By default each step runs in its own shell process, so `cd`, exported variables, and other shell state don't carry
|
package/bin/darwin-arm64/run
CHANGED
|
Binary file
|
package/bin/darwin-x64/run
CHANGED
|
Binary file
|
package/bin/linux-arm64/run
CHANGED
|
Binary file
|
package/bin/linux-x64/run
CHANGED
|
Binary file
|
package/bin/win32-arm64/run.exe
CHANGED
|
Binary file
|
package/bin/win32-x64/run.exe
CHANGED
|
Binary file
|
package/package.json
CHANGED