Saidtypeno test imports ittype Said = { readonly status: number; readonly stdout: string };What a program said.
The runner: a program asked something under a limit of time, answering with its exit status and what it printed, or nothing where it could not be run (no such program, a hang). A program that has started others that keep its output open still answers at the limit and never holds the caller.
import { runWithin } from "./runner.ts";
await runWithin(5000)(["dpkg-query", "-W", "git"]); // { status: 0, stdout: "..." } or undefinedSaidtypeno test imports ittype Said = { readonly status: number; readonly stdout: string };What a program said.
Runtypeno test imports ittype Run = (argv: readonly string[]) => Promise<Said | undefined>;Runs a command line and says what it said, or nothing where it could not be run.
runWithinfunctionfunction runWithin(ms: number): RunA Run that gives a program ms milliseconds and then stops it.