Optionaloptions: ExecutableOptionsExecutes the command specified by cmd with optional arguments and options.
Optionalargs: string[]Optional array of arguments to pass to the command.
A promise that resolves when the child process exits. The resolved value includes the exit code, a boolean indicating whether an error occurred, and the collected stdout and stderr output.
Executes a shell command and streams its output.
The Executable class uses Node.js's child_process.spawn to run a given command. It collects the standard output and error streams, optionally forwards the data through callbacks provided in the options object, and resolves a promise once the child process exits.