Skip to content

Commit 5b62c40

Browse files
authored
Merge pull request #56 from salesforcecli/jshackell-messages
fix: clean up help and add examples back to force:org:list
2 parents 331c0a1 + 0f03592 commit 5b62c40

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

messages/list.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"all": "include expired, deleted, and unknown-status scratch orgs",
1111
"clean": "remove all local org authorizations for non-active orgs",
1212
"noPrompt": "do not prompt for confirmation",
13-
"skipConnectionStatus": "skips retrieving the connection status of non-scratch orgs",
13+
"skipConnectionStatus": "skip retrieving the connection status of non-scratch orgs",
1414

1515
"prompt": "Found (%s) org configurations to delete. Are you sure (yes/no)?",
1616
"noActiveScratchOrgs": "No active scratch orgs found. Specify --all to see all scratch orgs",

messages/open.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"description": "open your default scratch org, or another org that you specify,\nTo open a specific page, specify the portion of the URL after \"yourInstance.salesforce.com/\" as --path.\nFor example, specify \"--path lightning\" to open Lightning Experience, or specify \"--path /apex/YourPage\" to open a Visualforce page.\nTo generate a URL but not launch your browser, specify --urlonly",
2+
"description": "open your default scratch org, or another specified org\nTo open a specific page, specify the portion of the URL after \"yourInstance.salesforce.com/\" as --path.\nFor example, specify \"--path lightning\" to open Lightning Experience, or specify \"--path /apex/YourPage\" to open a Visualforce page.\nTo generate a URL but not launch it in your browser, specify --urlonly.",
33
"examples": [
44
"sfdx force:org:open",
55
"sfdx force:org:open -u [email protected]",

src/commands/force/org/list.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* Licensed under the BSD 3-Clause license.
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
7+
import { EOL } from 'os';
8+
79
import { flags, FlagsConfig, SfdxCommand } from '@salesforce/command';
810
import { AuthInfo, ConfigAggregator, ConfigInfo, Connection, Org, SfdxError, Messages } from '@salesforce/core';
911
import { sortBy } from '@salesforce/kit';
@@ -17,7 +19,7 @@ const messages = Messages.loadMessages('@salesforce/plugin-org', 'list');
1719

1820
export class OrgListCommand extends SfdxCommand {
1921
public static readonly description = messages.getMessage('description');
20-
22+
public static readonly examples = messages.getMessage('examples').split(EOL);
2123
public static readonly requiresProject = false;
2224
public static readonly flagsConfig: FlagsConfig = {
2325
verbose: flags.builtin({

0 commit comments

Comments
 (0)