Browse Source

added program end

Pablo Barrera Yaksic 7 months ago
parent
commit
828a047744
1 changed files with 7 additions and 3 deletions
  1. 7 3
      src/index.ts

+ 7 - 3
src/index.ts

@@ -29,6 +29,10 @@ async function main (): Promise<void> {
   await theclinic(null, context, () => {});
 }
 
-main().catch((err) => {
-  console.error(err)
-});
+main()
+  .then(() => {
+    process.exit(0);
+  })
+  .catch((err) => {
+    console.error(err)
+  });