MCPcopy Create free account
hub / github.com/Noumena-Network/code / getShellArgs

Function getShellArgs

src/cli/up.ts:195–201  ·  view source on GitHub ↗
(shellPath: string, script: string)

Source from the content-addressed store, hash-verified

193}
194
195function getShellArgs(shellPath: string, script: string): string[] {
196 const shellName = parse(shellPath).name.toLowerCase()
197 if (shellName === 'fish') {
198 return ['-c', script]
199 }
200 return ['-lc', script]
201}
202
203async function runBlock(block: ScriptBlock, cwd: string): Promise<number> {
204 const shellPath = resolveShellForLanguage(block.language)

Callers 1

runBlockFunction · 0.85

Calls 1

parseFunction · 0.50

Tested by

no test coverage detected