Skip to content

Commit 0826e0a

Browse files
authored
Merge pull request #750 from salesforcecli/sm/flag-message-naming-conventions
style: flag naming convention
2 parents 5ee2626 + 8a9363b commit 0826e0a

File tree

14 files changed

+62
-62
lines changed

14 files changed

+62
-62
lines changed

messages/clone.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,27 @@ Set the --targetusername (-u) parameter to a production org with sandbox license
1414

1515
- $ <%= config.bin %> <%= command.id %> -t sandbox SandboxName=NewClonedSandbox SourceSandboxName=ExistingSandbox -u prodOrg -a MyDevSandbox
1616

17-
# flags.type
17+
# flags.type.summary
1818

1919
Type of org to create.
2020

21-
# flags.wait
21+
# flags.wait.summary
2222

2323
Number of minutes to wait while polling for status.
2424

25-
# flags.setdefaultusername
25+
# flags.setdefaultusername.summary
2626

2727
Set the cloned org as your default.
2828

29-
# flags.setalias
29+
# flags.setalias.summary
3030

3131
Alias for the cloned org.
3232

33-
# flags.definitionfile
33+
# flags.definitionfile.summary
3434

3535
Path to the sandbox definition file.
3636

37-
# flagsLong.wait
37+
# flags.wait.description
3838

3939
Sets the streaming client socket timeout, in minutes. If the streaming client socket has no contact from the server for a number of minutes, the client exits. Specify a longer wait time if timeouts occur frequently.
4040

messages/create.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,43 +20,43 @@ Creates a scratch org or a sandbox org using the values specified in a configura
2020

2121
- $ <%= config.bin %> <%= command.id %> -t sandbox -f config/dev-sandbox-def.json -a MyDevSandbox -u prodOrg
2222

23-
# flags.clientId
23+
# flags.clientid.summary
2424

2525
Connected app consumer key; not supported for sandbox org creation.
2626

27-
# flags.setDefaultUsername
27+
# flags.setdefaultusername.summary
2828

2929
Set the created org as the default username.
3030

31-
# flags.setAlias
31+
# flags.setalias.summary
3232

3333
Alias for the created org.
3434

35-
# flags.definitionFile
35+
# flags.definitionfile.summary
3636

3737
Path to an org definition file.
3838

39-
# flags.noNamespace
39+
# flags.nonamespace.summary
4040

4141
Create the scratch org with no namespace.
4242

43-
# flags.noAncestors
43+
# flags.noancestors.summary
4444

4545
Do not include second-generation package ancestors in the scratch org.
4646

47-
# flags.type
47+
# flags.type.summary
4848

4949
Type of org to create.
5050

51-
# flags.durationDays
51+
# flags.durationdays.summary
5252

5353
Duration of the scratch org (in days) (default:7, min:1, max:30).
5454

55-
# flags.retry
55+
# flags.retry.summary
5656

5757
Number of scratch org auth retries after scratch org is successfully signed up.
5858

59-
# flags.wait
59+
# flags.wait.summary
6060

6161
Streaming client socket timeout (in minutes).
6262

messages/create_scratch.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ You must specify a Dev Hub to create a scratch org, either with the --target-dev
3434

3535
<%= config.bin %> <%= command.id %> --edition enterprise --alias my-scratch-org --target-dev-hub MyHub --release preview
3636

37-
# flags.target-hub.summary
37+
# flags.target-dev-hub.summary
3838

3939
Username or alias of the Dev Hub org.
4040

41-
# flags.target-hub.description
41+
# flags.target-dev-hub.description
4242

4343
Overrides the value of the target-dev-hub configuration variable, if set.
4444

@@ -86,11 +86,11 @@ The scratch org definition file is a blueprint for the scratch org. It mimics th
8686

8787
Consumer key of the Dev Hub connected app.
8888

89-
# flags.adminEmail.summary
89+
# flags.admin-email.summary
9090

9191
Email address that will be applied to the org's admin user. Overrides the value of the "adminEmail" option in the definition file, if set.
9292

93-
# flags.sourceOrg.summary
93+
# flags.source-org.summary
9494

9595
15-character ID of the org whose shape the new scratch org will be based on. Overrides the value of the "sourceOrg" option in the definition file, if set.
9696

messages/delete.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To mark the org for deletion without being prompted to confirm, specify --noprom
1818

1919
- $ <%= config.bin %> <%= command.id %> -u MyOrgAlias -p
2020

21-
# flags.noprompt
21+
# flags.no-prompt.summary
2222

2323
No prompt to confirm deletion.
2424

@@ -30,7 +30,7 @@ Unable to determine the username of the org to delete. Specify the username with
3030

3131
Username or alias of the target org.
3232

33-
# flags.targetdevhubusername
33+
# flags.targetdevhubusername.summary
3434

3535
The targetdevhubusername flag exists only for backwards compatibility. It is not necessary and has no effect.
3636

messages/list.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ Include expired, deleted, and unknown-status scratch orgs.
2828

2929
Remove all local org authorizations for non-active scratch orgs. Use "org logout" to remove non-scratch orgs.
3030

31-
# flags.noPrompt.summary
31+
# flags.no-prompt.summary
3232

3333
Don't prompt for confirmation.
3434

35-
# flags.skipConnectionStatus.summary
35+
# flags.skip-connection-status.summary
3636

3737
Skip retrieving the connection status of non-scratch orgs.
3838

messages/status.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ Use the --wait (-w) parameter to specify the number of minutes that the command
1616

1717
Set the --target-org (-o) parameter to the username or alias of the production org that contains the sandbox license.
1818

19-
# flags.sandboxname
19+
# flags.sandboxname.summary
2020

2121
Name of the sandbox org to check status for.
2222

23-
# flags.wait
23+
# flags.wait.summary
2424

2525
Number of minutes to wait while polling for status.
2626

27-
# flags.setdefaultusername
27+
# flags.setdefaultusername.summary
2828

2929
Set the created or cloned org as your default.
3030

31-
# flags.setalias
31+
# flags.setalias.summary
3232

3333
Alias for the created or cloned org.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"eslint-plugin-header": "^3.1.1",
3737
"eslint-plugin-import": "2.27.5",
3838
"eslint-plugin-jsdoc": "^43.0.5",
39-
"eslint-plugin-sf-plugin": "^1.15.13",
39+
"eslint-plugin-sf-plugin": "^1.16.0",
4040
"husky": "^7.0.4",
4141
"mocha": "^10.2.0",
4242
"moment": "^2.29.1",

src/commands/force/org/clone.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,27 +51,27 @@ export class OrgCloneCommand extends SfCommand<SandboxProcessObject> {
5151
options: ['sandbox'],
5252
})({
5353
char: 't',
54-
summary: messages.getMessage('flags.type'),
54+
summary: messages.getMessage('flags.type.summary'),
5555
required: true,
5656
}),
5757
definitionfile: Flags.file({
5858
char: 'f',
5959
exists: true,
60-
summary: messages.getMessage('flags.definitionfile'),
60+
summary: messages.getMessage('flags.definitionfile.summary'),
6161
}),
6262
setdefaultusername: Flags.boolean({
6363
char: 's',
64-
summary: messages.getMessage('flags.setdefaultusername'),
64+
summary: messages.getMessage('flags.setdefaultusername.summary'),
6565
}),
6666
setalias: Flags.string({
6767
char: 'a',
68-
summary: messages.getMessage('flags.setalias'),
68+
summary: messages.getMessage('flags.setalias.summary'),
6969
}),
7070
wait: Flags.duration({
7171
unit: 'minutes',
7272
char: 'w',
73-
summary: messages.getMessage('flags.wait'),
74-
description: messages.getMessage('flagsLong.wait'),
73+
summary: messages.getMessage('flags.wait.summary'),
74+
description: messages.getMessage('flags.wait.description'),
7575
min: 2,
7676
defaultValue: 6,
7777
}),

src/commands/force/org/create.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,44 +74,44 @@ export class Create extends SfCommand<CreateResult> {
7474
options: [OrgTypes.Scratch, OrgTypes.Sandbox],
7575
})({
7676
char: 't',
77-
summary: messages.getMessage('flags.type'),
77+
summary: messages.getMessage('flags.type.summary'),
7878
default: OrgTypes.Scratch,
7979
}),
8080
definitionfile: Flags.file({
8181
exists: true,
8282
char: 'f',
83-
summary: messages.getMessage('flags.definitionFile'),
83+
summary: messages.getMessage('flags.definitionfile.summary'),
8484
}),
8585
nonamespace: Flags.boolean({
8686
char: 'n',
87-
summary: messages.getMessage('flags.noNamespace'),
87+
summary: messages.getMessage('flags.nonamespace.summary'),
8888
}),
8989
noancestors: Flags.boolean({
9090
char: 'c',
91-
summary: messages.getMessage('flags.noAncestors'),
91+
summary: messages.getMessage('flags.noancestors.summary'),
9292
}),
9393
clientid: Flags.string({
9494
char: 'i',
95-
summary: messages.getMessage('flags.clientId'),
95+
summary: messages.getMessage('flags.clientid.summary'),
9696
}),
9797
setdefaultusername: Flags.boolean({
9898
char: 's',
99-
summary: messages.getMessage('flags.setDefaultUsername'),
99+
summary: messages.getMessage('flags.setdefaultusername.summary'),
100100
}),
101101
setalias: Flags.string({
102102
char: 'a',
103-
summary: messages.getMessage('flags.setAlias'),
103+
summary: messages.getMessage('flags.setalias.summary'),
104104
}),
105105
wait: Flags.duration({
106106
unit: 'minutes',
107107
char: 'w',
108-
summary: messages.getMessage('flags.wait'),
108+
summary: messages.getMessage('flags.wait.summary'),
109109
min: 6,
110110
defaultValue: 6,
111111
}),
112112
durationdays: Flags.integer({
113113
char: 'd',
114-
summary: messages.getMessage('flags.durationDays'),
114+
summary: messages.getMessage('flags.durationdays.summary'),
115115
min: 1,
116116
max: 30,
117117
default: 7,
@@ -120,7 +120,7 @@ export class Create extends SfCommand<CreateResult> {
120120
hidden: true,
121121
default: 0,
122122
max: 10,
123-
summary: messages.getMessage('flags.retry'),
123+
summary: messages.getMessage('flags.retry.summary'),
124124
}),
125125
};
126126
private sandboxAuth?: SandboxUserAuthResponse;

src/commands/force/org/delete.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ export class Delete extends SfCommand<DeleteResult> {
3030
summary: messages.getMessage('flags.target-org.summary'),
3131
}),
3232
targetdevhubusername: Flags.string({
33-
summary: messages.getMessage('flags.targetdevhubusername'),
33+
summary: messages.getMessage('flags.targetdevhubusername.summary'),
3434
char: 'v',
3535
hidden: true,
3636
deprecated: {
3737
version: '58.0',
38-
message: messages.getMessage('flags.targetdevhubusername'),
38+
message: messages.getMessage('flags.targetdevhubusername.summary'),
3939
},
4040
}),
4141
'api-version': orgApiVersionFlagWithDeprecations,
4242
'no-prompt': Flags.boolean({
4343
char: 'p',
44-
summary: messages.getMessage('flags.noprompt'),
44+
summary: messages.getMessage('flags.no-prompt.summary'),
4545
deprecateAliases: true,
4646
aliases: ['noprompt'],
4747
}),

0 commit comments

Comments
 (0)