Cotal TypeScript packages
    Preparing search index...

    Function writeResult

    • One finished result in the presentation the run asked for: the envelope for json, otherwise the report view builds from the same result, fitted to the terminal stdout is, with each warning on stderr. partial marks a read that answered for only part of what was asked: the result keeps what was read, the outcome is partial, and the run exits 4. noOp marks a change that was already in place: the outcome is no-op and the run exits 0. failure retains an attributed multi-member result alongside its classified error. A failure without useful result data is thrown as a CommandFailure for the kernel to write.

      Type Parameters

      • R

      Parameters

      • presentation: Presentation
      • out: {
            command: string;
            completeness?: Completeness;
            failure?: CommandFailure;
            noOp?: boolean;
            partial?: { message: string; remedy?: string };
            result: R;
            target: unknown;
            warnings?: readonly OutputWarning[];
        }
      • view: (result: R) => Report

      Returns void