MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / toPowerShellString

Function toPowerShellString

packages/codex-native-api/src/daemon_manager.ts:1184–1186  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

1182}
1183
1184function toPowerShellString(value: string): string {
1185 return `'${String(value ?? '').replace(/'/gu, "''")}'`;
1186}
1187
1188function resolveHomeDir(env: NodeJS.ProcessEnv, platform: NodeJS.Platform): string {
1189 const requested = normalizeString(platform === 'win32' ? (env.USERPROFILE || env.HOME) : (env.HOME || env.USERPROFILE));

Callers 6

startDaemonFunction · 0.85
stopDaemonFunction · 0.85
restartDaemonFunction · 0.85
statusDaemonFunction · 0.85
uninstallDaemonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected