MCPcopy
hub / github.com/prisma/prisma / main

Function main

scripts/run-studio.ts:19–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19async function main(): Promise<void> {
20 const url = process.env.STUDIO_DATABASE_URL ?? process.argv[2]
21 const port = process.env.STUDIO_PORT ?? process.argv[3] ?? '5555'
22 const browser = process.env.STUDIO_BROWSER ?? process.argv[4] ?? 'none'
23
24 if (!url) {
25 printUsage()
26 process.exitCode = 1
27 return
28 }
29
30 const result = await Studio.new().parse(['--url', url, '--port', port, '--browser', browser], defaultTestConfig())
31
32 if (result instanceof Error) {
33 throw result
34 }
35}
36
37void main()

Callers 1

run-studio.tsFile · 0.70

Calls 4

defaultTestConfigFunction · 0.90
printUsageFunction · 0.85
parseMethod · 0.65
newMethod · 0.45

Tested by

no test coverage detected