We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb18af2 commit 61a945dCopy full SHA for 61a945d
packages/cli/src/CliApplication.ts
@@ -149,13 +149,11 @@ export default class CliApplication
149
*/
150
public async run(argv?: readonly string[], options?: ParseOptions): Promise<boolean>
151
{
152
- const callback = CallbackWrapper.makeFor(
+ return await this.core.run(CallbackWrapper.makeFor(
153
this,
154
this.parse,
155
[argv, options]
156
- );
157
-
158
- return await this.core.run(callback);
+ ));
159
}
160
161
/**
@@ -228,6 +226,8 @@ export default class CliApplication
228
226
229
227
protected exit(code: number = 0): void|never
230
+ this.core.destroy();
+
231
if (this.processExit) {
232
process.exit(code);
233
0 commit comments