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

Function executeCommand

scripts/setup.ts:10–17  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

8
9// Function to execute shell commands
10function executeCommand(command: string) {
11 console.log(`\x1b[33m${command}\x1b[0m`);
12 try {
13 return execSync(command, { encoding: "utf-8" });
14 } catch (error: any) {
15 return { error: true, message: error.stdout || error.stderr };
16 }
17}
18
19// Function to prompt user for input without readline-sync
20async function prompt(message: string, defaultValue: string): Promise<string> {

Callers 5

createPagesProjectFunction · 0.85
createBucketR2Function · 0.85
runDatabaseMigrationsFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected