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
| Parameter | Type |
|---|---|
command | string |
args | readonly string[] |
options | { cwd: string; env: Env; } |
options.cwd | string |
options.env | Env |
Returns
Promise<string>
