programfunctionfunction program(argv: readonly string[], io: Io): Promise<number>Runs the program with its arguments and returns its exit status.
The program of the kit, which the steps of a manager dialect run: check PLAN changes nothing and says, tool by tool, whether it is installed or would be installed, ending with the status 2 where something would change; apply PLAN installs what is not, and a second apply of the same plan changes nothing where the manager can be asked. It runs only the commands the plan file holds, which is the digest-named file a person reviewed, and never through a shell. Every failure names the tool, the step and the one action that is next.
bun bin.ts check .archon/<digest>/<dialect>/plan.json
bun bin.ts apply .archon/<digest>/<dialect>/plan.jsonprogramfunctionfunction program(argv: readonly string[], io: Io): Promise<number>Runs the program with its arguments and returns its exit status.
Iotypeno test imports ittype Io = {
readonly out: (line: string) => void;
/** Runs a check, which is short. */
readonly ask?: Run;
/** Runs an install, which may take long. */
readonly install?: Run;
};What the program says to the world and runs programs with; a test passes its own.