RenderOptionstypeno test imports ittype RenderOptions = {
readonly look: Look;
readonly verbosity: Verbosity;
/** Where the run's log is, shown in verbose mode. */
readonly logPath?: string;
};What the drawing depends on.
The closing block drawn for a terminal (commons headless 0004-headless-cli FR-001, FR-003): the lines the logical layer chose, in the order it chose them, each with its palette mark and colour; the verdict; the one next: line. In quiet mode only the verdict is drawn. Nothing is decided here: which lines come, in which order, is closingOf's.
import { renderClosing } from "./render.ts";
import { closingOf, outcomeOf } from "@intellectual-frontiers/headless/logical";
const look = { tty: false, colour: false, emoji: false, columns: 80 };
renderClosing(closingOf(outcomeOf(null), { fix: { commands: [], own: [] }, shownHints: [] }), { look, verbosity: "calm" }); // "\n[ok] Up to date\n"RenderOptionstypeno test imports ittype RenderOptions = {
readonly look: Look;
readonly verbosity: Verbosity;
/** Where the run's log is, shown in verbose mode. */
readonly logPath?: string;
};What the drawing depends on.
drawVerdictfunctionno test imports itfunction drawVerdict(c: Closing, look: Look): stringThe verdict line.
renderClosingfunctionfunction renderClosing(c: Closing, o: RenderOptions): stringThe text a closing block is written as: a blank line, the lines, the verdict, the one next command; or the verdict alone in quiet mode. Ends in a newline.