mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-25 18:46:17 +00:00
emit stdin with new line
This commit is contained in:
parent
8d5f410a4f
commit
755577003e
@ -31,7 +31,7 @@ Command.prototype.run = function(params, callback) {
|
||||
var cmd = spawn(params.cmd, params.args, params.options);
|
||||
|
||||
if (self.emitIn) {
|
||||
self.emit('stdin', params.cmd + ' ' + params.args.join(' '));
|
||||
self.emit('stdin', params.cmd + ' ' + params.args.join(' ') + '\n');
|
||||
}
|
||||
|
||||
cmd.stdout.on('data', function(data) {
|
||||
|
Loading…
Reference in New Issue
Block a user