Skip to content

Commit 44a8ae5

Browse files
authored
feat: bump sf-plugins-core (#493)
* feat: bump sf-plugins-core * chore: format
1 parent fbcc986 commit 44a8ae5

File tree

7 files changed

+120
-94
lines changed

7 files changed

+120
-94
lines changed

README.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,16 @@ Audit messages in a plugin's messages directory to locate unused messages and mi
125125

126126
```
127127
USAGE
128-
$ sf dev audit messages [--json] [-p <value>] [-m <value>] [-s <value>]
128+
$ sf dev audit messages [--json] [--flags-dir <value>] [-p <value>] [-m <value>] [-s <value>]
129129
130130
FLAGS
131131
-m, --messages-dir=<value> [default: messages] Directory that contains the plugin's message files.
132132
-p, --project-dir=<value> [default: .] Location of the project where messages are to be audited.
133133
-s, --source-dir=<value> [default: src] Directory that contains the plugin's source code.
134134
135135
GLOBAL FLAGS
136-
--json Format output as json.
136+
--flags-dir=<value> Import flag values from a directory.
137+
--json Format output as json.
137138
138139
EXAMPLES
139140
Audit messages using default directories:
@@ -163,14 +164,15 @@ Convert a .json messages file into Markdown.
163164

164165
```
165166
USAGE
166-
$ sf dev convert messages -f <value> [--json] [-p <value>]
167+
$ sf dev convert messages -f <value> [--json] [--flags-dir <value>] [-p <value>]
167168
168169
FLAGS
169170
-f, --file-name=<value>... (required) Filename to convert.
170171
-p, --project-dir=<value> [default: .] Location of the project whose messages are to be converted.
171172
172173
GLOBAL FLAGS
173-
--json Format output as json.
174+
--flags-dir=<value> Import flag values from a directory.
175+
--json Format output as json.
174176
175177
DESCRIPTION
176178
Convert a .json messages file into Markdown.
@@ -197,13 +199,14 @@ Convert a script file that contains deprecated sfdx-style commands to use the ne
197199

198200
```
199201
USAGE
200-
$ sf dev convert script -s <value> [--json]
202+
$ sf dev convert script -s <value> [--json] [--flags-dir <value>]
201203
202204
FLAGS
203205
-s, --script=<value> (required) Filepath to the script you want to convert.
204206
205207
GLOBAL FLAGS
206-
--json Format output as json.
208+
--flags-dir=<value> Import flag values from a directory.
209+
--json Format output as json.
207210
208211
DESCRIPTION
209212
Convert a script file that contains deprecated sfdx-style commands to use the new sf-style commands instead.
@@ -240,14 +243,17 @@ Generate a new sf command.
240243

241244
```
242245
USAGE
243-
$ sf dev generate command -n <value> [--force] [--nuts] [--unit]
246+
$ sf dev generate command -n <value> [--flags-dir <value>] [--force] [--nuts] [--unit]
244247
245248
FLAGS
246249
-n, --name=<value> (required) Name of the new command. Use colons to separate the topic and command names.
247250
--force Overwrite existing files.
248251
--[no-]nuts Generate a NUT test file for the command.
249252
--[no-]unit Generate a unit test file for the command.
250253
254+
GLOBAL FLAGS
255+
--flags-dir=<value> Import flag values from a directory.
256+
251257
DESCRIPTION
252258
Generate a new sf command.
253259
@@ -277,11 +283,14 @@ Generate a flag for an existing command.
277283

278284
```
279285
USAGE
280-
$ sf dev generate flag [-d]
286+
$ sf dev generate flag [--flags-dir <value>] [-d]
281287
282288
FLAGS
283289
-d, --dry-run Print new flag code instead of adding it to the command file.
284290
291+
GLOBAL FLAGS
292+
--flags-dir=<value> Import flag values from a directory.
293+
285294
DESCRIPTION
286295
Generate a flag for an existing command.
287296
@@ -314,7 +323,10 @@ Generate a new sf plugin.
314323

315324
```
316325
USAGE
317-
$ sf dev generate plugin
326+
$ sf dev generate plugin [--flags-dir <value>]
327+
328+
GLOBAL FLAGS
329+
--flags-dir=<value> Import flag values from a directory.
318330
319331
DESCRIPTION
320332
Generate a new sf plugin.

command-snapshot.json

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,74 @@
11
[
22
{
3-
"command": "dev:audit:messages",
4-
"plugin": "@salesforce/plugin-dev",
5-
"flags": ["json", "messages-dir", "project-dir", "source-dir"],
63
"alias": [],
4+
"command": "dev:audit:messages",
5+
"flagAliases": ["messagesdir", "projectdir", "sourcedir"],
76
"flagChars": ["m", "p", "s"],
8-
"flagAliases": ["messagesdir", "projectdir", "sourcedir"]
7+
"flags": ["flags-dir", "json", "messages-dir", "project-dir", "source-dir"],
8+
"plugin": "@salesforce/plugin-dev"
99
},
1010
{
11-
"command": "dev:configure:repo",
12-
"plugin": "@salesforce/plugin-dev",
13-
"flags": ["bot", "dry-run", "json", "repository"],
1411
"alias": [],
12+
"command": "dev:configure:repo",
13+
"flagAliases": ["dryrun"],
1514
"flagChars": ["b", "d", "r"],
16-
"flagAliases": ["dryrun"]
15+
"flags": ["bot", "dry-run", "flags-dir", "json", "repository"],
16+
"plugin": "@salesforce/plugin-dev"
1717
},
1818
{
19-
"command": "dev:configure:secrets",
20-
"plugin": "@salesforce/plugin-dev",
21-
"flags": ["dry-run", "json", "repository"],
2219
"alias": [],
20+
"command": "dev:configure:secrets",
21+
"flagAliases": ["dryrun"],
2322
"flagChars": ["d", "r"],
24-
"flagAliases": ["dryrun"]
23+
"flags": ["dry-run", "flags-dir", "json", "repository"],
24+
"plugin": "@salesforce/plugin-dev"
2525
},
2626
{
27-
"command": "dev:convert:messages",
28-
"plugin": "@salesforce/plugin-dev",
29-
"flags": ["file-name", "json", "project-dir"],
3027
"alias": [],
28+
"command": "dev:convert:messages",
29+
"flagAliases": ["filename", "projectdir"],
3130
"flagChars": ["f", "p"],
32-
"flagAliases": ["filename", "projectdir"]
31+
"flags": ["file-name", "flags-dir", "json", "project-dir"],
32+
"plugin": "@salesforce/plugin-dev"
3333
},
3434
{
35-
"command": "dev:convert:script",
36-
"plugin": "@salesforce/plugin-dev",
37-
"flags": ["json", "no-prompt", "script"],
3835
"alias": [],
36+
"command": "dev:convert:script",
37+
"flagAliases": [],
3938
"flagChars": ["s"],
40-
"flagAliases": []
39+
"flags": ["flags-dir", "json", "no-prompt", "script"],
40+
"plugin": "@salesforce/plugin-dev"
4141
},
4242
{
43-
"command": "dev:generate:command",
44-
"plugin": "@salesforce/plugin-dev",
45-
"flags": ["force", "name", "nuts", "unit"],
4643
"alias": [],
44+
"command": "dev:generate:command",
45+
"flagAliases": [],
4746
"flagChars": ["n"],
48-
"flagAliases": []
47+
"flags": ["flags-dir", "force", "name", "nuts", "unit"],
48+
"plugin": "@salesforce/plugin-dev"
4949
},
5050
{
51-
"command": "dev:generate:flag",
52-
"plugin": "@salesforce/plugin-dev",
53-
"flags": ["dry-run"],
5451
"alias": [],
52+
"command": "dev:generate:flag",
53+
"flagAliases": ["dryrun"],
5554
"flagChars": ["d"],
56-
"flagAliases": ["dryrun"]
55+
"flags": ["dry-run", "flags-dir"],
56+
"plugin": "@salesforce/plugin-dev"
5757
},
5858
{
59-
"command": "dev:generate:library",
60-
"plugin": "@salesforce/plugin-dev",
61-
"flags": [],
6259
"alias": [],
60+
"command": "dev:generate:library",
61+
"flagAliases": [],
6362
"flagChars": [],
64-
"flagAliases": []
63+
"flags": ["flags-dir"],
64+
"plugin": "@salesforce/plugin-dev"
6565
},
6666
{
67-
"command": "dev:generate:plugin",
68-
"plugin": "@salesforce/plugin-dev",
69-
"flags": [],
7067
"alias": ["plugins:generate"],
68+
"command": "dev:generate:plugin",
69+
"flagAliases": [],
7170
"flagChars": [],
72-
"flagAliases": []
71+
"flags": ["flags-dir"],
72+
"plugin": "@salesforce/plugin-dev"
7373
}
7474
]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"@octokit/rest": "^19.0.13",
1313
"@salesforce/core": "^6.5.1",
1414
"@salesforce/kit": "^3.0.15",
15-
"@salesforce/sf-plugins-core": "^7.1.4",
15+
"@salesforce/sf-plugins-core": "^8.0.1",
1616
"@salesforce/ts-types": "^2.0.9",
1717
"change-case": "^5.4.2",
1818
"fast-glob": "^3.3.2",

src/commands/dev/convert/messages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import path from 'node:path';
1111
import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
1212
import { Messages } from '@salesforce/core';
1313

14-
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url)
14+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
1515
const messages = Messages.loadMessages('@salesforce/plugin-dev', 'dev.convert.messages');
1616

1717
export type DevConvertMessagesResult = {

src/commands/dev/generate/command.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
77

8-
98
import { Messages } from '@salesforce/core';
109
import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
1110
import { fileExists, generate } from '../../../util.js';
1211

13-
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url)
12+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
1413
const messages = Messages.loadMessages('@salesforce/plugin-dev', 'dev.generate.command');
1514

1615
export default class GenerateCommand extends SfCommand<void> {

src/commands/dev/generate/plugin.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
77

8-
98
import { Messages } from '@salesforce/core';
109
import { SfCommand } from '@salesforce/sf-plugins-core';
1110
import { generate } from '../../../util.js';
1211

13-
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url)
12+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
1413
const messages = Messages.loadMessages('@salesforce/plugin-dev', 'dev.generate.plugin');
1514

1615
export default class GeneratePlugin extends SfCommand<void> {

0 commit comments

Comments
 (0)