MCPcopy Create free account
hub / github.com/github/awesome-copilot / makeExec

Function makeExec

extensions/java-modernization-studio/doctor.mjs:92–99  ·  view source on GitHub ↗
(env)

Source from the content-addressed store, hash-verified

90
91/** Build an exec function bound to a specific environment. */
92export function makeExec(env) {
93 return (cmd, args) =>
94 new Promise((resolve) => {
95 execFile(cmd, args, { timeout: 3500, windowsHide: true, env }, (error, stdout, stderr) => {
96 resolve({ error: error || null, stdout: String(stdout || ""), stderr: String(stderr || "") });
97 });
98 });
99}
100
101/**
102 * Expand a shell-style JAVA_HOME value from an rc assignment into a concrete path,

Callers 2

defaultExecFunction · 0.85
runDoctorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected