api-server/src/cli.ts

17 lines
510 B
TypeScript
Raw Normal View History

2023-04-01 02:59:26 +00:00
#!/usr/bin/env -S node --experimental-repl-await
import {globalRegistry} from '@extollo/lib'
import {cli} from './bootstrap'
globalRegistry.run(async () => {
/*
* The Application
* -----------------------------------------------------
* The application instance is a global inversion of control container that
* ties your entire application together. The app container manages services
* and lifecycle.
*/
const app = cli()
await app.run()
await app.destroy()
2023-04-01 02:59:26 +00:00
})