mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-06 18:57:56 +01:00
b14bb92d78
* Create bit-cli folder with configs * Add bit-cli to workspace * Refactor CLI app structure * services are managed by the ServiceContainer * programs are registered by register(Oss|Bit)Program * the app is bootstrapped by Main * Reapply changes from #9099 * Reapply changes from #8604 * Reapply changes from #9115
18 lines
526 B
TypeScript
18 lines
526 B
TypeScript
import { program } from "commander";
|
|
|
|
import { registerOssPrograms } from "./register-oss-programs";
|
|
import { ServiceContainer } from "./service-container";
|
|
|
|
async function main() {
|
|
const serviceContainer = new ServiceContainer();
|
|
await serviceContainer.init();
|
|
|
|
await registerOssPrograms(serviceContainer);
|
|
|
|
program.parse(process.argv);
|
|
}
|
|
|
|
// Node does not support top-level await statements until ES2022, esnext, etc which we don't use yet
|
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
main();
|