MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / scriptCommand

Function scriptCommand

projects/runtime-node/src/localProcess.ts:145–148  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

143}
144
145function scriptCommand(filePath: string): { command: string; args: string[] } {
146 if (process.platform === "win32") return { command: "powershell.exe", args: ["-ExecutionPolicy", "Bypass", "-File", filePath] }
147 return { command: process.env.SHELL || "/bin/bash", args: [filePath] }
148}
149
150export function createRuntimeNodeLocalProcessAdapter(): RuntimeNodeProcessAdapter {
151 const local: LocalProcessState = {

Callers 1

startScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected