Skip to content

Commit

Permalink
feat: more flexibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Jul 23, 2024
1 parent 4f6f2e1 commit 41be8df
Show file tree
Hide file tree
Showing 4 changed files with 198 additions and 132 deletions.
7 changes: 5 additions & 2 deletions src/commands/org/create/scratch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,29 +176,32 @@ export default class OrgCreateScratch extends SfCommand<ScratchCreateResponse> {
title: flags.async ? 'Creating Scratch Org (async)' : 'Creating Scratch Org',
jsonEnabled: this.jsonEnabled(),
data: { alias: flags.alias },
info: [
postInfoBlock: [
{
label: 'Request Id',
type: 'dynamic-key-value',
get: (data) =>
data?.scratchOrgInfo?.Id && terminalLink(data.scratchOrgInfo.Id, `${baseUrl}/${data.scratchOrgInfo.Id}`),
bold: true,
},
{
label: 'OrgId',
type: 'dynamic-key-value',
get: (data) => data?.scratchOrgInfo?.ScratchOrg,
bold: true,
color: 'cyan',
},
{
label: 'Username',
type: 'dynamic-key-value',
get: (data) => data?.scratchOrgInfo?.SignupUsername,
bold: true,
color: 'cyan',
},
{
label: 'Alias',
type: 'static-key-value',
get: (data) => data?.alias,
static: true,
},
],
});
Expand Down
7 changes: 5 additions & 2 deletions src/commands/org/resume/scratch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,29 +65,32 @@ export default class OrgResumeScratch extends SfCommand<ScratchCreateResponse> {
title: 'Resuming Scratch Org',
jsonEnabled: this.jsonEnabled(),
data: { alias: cached?.alias },
info: [
postInfoBlock: [
{
label: 'Request Id',
type: 'dynamic-key-value',
get: (data) =>
data?.scratchOrgInfo?.Id && terminalLink(data.scratchOrgInfo.Id, `${hubBaseUrl}/${data.scratchOrgInfo.Id}`),
bold: true,
},
{
label: 'OrgId',
type: 'dynamic-key-value',
get: (data) => data?.scratchOrgInfo?.ScratchOrg,
bold: true,
color: 'cyan',
},
{
label: 'Username',
type: 'dynamic-key-value',
get: (data) => data?.scratchOrgInfo?.SignupUsername,
bold: true,
color: 'cyan',
},
{
label: 'Alias',
type: 'static-key-value',
get: (data) => data?.alias,
static: true,
},
],
});
Expand Down
1 change: 1 addition & 0 deletions src/components/design-elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const icons = {
skipped: figures.circle,
completed: figures.tick,
failed: figures.cross,
current: figures.play,
};

export const spinners: Record<string, SpinnerName> = {
Expand Down
Loading

0 comments on commit 41be8df

Please sign in to comment.