Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion messages/list.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ No active scratch orgs found. Specify --all to see all scratch orgs.

# deleteOrgs

You have %s expired or deleted local scratch org authorizations. To remove authorizations for inactive orgs, run "org list --clean".
You have %s expired or deleted local scratch org authorizations. To remove authorizations for inactive orgs, run "sf org list --clean".%s

# noOrgsFound

Expand Down
5 changes: 3 additions & 2 deletions src/commands/org/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/

import { EOL } from 'node:os';
import { Flags, loglevel, SfCommand } from '@salesforce/sf-plugins-core';
import { AuthInfo, ConfigAggregator, ConfigInfo, Connection, Org, SfError, Messages, Logger } from '@salesforce/core';
import { Interfaces } from '@oclif/core';
Expand Down Expand Up @@ -87,8 +88,8 @@ export class OrgListCommand extends SfCommand<OrgListResult> {
await this.cleanScratchOrgs(groupedSortedOrgs.expiredScratchOrgs, !flags['no-prompt']);
}

if (groupedSortedOrgs.expiredScratchOrgs.length > 10 && !flags.clean) {
this.warn(messages.getMessage('deleteOrgs', [groupedSortedOrgs.expiredScratchOrgs.length]));
if (groupedSortedOrgs.expiredScratchOrgs.length >= 1 && !flags.clean) {
this.warn(messages.getMessage('deleteOrgs', [groupedSortedOrgs.expiredScratchOrgs.length, EOL]));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

msg with newline before table is printed:
Image

}

const result = {
Expand Down
Loading