MCPcopy
hub / github.com/coder/mux / buildShellExport

Function buildShellExport

src/node/runtime/shellEnv.ts:11–18  ·  view source on GitHub ↗
(
  key: string,
  value: string,
  quoteValue: (value: string) => string = shellQuote
)

Source from the content-addressed store, hash-verified

9}
10
11export function buildShellExport(
12 key: string,
13 value: string,
14 quoteValue: (value: string) => string = shellQuote
15): string {
16 assertShellEnvName(key);
17 return `export ${key}=${quoteValue(value)}`;
18}

Callers 4

execFunction · 0.90
shellEnv.test.tsFile · 0.90
buildWrapperScriptFunction · 0.90
execFunction · 0.90

Calls 1

assertShellEnvNameFunction · 0.85

Tested by

no test coverage detected