MCPcopy
hub / github.com/vercel/next.js / exec

Function exec

scripts/pr-status.js:11–22  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

9// ============================================================================
10
11function exec(cmd) {
12 try {
13 return execSync(cmd, {
14 encoding: 'utf8',
15 maxBuffer: 50 * 1024 * 1024, // 50MB for large logs
16 }).trim()
17 } catch (error) {
18 console.error(`Command failed: ${cmd}`)
19 console.error(error.stderr || error.message)
20 throw error
21 }
22}
23
24function execAsync(prog, args) {
25 return new Promise((resolve, reject) => {

Callers 15

mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.70
writeTypesFunction · 0.70
sweep.cjsFile · 0.70
execJsonFunction · 0.70
getBranchInfoFunction · 0.70
getWorkflowRunsFunction · 0.70
getAllJobsFunction · 0.70
getPRReviewThreadsFunction · 0.70
getFlakyTestsFunction · 0.70
getGitInfoFunction · 0.70

Calls 2

trimMethod · 0.80
errorMethod · 0.65

Tested by

no test coverage detected