MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / prompt

Function prompt

scripts/grant-credits.ts:8–12  ·  view source on GitHub ↗
(rl: ReturnType<typeof createInterface>, question: string)

Source from the content-addressed store, hash-verified

6import { eq } from 'drizzle-orm'
7
8function prompt(rl: ReturnType<typeof createInterface>, question: string): Promise<string> {
9 return new Promise((resolve) => {
10 rl.question(question, (answer) => resolve(answer.trim()))
11 })
12}
13
14async function lookupUserByEmail(email: string) {
15 const [user] = await db

Callers 1

mainFunction · 0.85

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected