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

Function prompt

scripts/setup.ts:20–26  ·  view source on GitHub ↗
(message: string, defaultValue: string)

Source from the content-addressed store, hash-verified

18
19// Function to prompt user for input without readline-sync
20async function prompt(message: string, defaultValue: string): Promise<string> {
21 return (await text({
22 message: `${message} (${defaultValue}):`,
23 placeholder: defaultValue,
24 defaultValue,
25 })) as string;
26}
27
28// Function to extract account IDs from `wrangler whoami` output
29function extractAccountDetails(output: string): { name: string; id: string }[] {

Callers 4

createPagesProjectFunction · 0.85
createBucketR2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected