Skip to content

Commit

Permalink
Rename processing to preparing
Browse files Browse the repository at this point in the history
  • Loading branch information
aswasif007 committed May 22, 2024
1 parent 67c8b89 commit 4200fef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/commands/phpmyadmin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class PhpMyAdminCommand {
track: CommandTracker;
steps = {
ENABLE: 'enable',
PROCESSING: 'processing',
PREPARING: 'preparing',
GENERATE: 'generate',
};
private progressTracker: ProgressTracker;
Expand All @@ -137,7 +137,7 @@ export class PhpMyAdminCommand {
this.track = trackerFn;
this.progressTracker = new ProgressTracker( [
{ id: this.steps.ENABLE, name: 'Enabling PHPMyAdmin for this environment' },
{ id: this.steps.PROCESSING, name: 'Processing' },
{ id: this.steps.PREPARING, name: 'Preparing' },
{ id: this.steps.GENERATE, name: 'Generating access link' },
] );
}
Expand Down Expand Up @@ -236,14 +236,14 @@ export class PhpMyAdminCommand {
);
}

this.progressTracker.stepRunning( this.steps.PROCESSING );
this.progressTracker.stepRunning( this.steps.PREPARING );
try {
await pollUntil( this.readyToServe.bind( this ), 5000 );
this.progressTracker.stepSuccess( this.steps.PROCESSING );
this.progressTracker.stepSuccess( this.steps.PREPARING );
} catch ( err ) {
const error = err as Error;
this.progressTracker.updateMessage( `Skipped: ${ error.message }` );
this.progressTracker.stepSkipped( this.steps.PROCESSING );
this.progressTracker.stepSkipped( this.steps.PREPARING );
}

let url;
Expand Down

0 comments on commit 4200fef

Please sign in to comment.