@runfile/cli 0.23.0 → 0.25.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/bin/darwin-arm64/README.md +6 -3
- package/bin/darwin-arm64/run +0 -0
- package/bin/darwin-x64/README.md +6 -3
- package/bin/darwin-x64/run +0 -0
- package/bin/linux-arm64/README.md +6 -3
- package/bin/linux-arm64/run +0 -0
- package/bin/linux-x64/README.md +6 -3
- package/bin/linux-x64/run +0 -0
- package/bin/run.js +6 -6
- package/bin/win32-arm64/run.exe +0 -0
- package/bin/win32-x64/run.exe +0 -0
- package/package.json +1 -1
|
@@ -483,9 +483,12 @@ namespace.
|
|
|
483
483
|
#### Readable parallel output
|
|
484
484
|
|
|
485
485
|
When commands run in parallel (`"parallel": true` on a target or `for` block), each branch's stdout/stderr is
|
|
486
|
-
line-buffered, prefixed with
|
|
487
|
-
redraws (`docker compose pull`, `cargo build`, etc.) become chronological append-only
|
|
488
|
-
each other's output.
|
|
486
|
+
line-buffered, prefixed with a colored bracketed label identifying the branch, and stripped of cursor-control
|
|
487
|
+
escapes — so progress-bar redraws (`docker compose pull`, `cargo build`, etc.) become chronological append-only
|
|
488
|
+
lines instead of corrupting each other's output. The label shows the full resolved `@target` invocation
|
|
489
|
+
(`[@dev --port 5000]`) for target-call branches, or the raw command truncated to 12 characters (`[docker compo]`)
|
|
490
|
+
for shell branches; each label gets one of six cycling colors so adjacent branches stay distinct.
|
|
491
|
+
SGR colors flow through unchanged. The prefix propagates through `@target` invocations too,
|
|
489
492
|
so monorepo fan-outs like `{ "for": "ns", "in": "namespaces", "do": "@{{ VARS.ns }}:dev" }` tag every nested shell
|
|
490
493
|
with its branch identity. Set `RUNFILE_NO_LINE_PREFIX=1` to opt out and inherit raw stdio.
|
|
491
494
|
|
package/bin/darwin-arm64/run
CHANGED
|
Binary file
|
package/bin/darwin-x64/README.md
CHANGED
|
@@ -483,9 +483,12 @@ namespace.
|
|
|
483
483
|
#### Readable parallel output
|
|
484
484
|
|
|
485
485
|
When commands run in parallel (`"parallel": true` on a target or `for` block), each branch's stdout/stderr is
|
|
486
|
-
line-buffered, prefixed with
|
|
487
|
-
redraws (`docker compose pull`, `cargo build`, etc.) become chronological append-only
|
|
488
|
-
each other's output.
|
|
486
|
+
line-buffered, prefixed with a colored bracketed label identifying the branch, and stripped of cursor-control
|
|
487
|
+
escapes — so progress-bar redraws (`docker compose pull`, `cargo build`, etc.) become chronological append-only
|
|
488
|
+
lines instead of corrupting each other's output. The label shows the full resolved `@target` invocation
|
|
489
|
+
(`[@dev --port 5000]`) for target-call branches, or the raw command truncated to 12 characters (`[docker compo]`)
|
|
490
|
+
for shell branches; each label gets one of six cycling colors so adjacent branches stay distinct.
|
|
491
|
+
SGR colors flow through unchanged. The prefix propagates through `@target` invocations too,
|
|
489
492
|
so monorepo fan-outs like `{ "for": "ns", "in": "namespaces", "do": "@{{ VARS.ns }}:dev" }` tag every nested shell
|
|
490
493
|
with its branch identity. Set `RUNFILE_NO_LINE_PREFIX=1` to opt out and inherit raw stdio.
|
|
491
494
|
|
package/bin/darwin-x64/run
CHANGED
|
Binary file
|
|
@@ -483,9 +483,12 @@ namespace.
|
|
|
483
483
|
#### Readable parallel output
|
|
484
484
|
|
|
485
485
|
When commands run in parallel (`"parallel": true` on a target or `for` block), each branch's stdout/stderr is
|
|
486
|
-
line-buffered, prefixed with
|
|
487
|
-
redraws (`docker compose pull`, `cargo build`, etc.) become chronological append-only
|
|
488
|
-
each other's output.
|
|
486
|
+
line-buffered, prefixed with a colored bracketed label identifying the branch, and stripped of cursor-control
|
|
487
|
+
escapes — so progress-bar redraws (`docker compose pull`, `cargo build`, etc.) become chronological append-only
|
|
488
|
+
lines instead of corrupting each other's output. The label shows the full resolved `@target` invocation
|
|
489
|
+
(`[@dev --port 5000]`) for target-call branches, or the raw command truncated to 12 characters (`[docker compo]`)
|
|
490
|
+
for shell branches; each label gets one of six cycling colors so adjacent branches stay distinct.
|
|
491
|
+
SGR colors flow through unchanged. The prefix propagates through `@target` invocations too,
|
|
489
492
|
so monorepo fan-outs like `{ "for": "ns", "in": "namespaces", "do": "@{{ VARS.ns }}:dev" }` tag every nested shell
|
|
490
493
|
with its branch identity. Set `RUNFILE_NO_LINE_PREFIX=1` to opt out and inherit raw stdio.
|
|
491
494
|
|
package/bin/linux-arm64/run
CHANGED
|
Binary file
|
package/bin/linux-x64/README.md
CHANGED
|
@@ -483,9 +483,12 @@ namespace.
|
|
|
483
483
|
#### Readable parallel output
|
|
484
484
|
|
|
485
485
|
When commands run in parallel (`"parallel": true` on a target or `for` block), each branch's stdout/stderr is
|
|
486
|
-
line-buffered, prefixed with
|
|
487
|
-
redraws (`docker compose pull`, `cargo build`, etc.) become chronological append-only
|
|
488
|
-
each other's output.
|
|
486
|
+
line-buffered, prefixed with a colored bracketed label identifying the branch, and stripped of cursor-control
|
|
487
|
+
escapes — so progress-bar redraws (`docker compose pull`, `cargo build`, etc.) become chronological append-only
|
|
488
|
+
lines instead of corrupting each other's output. The label shows the full resolved `@target` invocation
|
|
489
|
+
(`[@dev --port 5000]`) for target-call branches, or the raw command truncated to 12 characters (`[docker compo]`)
|
|
490
|
+
for shell branches; each label gets one of six cycling colors so adjacent branches stay distinct.
|
|
491
|
+
SGR colors flow through unchanged. The prefix propagates through `@target` invocations too,
|
|
489
492
|
so monorepo fan-outs like `{ "for": "ns", "in": "namespaces", "do": "@{{ VARS.ns }}:dev" }` tag every nested shell
|
|
490
493
|
with its branch identity. Set `RUNFILE_NO_LINE_PREFIX=1` to opt out and inherit raw stdio.
|
|
491
494
|
|
package/bin/linux-x64/run
CHANGED
|
Binary file
|
package/bin/run.js
CHANGED
|
@@ -5,24 +5,24 @@ const { spawnSync } = require('node:child_process');
|
|
|
5
5
|
|
|
6
6
|
const KEY = process.platform + '-' + process.arch;
|
|
7
7
|
const BINARIES = {
|
|
8
|
+
"linux-x64": "run",
|
|
9
|
+
"linux-arm64": "run",
|
|
8
10
|
"darwin-arm64": "run",
|
|
9
11
|
"darwin-x64": "run",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"win32-arm64": "run.exe",
|
|
13
|
-
"win32-x64": "run.exe"
|
|
12
|
+
"win32-x64": "run.exe",
|
|
13
|
+
"win32-arm64": "run.exe"
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
const bin = BINARIES[KEY];
|
|
17
17
|
if (!bin) {
|
|
18
|
-
console.error(`
|
|
18
|
+
console.error(`run: unsupported platform ${KEY}. Supported: ${Object.keys(BINARIES).join(', ')}`);
|
|
19
19
|
process.exit(1);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
const binPath = path.join(__dirname, KEY, bin);
|
|
23
23
|
const result = spawnSync(binPath, process.argv.slice(2), { stdio: 'inherit' });
|
|
24
24
|
if (result.error) {
|
|
25
|
-
console.error(`
|
|
25
|
+
console.error(`run: failed to spawn ${binPath}: ${result.error.message}`);
|
|
26
26
|
process.exit(1);
|
|
27
27
|
}
|
|
28
28
|
process.exit(result.status == null ? 1 : result.status);
|
package/bin/win32-arm64/run.exe
CHANGED
|
Binary file
|
package/bin/win32-x64/run.exe
CHANGED
|
Binary file
|
package/package.json
CHANGED