MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / execFileNoThrow

Function execFileNoThrow

source code/utils/execFileNoThrow.ts:28–46  ·  view source on GitHub ↗
(
  file: string,
  args: string[],
  options: ExecFileOptions = {
    timeout: 10 * SECONDS_IN_MINUTE * MS_IN_SECOND,
    preserveOutputOnError: true,
    useCwd: true,
  },
)

Source from the content-addressed store, hash-verified

26}
27
28export function execFileNoThrow(
29 file: string,
30 args: string[],
31 options: ExecFileOptions = {
32 timeout: 10 * SECONDS_IN_MINUTE * MS_IN_SECOND,
33 preserveOutputOnError: true,
34 useCwd: true,
35 },
36): Promise<{ stdout: string; stderr: string; code: number; error?: string }> {
37 return execFileNoThrowWithCwd(file, args, {
38 abortSignal: options.abortSignal,
39 timeout: options.timeout,
40 preserveOutputOnError: options.preserveOutputOnError,
41 cwd: options.useCwd ? getCwd() : undefined,
42 env: options.env,
43 stdin: options.stdin,
44 input: options.input,
45 })
46}
47
48type ExecFileWithCwdOptions = {
49 abortSignal?: AbortSignal

Callers 15

context.tsFile · 0.85
hasSessionFunction · 0.85
ensureSessionFunction · 0.85
countWorktreeChangesFunction · 0.85
loadChangesFunction · 0.85
ComputerUseTccPanelFunction · 0.85
viewTeammateOutputFunction · 0.85
fetchGitDiffFunction · 0.85
fetchGitDiffHunksFunction · 0.85
fetchUntrackedFilesFunction · 0.85
getIsHeadOnRemoteFunction · 0.85

Calls 2

execFileNoThrowWithCwdFunction · 0.85
getCwdFunction · 0.85

Tested by

no test coverage detected