@@ -95,7 +95,7 @@ export class HeftCommandLineParser extends CommandLineParser {
9595 this . _metricsCollector = new MetricsCollector ( ) ;
9696 }
9797
98- public async execute ( args ?: string [ ] ) : Promise < boolean > {
98+ public async executeAsync ( args ?: string [ ] ) : Promise < boolean > {
9999 // Defensively set the exit code to 1 so if the tool crashes for whatever reason,
100100 // we'll have a nonzero exit code.
101101 process . exitCode = 1 ;
@@ -166,9 +166,9 @@ export class HeftCommandLineParser extends CommandLineParser {
166166 this . addAction ( aliasAction ) ;
167167 }
168168
169- return await super . execute ( args ) ;
169+ return await super . executeAsync ( args ) ;
170170 } catch ( e ) {
171- await this . _reportErrorAndSetExitCode ( e as Error ) ;
171+ await this . _reportErrorAndSetExitCodeAsync ( e as Error ) ;
172172 return false ;
173173 }
174174 }
@@ -195,7 +195,7 @@ export class HeftCommandLineParser extends CommandLineParser {
195195 } ;
196196 await super . onExecute ( ) ;
197197 } catch ( e ) {
198- await this . _reportErrorAndSetExitCode ( e as Error ) ;
198+ await this . _reportErrorAndSetExitCodeAsync ( e as Error ) ;
199199 }
200200
201201 // If we make it here, things are fine and reset the exit code back to 0
@@ -235,7 +235,7 @@ export class HeftCommandLineParser extends CommandLineParser {
235235 } ;
236236 }
237237
238- private async _reportErrorAndSetExitCode ( error : Error ) : Promise < void > {
238+ private async _reportErrorAndSetExitCodeAsync ( error : Error ) : Promise < void > {
239239 if ( ! ( error instanceof AlreadyReportedError ) ) {
240240 this . globalTerminal . writeErrorLine ( error . toString ( ) ) ;
241241 }
0 commit comments