MCPcopy
hub / github.com/docmirror/dev-sidecar / execFile

Function execFile

packages/core/src/shell/shell.js:175–192  ·  view source on GitHub ↗
(file, args, options)

Source from the content-addressed store, hash-verified

173}
174
175async function execFile (file, args, options) {
176 return new Promise((resolve, reject) => {
177 try {
178 childProcess.execFile(file, args, options, (err, stdout) => {
179 if (err) {
180 log.error('文件执行出错:', file, err)
181 reject(err)
182 return
183 }
184 log.debug('文件执行成功:', file)
185 resolve(stdout)
186 })
187 } catch (e) {
188 log.error('文件执行出错:', file, e)
189 reject(e)
190 }
191 })
192}
193
194module.exports = {
195 getSystemShell,

Callers 1

windowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected