property ReplResult.failed

Whether the input worked. What output never says, and what a caller needs before it can do anything but print: colour the line red, decline to add it to the replayable history, exit non-zero on a piped session.

Orthogonal to output rather than derivable from it — output is non-empty in both cases, and '' means "nothing to print", not "it went fine".

Type

boolean

Usage

import { type ReplResult } from "lib/repl/session.ts";