add ability to access from cli

This commit is contained in:
2022-01-14 14:44:54 -06:00
parent 77fa6ad867
commit 564abb55c7
4 changed files with 107 additions and 0 deletions

15
src/cli.ts Normal file
View File

@@ -0,0 +1,15 @@
#!/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()
})