MCPcopy Index your code
hub / github.com/supermemoryai/cloudflare-saas-stack / setEnvironmentVariable

Function setEnvironmentVariable

scripts/setup.ts:334–348  ·  view source on GitHub ↗
(name: string, value: string)

Source from the content-addressed store, hash-verified

332}
333
334function setEnvironmentVariable(name: string, value: string) {
335 const platform = os.platform();
336 let command: string;
337
338 if (platform === "win32") {
339 command = `set ${name}=${value}`; // Windows Command Prompt
340 } else {
341 command = `export ${name}=${value}`; // Unix-like shells
342 }
343
344 console.log(
345 `\x1b[33mPlease run this command: ${command} and then rerun the setup script.\x1b[0m`,
346 );
347 process.exit(1);
348}
349
350async function main() {
351 try {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected