ShellExecuteOptions
Defined in: namespaces.ts:610
Options for shell.execute().
Properties
Section titled “Properties”command
Section titled “command”command:
string
Defined in: namespaces.ts:612
Command name (must be in the manifest’s shellCommands allowlist).
optionalargs?:string[]
Defined in: namespaces.ts:614
Arguments array (default: []).
optionalcwd?:string
Defined in: namespaces.ts:616
Working directory (absolute POSIX path or file:// URL).
timeout?
Section titled “timeout?”
optionaltimeout?:number
Defined in: namespaces.ts:618
Timeout in seconds (default: 120, maximum: 120).
optionalenv?:Record<string,string>
Defined in: namespaces.ts:620
Environment variables to merge with the host process environment.
onData?
Section titled “onData?”
optionalonData?: (chunk) =>void
Defined in: namespaces.ts:625
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