Skip to content

Type Alias: Exec

Documentation / @wtf/project-wpt / index / Exec

type Exec = (command, args, options) => Promise<string>;

Defined in: packages/project-wpt/src/index.ts:43

A command run to its end, as git: what it wrote on stdout. It fails with an error whose message is what the command wrote on stderr, or why it did not run.

Parameters

ParameterType
commandstring
argsreadonly string[]
options{ cwd: string; env: Env; }
options.cwdstring
options.envEnv

Returns

Promise<string>