File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ No active scratch orgs found. Specify --all to see all scratch orgs.
4646
4747# deleteOrgs
4848
49- You have %s expired or deleted local scratch org authorizations. To remove authorizations for inactive orgs, run "org list --clean".
49+ You have %s expired or deleted local scratch org authorizations. To remove authorizations for inactive orgs, run "sf org list --clean".%s
5050
5151# noOrgsFound
5252
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import ansis, { type Ansis } from 'ansis';
1212import { OrgListUtil , identifyActiveOrgByStatus } from '../../shared/orgListUtil.js' ;
1313import { getStyledObject } from '../../shared/orgHighlighter.js' ;
1414import { ExtendedAuthFields , FullyPopulatedScratchOrgFields } from '../../shared/orgTypes.js' ;
15+ import { EOL } from 'node:os' ;
1516
1617Messages . importMessagesDirectoryFromMetaUrl ( import . meta. url ) ;
1718const messages = Messages . loadMessages ( '@salesforce/plugin-org' , 'list' ) ;
@@ -87,8 +88,8 @@ export class OrgListCommand extends SfCommand<OrgListResult> {
8788 await this . cleanScratchOrgs ( groupedSortedOrgs . expiredScratchOrgs , ! flags [ 'no-prompt' ] ) ;
8889 }
8990
90- if ( groupedSortedOrgs . expiredScratchOrgs . length > 10 && ! flags . clean ) {
91- this . warn ( messages . getMessage ( 'deleteOrgs' , [ groupedSortedOrgs . expiredScratchOrgs . length ] ) ) ;
91+ if ( groupedSortedOrgs . expiredScratchOrgs . length >= 1 && ! flags . clean ) {
92+ this . warn ( messages . getMessage ( 'deleteOrgs' , [ groupedSortedOrgs . expiredScratchOrgs . length , EOL ] ) ) ;
9293 }
9394
9495 const result = {
You can’t perform that action at this time.
0 commit comments