mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2025-12-27 04:58:17 +00:00
Run exec silently
This commit is contained in:
parent
3ee44ac681
commit
0e104db4f4
1 changed files with 3 additions and 2 deletions
5
index.js
5
index.js
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue