GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Currently, wr uses child_process.exec() to run commands. Unfortunately, this buffers the output - not friendly. child_process.spawn(), on the other hand, does not buffer the output.
The default should probably be to use spawn(). This will require parsing the cmd, presumably by whitespace tokens, destroying any potential quoting you might have done in your command. But commands should be "simple" anyway, right? :-)
So, default to parse command and use spawn, with a command-line option to use exec() instead.