13
0
Fork 0
mirror of https://github.com/PaulHatch/semantic-version.git synced 2026-07-02 19:19:32 +00:00

Run exec silently

This commit is contained in:
Paul Hatcherian 2019-12-05 20:53:39 -05:00
parent 3ee44ac681
commit 0e104db4f4

View file

@ -4,9 +4,10 @@ const eol = require('os').EOL;
const cmd = async (command, ...args) => {
let output = '';
const options = {};
const options = {
silent: true
};
options.listeners = {
silent: true,
stdout: (data) => { output += data.toString(); }
};
await exec.exec(command, args, options)