MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / wrapShellCommand

Function wrapShellCommand

src/cm/lsp/installRuntime.ts:33–36  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

31}
32
33function wrapShellCommand(command: string): string {
34 const script = command.trim();
35 return `sh -lc ${quoteArg(`set -e\n${script}`)}`;
36}
37
38export async function runQuickCommand(command: string): Promise<string> {
39 const wrapped = wrapShellCommand(command);

Callers 2

runQuickCommandFunction · 0.85
runForegroundCommandFunction · 0.85

Calls 1

quoteArgFunction · 0.85

Tested by

no test coverage detected