MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / shellQuote

Function shellQuote

vscode-extension/src/extension.ts:81–84  ·  view source on GitHub ↗

Quote a shell string for bash / zsh.

(s: string)

Source from the content-addressed store, hash-verified

79
80/** Quote a shell string for bash / zsh. */
81function shellQuote(s: string): string {
82 // Single-quote everything; escape embedded single quotes
83 return "'" + s.replace(/'/g, "'\\''") + "'";
84}
85
86/** Command 1: open QodeX in a terminal at workspace root (interactive). */
87async function openInTerminal(uri?: vscode.Uri): Promise<void> {

Callers 5

askAboutSelectionFunction · 0.70
editCurrentFileFunction · 0.70
runPlanFunction · 0.70
fixDiagnosticsFunction · 0.70
explainDiagnosticFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected