Skip to content

TypeScript Function APIDocs


TypeScript Function API / sandbox/exec / makeExec

Function: makeExec()

makeExec(executionId): object

Parameters

executionId: string

Returns

object

waitUntilEnd()

waitUntilEnd: (execaFile, execaArgs?) => Promise<SiExecResult>

Runs a command and waits until it finishes executing.

Parameters

execaFile: string

execaArgs?: readonly string[]

Returns

Promise<SiExecResult>

Example

ts
const child = siExec.waitUntilEnd("aws", [
  "ec2",
  "describe-hosts"
]);

watch()

watch: (options, deadlineCount?) => Promise<WatchResult>

Parameters

options: WatchArgs

deadlineCount?: number

Returns

Promise<WatchResult>

Defined in

sandbox/exec.ts:30