ShellExecuteOptions
Defined in: namespaces.ts:611
Options for shell.execute().
Properties
Section titled “Properties”command
Section titled “command”command:
string
Defined in: namespaces.ts:613
Command name (must be in the manifest’s shellCommands allowlist).
optionalargs?:string[]
Defined in: namespaces.ts:615
Arguments array (default: []).
optionalcwd?:string
Defined in: namespaces.ts:617
Working directory (absolute POSIX path or file:// URL).
timeout?
Section titled “timeout?”
optionaltimeout?:number
Defined in: namespaces.ts:619
Timeout in seconds (default: 120, maximum: 120).
optionalenv?:Record<string,string>
Defined in: namespaces.ts:621
Environment variables to merge with the host process environment.
onData?
Section titled “onData?”
optionalonData?: (chunk) =>void
Defined in: namespaces.ts:626
Optional callback invoked as output data arrives from the process (fn-47). Omit for the existing buffered behavior (no streaming).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void