Add technical; snippet support

This commit is contained in:
2022-03-31 10:22:41 -05:00
parent 2a8571d6dd
commit 22c2b9f665
1093 changed files with 916277 additions and 133 deletions

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env -S node --experimental-repl-await
import {globalRegistry} from '@extollo/lib'
import {globalRegistry, env} from '@extollo/lib'
import {cli} from './bootstrap'
globalRegistry.run(async () => {
@@ -10,6 +10,12 @@ globalRegistry.run(async () => {
* ties your entire application together. The app container manages services
* and lifecycle.
*/
const app = cli()
await app.run()
const appInstance = cli()
const limitOverride = env('STACK_TRACE_LIMIT')
if ( limitOverride && !isNaN(limitOverride) ) {
Error.stackTraceLimit = limitOverride
}
await appInstance.run()
})