feat: Expose AppRunner.run for easily serving from JS apps

* feat: make methods in CliRunner public

* change: rename CliRunner to AppRunner

* fix: process being passed incorrectly to runCli

* feat: expose AppRunner.run for easily serving from JS apps

* change: only make run methods on AppRunner public
This commit is contained in:
Ruben Taelman
2021-04-28 09:59:10 +02:00
committed by GitHub
parent f4a09a414d
commit d1eadd75e7
5 changed files with 387 additions and 315 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env node
// eslint-disable-next-line @typescript-eslint/naming-convention
const { CliRunner } = require('..');
new CliRunner(process).run();
const { AppRunner } = require('..');
new AppRunner().runCli(process);