MCPcopy Create free account
hub / github.com/TanStack/ai / main

Function main

examples/ts-react-native-chat/scripts/dev.mjs:348–363  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

346}
347
348function main() {
349 const args = new Set(process.argv.slice(2))
350
351 if (args.has('--help') || args.has('-h')) {
352 printHelp()
353 return
354 }
355
356 if (args.has('--print-config')) {
357 loadEnvFileIntoEnv()
358 printConfig(createDevConfig())
359 return
360 }
361
362 startDev()
363}
364
365const entryPath = process.argv[1] ? path.resolve(process.argv[1]) : ''
366if (entryPath === fileURLToPath(import.meta.url)) {

Callers 1

dev.mjsFile · 0.70

Calls 6

printHelpFunction · 0.85
loadEnvFileIntoEnvFunction · 0.85
printConfigFunction · 0.85
createDevConfigFunction · 0.85
startDevFunction · 0.85
hasMethod · 0.80

Tested by

no test coverage detected