Skip to content

Commit aa62ada

Browse files
Merge pull request #25 from salesforcecli/sm/deprecate-scratch-org-connected-status
Sm/deprecate scratch org connected status
2 parents c53fba1 + 94c6a5a commit aa62ada

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

messages/list.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@
1616
"noActiveScratchOrgs": "No active scratch orgs found. Specify --all to see all scratch orgs",
1717
"deleteOrgs": "You have %s expired or deleted local scratch org authorizations. To remove authorizations for inactive orgs, run force:org:list --clean.",
1818
"noOrgsFound": "No orgs can be found.",
19-
"noOrgsFoundAction": "Use one of the commands in force:auth or force:org:create to add or create new scratch orgs."
19+
"noOrgsFoundAction": "Use one of the auth commands or force:org:create to add or create a scratch org.",
20+
21+
"scratchOrgRemoveConnectedStatusProperty": "Starting in API version 52, the JSON output of this command no longer returns the property connectedStatus for scratch orgs."
2022
}

src/commands/force/org/list.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,13 @@ export class OrgListCommand extends SfdxCommand {
7575
? groupedSortedOrgs.scratchOrgs
7676
: groupedSortedOrgs.scratchOrgs.filter(identifyActiveOrgByStatus),
7777
};
78-
78+
this.ux.warn(messages.getMessage('scratchOrgRemoveConnectedStatusProperty'));
7979
this.ux.styledHeader('Orgs');
8080

8181
this.printOrgTable(result.nonScratchOrgs, this.flags.skipconnectionstatus);
8282
// separate the table by a blank line.
8383
this.ux.log();
84+
8485
this.printScratchOrgTable(result.scratchOrgs);
8586

8687
return result;

0 commit comments

Comments
 (0)