Skip to content

Commit 64f0f72

Browse files
committed
feat: add deprecation warning
1 parent c53fba1 commit 64f0f72

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 commands in force:auth or force:org:create to add or create new scratch orgs.",
20+
21+
"scratchOrgRemoveConnectedStatusProperty": "The property connectedStatus will no longer be returned for scratch orgs in the JSON output of this command starting in version 52."
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)