Skip to content

Commit d256725

Browse files
committed
chore: bump mso
1 parent 43c38d4 commit d256725

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/commands/org/create/scratch.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export default class OrgCreateScratch extends SfCommand<ScratchCreateResponse> {
171171
flags['client-id'] ? await this.secretPrompt({ message: messages.getMessage('prompt.secret') }) : undefined
172172
);
173173

174-
const stager = new MultiStageOutput<ScratchOrgLifecycleEvent & { alias: string | undefined }>({
174+
const mso = new MultiStageOutput<ScratchOrgLifecycleEvent & { alias: string | undefined }>({
175175
stages: flags.async ? ['prepare request', 'send request', 'done'] : scratchOrgLifecycleStages,
176176
title: flags.async ? 'Creating Scratch Org (async)' : 'Creating Scratch Org',
177177
data: { alias: flags.alias },
@@ -207,9 +207,9 @@ export default class OrgCreateScratch extends SfCommand<ScratchCreateResponse> {
207207
});
208208

209209
lifecycle.on<ScratchOrgLifecycleEvent>(scratchOrgLifecycleEventName, async (data): Promise<void> => {
210-
stager.goto(data.stage, data);
210+
mso.skipTo(data.stage, data);
211211
if (data.stage === 'done') {
212-
stager.stop();
212+
mso.stop();
213213
}
214214
return Promise.resolve();
215215
});
@@ -222,16 +222,16 @@ export default class OrgCreateScratch extends SfCommand<ScratchCreateResponse> {
222222
}
223223

224224
if (flags.async) {
225-
stager.goto('done', { scratchOrgInfo });
226-
stager.stop();
225+
mso.skipTo('done', { scratchOrgInfo });
226+
mso.stop();
227227
this.info(messages.getMessage('action.resume', [this.config.bin, scratchOrgInfo.Id]));
228228
} else {
229229
this.logSuccess(messages.getMessage('success'));
230230
}
231231

232232
return { username, scratchOrgInfo, authFields, warnings, orgId: authFields?.orgId };
233233
} catch (error) {
234-
stager.stop(error as Error);
234+
mso.error();
235235
if (error instanceof SfError && error.name === 'ScratchOrgInfoTimeoutError') {
236236
const scratchOrgInfoId = (error.data as { scratchOrgInfoId: string }).scratchOrgInfoId;
237237
const resumeMessage = messages.getMessage('action.resume', [this.config.bin, scratchOrgInfoId]);

src/commands/org/resume/scratch.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default class OrgResumeScratch extends SfCommand<ScratchCreateResponse> {
6060
const cached = cache.get(jobId);
6161
const hubBaseUrl = cached?.hubBaseUrl;
6262

63-
const stager = new MultiStageOutput<ScratchOrgLifecycleEvent & { alias: string | undefined }>({
63+
const mso = new MultiStageOutput<ScratchOrgLifecycleEvent & { alias: string | undefined }>({
6464
stages: scratchOrgLifecycleStages,
6565
title: 'Resuming Scratch Org',
6666
data: { alias: cached?.alias },
@@ -96,9 +96,9 @@ export default class OrgResumeScratch extends SfCommand<ScratchCreateResponse> {
9696
});
9797

9898
lifecycle.on<ScratchOrgLifecycleEvent>(scratchOrgLifecycleEventName, async (data): Promise<void> => {
99-
stager.goto(data.stage, data);
99+
mso.skipTo(data.stage, data);
100100
if (data.stage === 'done') {
101-
stager.stop();
101+
mso.stop();
102102
}
103103
return Promise.resolve();
104104
});
@@ -109,7 +109,7 @@ export default class OrgResumeScratch extends SfCommand<ScratchCreateResponse> {
109109
this.logSuccess(messages.getMessage('success'));
110110
return { username, scratchOrgInfo, authFields, warnings, orgId: authFields?.orgId };
111111
} catch (e) {
112-
stager.stop(e as Error);
112+
mso.error();
113113

114114
if (cache.keys() && e instanceof Error && e.name === 'CacheMissError') {
115115
// we have something in the cache, but it didn't match what the user passed in

0 commit comments

Comments
 (0)