Method to run a native command without having to write a native host. Requires a permission nativeCommands.
- {string}
commandCommand to execute. Has to be a command binary in the system path and not a path to a binary. - {Array.<string>} [
arguments] Optionally pass some arguments to the command
runtime.Port though modified to be plain stdio, without message sizes.
- Some kind of error if the command doesn't exist, maybe an
onNotFoundevent sink on the port. - Figure out what kind of encoding the stdio communication should have. I'd figure using system encoding or utf-8 should be fine, use
connectNativefor binary operations. - Forbid the use of system commands (so all unix and dos commands, as well as
ps)