MCPcopy Index your code
hub / github.com/actions/toolkit / ExecOptions

Interface ExecOptions

packages/exec/src/interfaces.ts:5–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3 * Interface for exec options
4 */
5export interface ExecOptions {
6 /** optional working directory. defaults to current */
7 cwd?: string
8
9 /** optional envvar dictionary. defaults to current process's env */
10 env?: {[key: string]: string}
11
12 /** optional. defaults to false */
13 silent?: boolean
14
15 /** optional out stream to use. Defaults to process.stdout */
16 outStream?: stream.Writable
17
18 /** optional err stream to use. Defaults to process.stderr */
19 errStream?: stream.Writable
20
21 /** optional. whether to skip quoting/escaping arguments if needed. defaults to false. */
22 windowsVerbatimArguments?: boolean
23
24 /** optional. whether to fail if output to stderr. defaults to false */
25 failOnStdErr?: boolean
26
27 /** optional. defaults to failing on non zero. ignore will not fail leaving it up to the caller */
28 ignoreReturnCode?: boolean
29
30 /** optional. How long in ms to wait for STDIO streams to close after the exit event of the process before terminating. defaults to 10000 */
31 delay?: number
32
33 /** optional. Listeners for output. Callback functions that will be called on these events */
34 listeners?: {
35 stdout?: (data: Buffer) => void
36
37 stderr?: (data: Buffer) => void
38
39 stdline?: (data: string) => void
40
41 errline?: (data: string) => void
42
43 debug?: (data: string) => void
44 }
45}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…