MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / shellQuote

Function shellQuote

crates/opencode-plugin/host/plugin-host.ts:175–177  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

173// ---------------------------------------------------------------------------
174
175function shellQuote(value: string): string {
176 return `'${value.replace(/'/g, `'\\''`)}'`;
177}
178
179function templateToShellCommand(parts: TemplateStringsArray, values: unknown[]): string {
180 let command = parts[0] ?? "";

Callers 1

templateToShellCommandFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected