MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / runCommand

Function runCommand

apps/desktop/src/main/raycast-integration.ts:336–354  ·  view source on GitHub ↗
(
  command: string,
  args: string[],
  cwd: string,
  env: NodeJS.ProcessEnv,
  label: string
)

Source from the content-addressed store, hash-verified

334}
335
336async function runCommand(
337 command: string,
338 args: string[],
339 cwd: string,
340 env: NodeJS.ProcessEnv,
341 label: string
342): Promise<void> {
343 try {
344 await execFileAsync(command, args, {
345 cwd,
346 env,
347 encoding: 'utf8',
348 timeout: COMMAND_TIMEOUT_MS,
349 maxBuffer: 20 * 1024 * 1024
350 })
351 } catch (err) {
352 throw new Error(`${label} failed.${formatProcessError(err)}`)
353 }
354}
355
356async function runRaycastDevelopmentImport(
357 npmPath: string,

Callers 1

installRaycastExtensionFunction · 0.70

Calls 1

formatProcessErrorFunction · 0.85

Tested by

no test coverage detected