Allow specifying stdin (#360)

* Allow specifying stdin
This commit is contained in:
Seth Vargo authored and GitHub committed 2020-04-13 13:39:42 -04:00
1 parent b8b978b68b
commit 688bcddab6
6 files changed
+67

No files matched your search

+8
View File
@@ -524,6 +524,14 @@ export class ToolRunner extends events.EventEmitter {
resolve(exitCode)
}
})
if (this.options.input) {
if (!cp.stdin) {
throw new Error('child process missing stdin')
}
cp.stdin.end(this.options.input)
}
})
}
}