MCPcopy Index your code
hub / github.com/coderoad/coderoad-vscode / exec

Function exec

src/services/node/index.ts:25–29  ·  view source on GitHub ↗
(params: ExecParams)

Source from the content-addressed store, hash-verified

23}
24
25export const exec = (params: ExecParams): Promise<{ stdout: string; stderr: string }> | never => {
26 const cwd = join(WORKSPACE_ROOT, params.dir || '')
27 logger(`Calling command: ${params.command}`)
28 return asyncExec(params.command, { cwd })
29}
30
31export const exists = (...paths: string[]): boolean | never => {
32 const filePath = getWorkspacePath(...paths)

Callers 15

stashAllFilesFunction · 0.90
cherryPickCommitFunction · 0.90
saveCommitFunction · 0.90
clearFunction · 0.90
initFunction · 0.90
checkRemoteConnectsFunction · 0.90
addRemoteFunction · 0.90
checkRemoteExistsFunction · 0.90
loadCommitHistoryFunction · 0.90
getCommitMessageFunction · 0.90
commitsExistsByMessageFunction · 0.90
validateGitConfigFunction · 0.90

Calls 1

loggerFunction · 0.50

Tested by

no test coverage detected