Execute a command and capture stdout/stderr (buffered).
Optionalopts: RunCommandResultOptionsExecute a command and capture stdout/stderr (buffered).
Command string (shell) or argv array (shell-off supported).
Shell setting: false for plain execution, true for the OS
default shell (powershell.exe on Windows, /bin/bash elsewhere), or a
shell path. An argv array is quoted for that shell.
Optionalopts: RunCommandResultOptions
Execution options (cwd/env/timeout).
A promise resolving to the captured result.
Execute a command and capture stdout/stderr (buffered).
Param: command
Command string (shell) or argv array (shell-off supported).
Param: shell
Shell setting: false for plain execution, true for the OS default shell (
powershell.exeon Windows,/bin/bashelsewhere), or a shell path. An argv array is quoted for that shell.Param: opts
Execution options (cwd/env/timeout).
Returns
A promise resolving to the captured result.