Add default port-from value of 5400

This commit is contained in:
Chris Wanstrath 2026-03-12 14:20:07 -07:00
parent 9df431ef9a
commit d22b5fbcea
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ Transcript-based shell integration test runner. Bun + TypeScript.
- `--path <path>` — prepend to `$PATH` (repeatable) - `--path <path>` — prepend to `$PATH` (repeatable)
- `--timeout <dur>` — per-command timeout (default `10s`) - `--timeout <dur>` — per-command timeout (default `10s`)
- `-v, --verbose` — print each command as it runs - `-v, --verbose` — print each command as it runs
- `--port-from <n>` — auto-assign `$PORT` starting from n - `--port-from <n>` — auto-assign `$PORT` starting from n (default `5400`)
- `--parallel` — run files in parallel - `--parallel` — run files in parallel
## Architecture ## Architecture

View File

@ -79,7 +79,7 @@ program
.option("--path <path>", "Prepend <path> to PATH (repeatable)", (val: string, acc: string[]) => [...acc, val], []) .option("--path <path>", "Prepend <path> to PATH (repeatable)", (val: string, acc: string[]) => [...acc, val], [])
.option("--timeout <dur>", "Per-command timeout", "10s") .option("--timeout <dur>", "Per-command timeout", "10s")
.option("-v, --verbose", "Print each command as it runs") .option("-v, --verbose", "Print each command as it runs")
.option("--port-from <n>", "Auto-assign $PORT starting from <n>") .option("--port-from <n>", "Auto-assign $PORT starting from <n>", "5400")
.option("--parallel", "Run files in parallel") .option("--parallel", "Run files in parallel")
.action(async (fileArgs: string[], opts) => { .action(async (fileArgs: string[], opts) => {
const timeoutMs = parseDuration(opts.timeout) const timeoutMs = parseDuration(opts.timeout)