IF Commons GitHub

physical/bin

Written to: 2 requirements: 2 proved, 0 partly, 0 failing, 0 with no test recorded. 0004-package-managers-dialect FR-003, 0004-package-managers-dialect FR-007

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.json

Source: commons/package-managers/src/physical/bin.ts

1 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

programfunction
function program(argv: readonly string[], io: Io): Promise<number>

Runs the program with its arguments and returns its exit status.

Imported by 7 tests of the run (7 passed, 0 failed): the library's results

Iotypeno test imports it
type 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.

Titles, headings, exports, tables, columns and requirements. Esc closes.