module

CRDoc::Shards::Runner

Runs subprocesses and turns failures into CRDoc::Error.

Constants

MAX_ERROR_LINES = 30

Class methods

describe(command : String, args : Array(String)) : String
Source
run(command : String, args : Array(String), chdir : Path | Nil = nil, action : String | Nil = nil) : String

Runs command and returns its stdout. On failure, raises an error reading <action>: <stderr tail>, with build temp paths removed. Without action, the message names the command line instead.

Source