UNPKG

process-rerun

Version:

The purpose of this library is - build simple and flexible interface for parallel command execution with rerun (on fail) possibility

22 lines (21 loc) 845 B
/** * Extracts every shared cache payload emitted by the child process on its stdout. * * A process can publish data back to the runner by printing one or more lines shaped like: * shared-cache: "<json payload here>" * * Each json payload lives inside the double quotes with its own quotes escaped. * Returns an array with one parsed payload per matched line (empty when none are present), * preserving the order in which the process printed them. */ declare function getCache(output: string): unknown[]; declare function execute({ cmd, logProcessResult, executionHolder, execOpts, }: { cmd: string; logProcessResult: any; executionHolder: { stackTrace: string; cache?: unknown[]; }; execOpts?: object; }): import("node:child_process").ChildProcessWithoutNullStreams; export { execute, getCache };