Files
renovate/tools/utils/exec.mjs
T
2023-04-28 12:17:48 +00:00

14 lines
286 B
JavaScript

import { execSync } from 'node:child_process';
const maxBuffer = 20 * 1024 * 1024;
/**
* Execute a command
* @param {string} cmd
* @returns {string}
*/
export function exec(cmd) {
// args from shelljs
return execSync(cmd, { maxBuffer, stdio: [0, 1, 2] }).toString('utf-8');
}