fsStorefunctionfunction fsStore(): StateStoreThe files of the state, on this system's file system: each operation is best effort.
The one place the command line touches a process (commons headless 0004-headless-cli FR-011, FR-013): it binds Io to this process's environment, streams, clock, signals and files, and launch runs a program with it, making the check of its start first where it has one. Everything else in the surface is a function of the Io it is given.
import { launch } from "./host.ts";
// process.exitCode = await launch(program);fsStorefunctionfunction fsStore(): StateStoreThe files of the state, on this system's file system: each operation is best effort.
processSignalsconstconst processSignals: SignalPortThe process's signals.
processTimerconstconst processTimer: TimerPortThe timer of the process.
readStdinLinefunctionfunction readStdinLine(): Promise<string | undefined>One line from standard input, without its line ending; undefined where the input ends first.
hostIofunctionfunction hostIo(options?: { readonly observer?: RunObserver | undefined; }): IoThe Io of this process; its output is written as it comes.
LaunchOptionstypeno test imports ittype LaunchOptions = {
/** The arguments, after the program's name; the process's own by default. */
readonly argv?:… (563 characters)type LaunchOptions = {
/** The arguments, after the program's name; the process's own by default. */
readonly argv?: readonly string[];
/** Checks that the program can start (its configuration, a file it needs): a failure ends it with the status of its kind and writes one line. */
readonly ready?: () => Promise<StartupFailure | undefined> | StartupFailure | undefined;
readonly observer?: RunObserver;
/** What of the process's world to replace (a sink for the output, a store of state): the rest is the process's. */
readonly io?: Partial<Io>;
};What a launch can be given.
launchfunctionfunction launch(program: Program, options?: LaunchOptions): Promise<number>Runs the program in this process and gives its status; the caller sets process.exitCode to it.