IF Commons GitHub

targets/local/mod

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0005-reach-and-targets FR-004

The local target (commons headless 0005-reach-and-targets FR-004; 0007-ssh-coverage FR-003, FR-004): an Executor that runs the program here, through the system's proc. It adds nothing and takes nothing away: the options and the output are proc's own, so a command run here is the command run anywhere else, with only the executor changed. put and get copy files with the system's file functions (no shell), and spawn starts the program with piped streams.

import { localExecutor } from "@intellectual-frontiers/headless/targets/local";
// const out = await localExecutor().exec(["git", "--version"]);

Source: commons/headless/src/targets/local/mod.ts

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

localExecutorfunction
function localExecutor(): Executor

The executor that runs a program on this machine.

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

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