mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-25 15:01:49 +00:00
14 lines
286 B
JavaScript
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');
|
|
}
|