sf-plugin-permission-sets 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -33
- package/lib/adapters/connection-org-client.d.ts +16 -0
- package/lib/adapters/connection-org-client.js +248 -0
- package/lib/adapters/connection-org-client.js.map +1 -0
- package/lib/commands/ps/apply.d.ts +27 -0
- package/lib/commands/ps/apply.js +125 -0
- package/lib/commands/ps/apply.js.map +1 -0
- package/lib/commands/ps/check.d.ts +1 -1
- package/lib/commands/ps/check.js +5 -4
- package/lib/commands/ps/check.js.map +1 -1
- package/lib/commands/ps/export.d.ts +17 -0
- package/lib/commands/ps/export.js +29 -0
- package/lib/commands/ps/export.js.map +1 -0
- package/lib/commands/ps/plan.d.ts +22 -0
- package/lib/commands/ps/plan.js +78 -0
- package/lib/commands/ps/plan.js.map +1 -0
- package/lib/commands/ps/validate.d.ts +19 -0
- package/lib/commands/ps/validate.js +48 -0
- package/lib/commands/ps/validate.js.map +1 -0
- package/lib/core/diff.d.ts +9 -0
- package/lib/core/diff.js +53 -0
- package/lib/core/diff.js.map +1 -0
- package/lib/core/finding.d.ts +39 -0
- package/lib/core/finding.js +68 -0
- package/lib/core/finding.js.map +1 -0
- package/lib/core/load.d.ts +1 -6
- package/lib/core/load.js +6 -5
- package/lib/core/load.js.map +1 -1
- package/lib/core/model.d.ts +56 -7
- package/lib/core/normalize.d.ts +5 -1
- package/lib/core/normalize.js +12 -13
- package/lib/core/normalize.js.map +1 -1
- package/lib/core/parse.d.ts +1 -1
- package/lib/core/parse.js +4 -9
- package/lib/core/parse.js.map +1 -1
- package/lib/core/report.d.ts +7 -8
- package/lib/core/report.js +59 -12
- package/lib/core/report.js.map +1 -1
- package/lib/core/resolve.d.ts +19 -0
- package/lib/core/resolve.js +88 -0
- package/lib/core/resolve.js.map +1 -0
- package/lib/core/schema.d.ts +17 -5
- package/lib/core/schema.js +14 -10
- package/lib/core/schema.js.map +1 -1
- package/lib/core/serialize.d.ts +8 -0
- package/lib/core/serialize.js +34 -0
- package/lib/core/serialize.js.map +1 -0
- package/lib/services/adapters/org-client.d.ts +21 -0
- package/lib/services/adapters/org-client.js +2 -0
- package/lib/services/adapters/org-client.js.map +1 -0
- package/lib/services/apply.d.ts +41 -0
- package/lib/services/apply.js +118 -0
- package/lib/services/apply.js.map +1 -0
- package/lib/services/check.d.ts +8 -6
- package/lib/services/check.js +21 -13
- package/lib/services/check.js.map +1 -1
- package/lib/services/export.d.ts +13 -0
- package/lib/services/export.js +25 -0
- package/lib/services/export.js.map +1 -0
- package/lib/services/plan.d.ts +36 -0
- package/lib/services/plan.js +71 -0
- package/lib/services/plan.js.map +1 -0
- package/lib/services/validate.d.ts +20 -0
- package/lib/services/validate.js +43 -0
- package/lib/services/validate.js.map +1 -0
- package/messages/ps.apply.md +81 -0
- package/messages/ps.export.md +25 -0
- package/messages/ps.plan.md +45 -0
- package/messages/ps.validate.md +29 -0
- package/oclif.manifest.json +303 -10
- package/package.json +11 -8
- package/lib/commands/ps/info.d.ts +0 -11
- package/lib/commands/ps/info.js +0 -17
- package/lib/commands/ps/info.js.map +0 -1
- package/messages/ps.info.md +0 -17
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,112 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
+
"ps:apply": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {},
|
|
6
|
+
"description": "Load the files, resolve every user and target against the org, diff the desired state against what the org currently has, then add, update expirations, and/or remove assignments per the mode. Additions, expiration updates, and removals run through the sObject Collections API with partial success, so one bad record does not roll back the rest. Deletions are capped by --max-deletes and confirmed before they run. Run validate and a --dry-run first.",
|
|
7
|
+
"examples": [
|
|
8
|
+
"Preview a full reconcile of the dev org without changing anything:\n<%= config.bin %> <%= command.id %> --file \"permissions/*.yml\" --target-org dev --mode sync --dry-run",
|
|
9
|
+
"Grant any missing assignments (additive, the default):\n<%= config.bin %> <%= command.id %> --file \"permissions/*.yml\" --target-org dev",
|
|
10
|
+
"Full reconcile of production in CI, without prompts:\n<%= config.bin %> <%= command.id %> --file \"permissions/*.yml\" --target-org prod --mode sync --no-prompt"
|
|
11
|
+
],
|
|
12
|
+
"flags": {
|
|
13
|
+
"json": {
|
|
14
|
+
"description": "Format output as json.",
|
|
15
|
+
"helpGroup": "GLOBAL",
|
|
16
|
+
"name": "json",
|
|
17
|
+
"allowNo": false,
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
},
|
|
20
|
+
"flags-dir": {
|
|
21
|
+
"helpGroup": "GLOBAL",
|
|
22
|
+
"name": "flags-dir",
|
|
23
|
+
"summary": "Import flag values from a directory.",
|
|
24
|
+
"hasDynamicHelp": false,
|
|
25
|
+
"multiple": false,
|
|
26
|
+
"type": "option"
|
|
27
|
+
},
|
|
28
|
+
"target-org": {
|
|
29
|
+
"char": "o",
|
|
30
|
+
"name": "target-org",
|
|
31
|
+
"noCacheDefault": true,
|
|
32
|
+
"required": true,
|
|
33
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
34
|
+
"hasDynamicHelp": true,
|
|
35
|
+
"multiple": false,
|
|
36
|
+
"type": "option"
|
|
37
|
+
},
|
|
38
|
+
"api-version": {
|
|
39
|
+
"description": "Override the api version used for api requests made by this command",
|
|
40
|
+
"name": "api-version",
|
|
41
|
+
"hasDynamicHelp": false,
|
|
42
|
+
"multiple": false,
|
|
43
|
+
"type": "option"
|
|
44
|
+
},
|
|
45
|
+
"file": {
|
|
46
|
+
"char": "f",
|
|
47
|
+
"name": "file",
|
|
48
|
+
"required": true,
|
|
49
|
+
"summary": "YAML file or glob to apply. Repeatable.",
|
|
50
|
+
"hasDynamicHelp": false,
|
|
51
|
+
"multiple": true,
|
|
52
|
+
"type": "option"
|
|
53
|
+
},
|
|
54
|
+
"mode": {
|
|
55
|
+
"name": "mode",
|
|
56
|
+
"summary": "Which half of the reconcile to run: additive adds missing assignments and updates expirations, destructive removes only, sync does both.",
|
|
57
|
+
"default": "additive",
|
|
58
|
+
"hasDynamicHelp": false,
|
|
59
|
+
"multiple": false,
|
|
60
|
+
"options": [
|
|
61
|
+
"additive",
|
|
62
|
+
"destructive",
|
|
63
|
+
"sync"
|
|
64
|
+
],
|
|
65
|
+
"type": "option"
|
|
66
|
+
},
|
|
67
|
+
"max-deletes": {
|
|
68
|
+
"name": "max-deletes",
|
|
69
|
+
"summary": "Abort before any change if the run would remove more than this many assignments.",
|
|
70
|
+
"default": 50,
|
|
71
|
+
"hasDynamicHelp": false,
|
|
72
|
+
"multiple": false,
|
|
73
|
+
"type": "option"
|
|
74
|
+
},
|
|
75
|
+
"dry-run": {
|
|
76
|
+
"name": "dry-run",
|
|
77
|
+
"summary": "Resolve and diff, print the plan, and change nothing.",
|
|
78
|
+
"allowNo": false,
|
|
79
|
+
"type": "boolean"
|
|
80
|
+
},
|
|
81
|
+
"no-prompt": {
|
|
82
|
+
"name": "no-prompt",
|
|
83
|
+
"summary": "Skip the deletion confirmation prompt. Required to delete in JSON or other non-interactive runs.",
|
|
84
|
+
"allowNo": false,
|
|
85
|
+
"type": "boolean"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"hasDynamicHelp": true,
|
|
89
|
+
"hiddenAliases": [],
|
|
90
|
+
"id": "ps:apply",
|
|
91
|
+
"pluginAlias": "sf-plugin-permission-sets",
|
|
92
|
+
"pluginName": "sf-plugin-permission-sets",
|
|
93
|
+
"pluginType": "core",
|
|
94
|
+
"strict": true,
|
|
95
|
+
"summary": "Reconcile a target org to match the permission set assignment files.",
|
|
96
|
+
"enableJsonFlag": true,
|
|
97
|
+
"isESM": true,
|
|
98
|
+
"relativePath": [
|
|
99
|
+
"lib",
|
|
100
|
+
"commands",
|
|
101
|
+
"ps",
|
|
102
|
+
"apply.js"
|
|
103
|
+
],
|
|
104
|
+
"aliasPermutations": [],
|
|
105
|
+
"permutations": [
|
|
106
|
+
"ps:apply",
|
|
107
|
+
"apply:ps"
|
|
108
|
+
]
|
|
109
|
+
},
|
|
3
110
|
"ps:check": {
|
|
4
111
|
"aliases": [],
|
|
5
112
|
"args": {},
|
|
@@ -62,12 +169,13 @@
|
|
|
62
169
|
"check:ps"
|
|
63
170
|
]
|
|
64
171
|
},
|
|
65
|
-
"ps:
|
|
172
|
+
"ps:export": {
|
|
66
173
|
"aliases": [],
|
|
67
174
|
"args": {},
|
|
68
|
-
"description": "
|
|
175
|
+
"description": "Query the target org for every assignable permission set, group, and license assignment held by active users and write them to a single user-keyed YAML file. The result is valid input for check, validate, plan, and apply, so it is a read-only way to bootstrap adoption from an org's current state. Profile-owned permission sets and inactive users are skipped.",
|
|
69
176
|
"examples": [
|
|
70
|
-
"
|
|
177
|
+
"Export the dev org's assignments to permissions.yml:\n<%= config.bin %> <%= command.id %> --target-org dev --output-file permissions.yml",
|
|
178
|
+
"Export a production org into an environment folder:\n<%= config.bin %> <%= command.id %> --target-org prod --output-file permissions/prod.yml"
|
|
71
179
|
],
|
|
72
180
|
"flags": {
|
|
73
181
|
"json": {
|
|
@@ -84,30 +192,215 @@
|
|
|
84
192
|
"hasDynamicHelp": false,
|
|
85
193
|
"multiple": false,
|
|
86
194
|
"type": "option"
|
|
195
|
+
},
|
|
196
|
+
"target-org": {
|
|
197
|
+
"char": "o",
|
|
198
|
+
"name": "target-org",
|
|
199
|
+
"noCacheDefault": true,
|
|
200
|
+
"required": true,
|
|
201
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
202
|
+
"hasDynamicHelp": true,
|
|
203
|
+
"multiple": false,
|
|
204
|
+
"type": "option"
|
|
205
|
+
},
|
|
206
|
+
"api-version": {
|
|
207
|
+
"description": "Override the api version used for api requests made by this command",
|
|
208
|
+
"name": "api-version",
|
|
209
|
+
"hasDynamicHelp": false,
|
|
210
|
+
"multiple": false,
|
|
211
|
+
"type": "option"
|
|
212
|
+
},
|
|
213
|
+
"output-file": {
|
|
214
|
+
"name": "output-file",
|
|
215
|
+
"required": true,
|
|
216
|
+
"summary": "Path of the YAML file to write. Created (and its parent directories) if missing, overwritten if present.",
|
|
217
|
+
"hasDynamicHelp": false,
|
|
218
|
+
"multiple": false,
|
|
219
|
+
"type": "option"
|
|
87
220
|
}
|
|
88
221
|
},
|
|
89
|
-
"hasDynamicHelp":
|
|
222
|
+
"hasDynamicHelp": true,
|
|
223
|
+
"hiddenAliases": [],
|
|
224
|
+
"id": "ps:export",
|
|
225
|
+
"pluginAlias": "sf-plugin-permission-sets",
|
|
226
|
+
"pluginName": "sf-plugin-permission-sets",
|
|
227
|
+
"pluginType": "core",
|
|
228
|
+
"strict": true,
|
|
229
|
+
"summary": "Generate a YAML file from the current org's permission set assignments.",
|
|
230
|
+
"enableJsonFlag": true,
|
|
231
|
+
"isESM": true,
|
|
232
|
+
"relativePath": [
|
|
233
|
+
"lib",
|
|
234
|
+
"commands",
|
|
235
|
+
"ps",
|
|
236
|
+
"export.js"
|
|
237
|
+
],
|
|
238
|
+
"aliasPermutations": [],
|
|
239
|
+
"permutations": [
|
|
240
|
+
"ps:export",
|
|
241
|
+
"export:ps"
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
"ps:plan": {
|
|
245
|
+
"aliases": [],
|
|
246
|
+
"args": {},
|
|
247
|
+
"description": "Load the files, resolve every user and target against the org, fetch the org's current assignments, and diff the desired state against them. Read-only: it queries the org but never changes it, so it is the apply pipeline stopping before any DML. The full picture (assignments to add and would-be removes) is always shown regardless of mode, and whatever the chosen mode would not act on is surfaced as drift. Run it before apply to preview what would change.",
|
|
248
|
+
"examples": [
|
|
249
|
+
"Preview a full reconcile of the dev org:\n<%= config.bin %> <%= command.id %> --file \"permissions/*.yml\" --target-org dev --mode sync",
|
|
250
|
+
"Preview only the additions the default additive run would make:\n<%= config.bin %> <%= command.id %> --file \"permissions/*.yml\" --target-org dev",
|
|
251
|
+
"Preview a full reconcile of production before applying it:\n<%= config.bin %> <%= command.id %> --file \"permissions/*.yml\" --target-org prod --mode sync"
|
|
252
|
+
],
|
|
253
|
+
"flags": {
|
|
254
|
+
"json": {
|
|
255
|
+
"description": "Format output as json.",
|
|
256
|
+
"helpGroup": "GLOBAL",
|
|
257
|
+
"name": "json",
|
|
258
|
+
"allowNo": false,
|
|
259
|
+
"type": "boolean"
|
|
260
|
+
},
|
|
261
|
+
"flags-dir": {
|
|
262
|
+
"helpGroup": "GLOBAL",
|
|
263
|
+
"name": "flags-dir",
|
|
264
|
+
"summary": "Import flag values from a directory.",
|
|
265
|
+
"hasDynamicHelp": false,
|
|
266
|
+
"multiple": false,
|
|
267
|
+
"type": "option"
|
|
268
|
+
},
|
|
269
|
+
"target-org": {
|
|
270
|
+
"char": "o",
|
|
271
|
+
"name": "target-org",
|
|
272
|
+
"noCacheDefault": true,
|
|
273
|
+
"required": true,
|
|
274
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
275
|
+
"hasDynamicHelp": true,
|
|
276
|
+
"multiple": false,
|
|
277
|
+
"type": "option"
|
|
278
|
+
},
|
|
279
|
+
"api-version": {
|
|
280
|
+
"description": "Override the api version used for api requests made by this command",
|
|
281
|
+
"name": "api-version",
|
|
282
|
+
"hasDynamicHelp": false,
|
|
283
|
+
"multiple": false,
|
|
284
|
+
"type": "option"
|
|
285
|
+
},
|
|
286
|
+
"file": {
|
|
287
|
+
"char": "f",
|
|
288
|
+
"name": "file",
|
|
289
|
+
"required": true,
|
|
290
|
+
"summary": "YAML file or glob to plan. Repeatable.",
|
|
291
|
+
"hasDynamicHelp": false,
|
|
292
|
+
"multiple": true,
|
|
293
|
+
"type": "option"
|
|
294
|
+
},
|
|
295
|
+
"mode": {
|
|
296
|
+
"name": "mode",
|
|
297
|
+
"summary": "Which half of the reconcile to preview: additive adds and updates expirations, destructive removes only, sync does both. Adds, expiration updates, and removes are always shown either way.",
|
|
298
|
+
"default": "additive",
|
|
299
|
+
"hasDynamicHelp": false,
|
|
300
|
+
"multiple": false,
|
|
301
|
+
"options": [
|
|
302
|
+
"additive",
|
|
303
|
+
"destructive",
|
|
304
|
+
"sync"
|
|
305
|
+
],
|
|
306
|
+
"type": "option"
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"hasDynamicHelp": true,
|
|
310
|
+
"hiddenAliases": [],
|
|
311
|
+
"id": "ps:plan",
|
|
312
|
+
"pluginAlias": "sf-plugin-permission-sets",
|
|
313
|
+
"pluginName": "sf-plugin-permission-sets",
|
|
314
|
+
"pluginType": "core",
|
|
315
|
+
"strict": true,
|
|
316
|
+
"summary": "Preview the changes that would reconcile a target org to the assignment files.",
|
|
317
|
+
"enableJsonFlag": true,
|
|
318
|
+
"isESM": true,
|
|
319
|
+
"relativePath": [
|
|
320
|
+
"lib",
|
|
321
|
+
"commands",
|
|
322
|
+
"ps",
|
|
323
|
+
"plan.js"
|
|
324
|
+
],
|
|
325
|
+
"aliasPermutations": [],
|
|
326
|
+
"permutations": [
|
|
327
|
+
"ps:plan",
|
|
328
|
+
"plan:ps"
|
|
329
|
+
]
|
|
330
|
+
},
|
|
331
|
+
"ps:validate": {
|
|
332
|
+
"aliases": [],
|
|
333
|
+
"args": {},
|
|
334
|
+
"description": "Run every offline check, then resolve each referenced user, permission set, group, and license against the org. Reports users that are missing or inactive and targets that are missing or not unique. Read-only: it queries the org but never changes it. Run it before plan or apply.",
|
|
335
|
+
"examples": [
|
|
336
|
+
"Validate every file under permissions against the dev org:\n<%= config.bin %> <%= command.id %> --file \"permissions/\\*.yml\" --target-org dev",
|
|
337
|
+
"Validate specific files against a named org:\n<%= config.bin %> <%= command.id %> --file permissions/sales.yml --file permissions/service.yml --target-org prod"
|
|
338
|
+
],
|
|
339
|
+
"flags": {
|
|
340
|
+
"json": {
|
|
341
|
+
"description": "Format output as json.",
|
|
342
|
+
"helpGroup": "GLOBAL",
|
|
343
|
+
"name": "json",
|
|
344
|
+
"allowNo": false,
|
|
345
|
+
"type": "boolean"
|
|
346
|
+
},
|
|
347
|
+
"flags-dir": {
|
|
348
|
+
"helpGroup": "GLOBAL",
|
|
349
|
+
"name": "flags-dir",
|
|
350
|
+
"summary": "Import flag values from a directory.",
|
|
351
|
+
"hasDynamicHelp": false,
|
|
352
|
+
"multiple": false,
|
|
353
|
+
"type": "option"
|
|
354
|
+
},
|
|
355
|
+
"target-org": {
|
|
356
|
+
"char": "o",
|
|
357
|
+
"name": "target-org",
|
|
358
|
+
"noCacheDefault": true,
|
|
359
|
+
"required": true,
|
|
360
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
361
|
+
"hasDynamicHelp": true,
|
|
362
|
+
"multiple": false,
|
|
363
|
+
"type": "option"
|
|
364
|
+
},
|
|
365
|
+
"api-version": {
|
|
366
|
+
"description": "Override the api version used for api requests made by this command",
|
|
367
|
+
"name": "api-version",
|
|
368
|
+
"hasDynamicHelp": false,
|
|
369
|
+
"multiple": false,
|
|
370
|
+
"type": "option"
|
|
371
|
+
},
|
|
372
|
+
"file": {
|
|
373
|
+
"char": "f",
|
|
374
|
+
"name": "file",
|
|
375
|
+
"required": true,
|
|
376
|
+
"summary": "YAML file or glob to validate. Repeatable.",
|
|
377
|
+
"hasDynamicHelp": false,
|
|
378
|
+
"multiple": true,
|
|
379
|
+
"type": "option"
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
"hasDynamicHelp": true,
|
|
90
383
|
"hiddenAliases": [],
|
|
91
|
-
"id": "ps:
|
|
384
|
+
"id": "ps:validate",
|
|
92
385
|
"pluginAlias": "sf-plugin-permission-sets",
|
|
93
386
|
"pluginName": "sf-plugin-permission-sets",
|
|
94
387
|
"pluginType": "core",
|
|
95
388
|
"strict": true,
|
|
96
|
-
"summary": "
|
|
389
|
+
"summary": "Validate permission set assignment files against a target org.",
|
|
97
390
|
"enableJsonFlag": true,
|
|
98
391
|
"isESM": true,
|
|
99
392
|
"relativePath": [
|
|
100
393
|
"lib",
|
|
101
394
|
"commands",
|
|
102
395
|
"ps",
|
|
103
|
-
"
|
|
396
|
+
"validate.js"
|
|
104
397
|
],
|
|
105
398
|
"aliasPermutations": [],
|
|
106
399
|
"permutations": [
|
|
107
|
-
"ps:
|
|
108
|
-
"
|
|
400
|
+
"ps:validate",
|
|
401
|
+
"validate:ps"
|
|
109
402
|
]
|
|
110
403
|
}
|
|
111
404
|
},
|
|
112
|
-
"version": "0.
|
|
405
|
+
"version": "0.2.0"
|
|
113
406
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sf-plugin-permission-sets",
|
|
3
|
-
"description": "",
|
|
4
|
-
"version": "0.1.0",
|
|
3
|
+
"description": "Declarative, GitOps-style management of permission set assignments for Salesforce orgs.",
|
|
5
4
|
"repository": {
|
|
6
5
|
"type": "git",
|
|
7
6
|
"url": "git+https://github.com/zaclummys/sf-plugin-permission-sets.git"
|
|
@@ -33,13 +32,16 @@
|
|
|
33
32
|
"/oclif.lock"
|
|
34
33
|
],
|
|
35
34
|
"keywords": [
|
|
36
|
-
"force",
|
|
37
35
|
"salesforce",
|
|
38
|
-
"salesforcedx",
|
|
39
|
-
"sf",
|
|
40
36
|
"sf-plugin",
|
|
41
|
-
"sfdx",
|
|
42
|
-
"
|
|
37
|
+
"sfdx-plugin",
|
|
38
|
+
"permission-sets",
|
|
39
|
+
"permission-set-assignment",
|
|
40
|
+
"permission-set-group",
|
|
41
|
+
"access-management",
|
|
42
|
+
"user-provisioning",
|
|
43
|
+
"gitops",
|
|
44
|
+
"declarative"
|
|
43
45
|
],
|
|
44
46
|
"license": "BSD-3-Clause",
|
|
45
47
|
"oclif": {
|
|
@@ -133,5 +135,6 @@
|
|
|
133
135
|
},
|
|
134
136
|
"exports": "./lib/index.js",
|
|
135
137
|
"type": "module",
|
|
136
|
-
"author": "Isaac Ferreira"
|
|
138
|
+
"author": "Isaac Ferreira",
|
|
139
|
+
"version": "0.2.0"
|
|
137
140
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
-
export type PsInfoResult = {
|
|
3
|
-
name: string;
|
|
4
|
-
description: string;
|
|
5
|
-
};
|
|
6
|
-
export default class Info extends SfCommand<PsInfoResult> {
|
|
7
|
-
static readonly summary: string;
|
|
8
|
-
static readonly description: string;
|
|
9
|
-
static readonly examples: string[];
|
|
10
|
-
run(): Promise<PsInfoResult>;
|
|
11
|
-
}
|
package/lib/commands/ps/info.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
-
import { Messages } from '@salesforce/core';
|
|
3
|
-
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
4
|
-
const messages = Messages.loadMessages('sf-plugin-permission-sets', 'ps.info');
|
|
5
|
-
export default class Info extends SfCommand {
|
|
6
|
-
static summary = messages.getMessage('summary');
|
|
7
|
-
static description = messages.getMessage('description');
|
|
8
|
-
static examples = messages.getMessages('examples');
|
|
9
|
-
async run() {
|
|
10
|
-
await this.parse(Info);
|
|
11
|
-
const name = 'sf-plugin-permission-sets';
|
|
12
|
-
const description = 'Declarative, GitOps-style management of permission set assignments.';
|
|
13
|
-
this.log(messages.getMessage('info.summary', [name, description]));
|
|
14
|
-
return { name, description };
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=info.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../../src/commands/ps/info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,2BAA2B,EAAE,SAAS,CAAC,CAAC;AAO/E,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,SAAuB;IAC9C,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAE5D,KAAK,CAAC,GAAG;QACZ,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACvB,MAAM,IAAI,GAAG,2BAA2B,CAAC;QACzC,MAAM,WAAW,GAAG,qEAAqE,CAAC;QAC1F,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,cAAc,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;QACnE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;IACjC,CAAC"}
|
package/messages/ps.info.md
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# summary
|
|
2
|
-
|
|
3
|
-
Show information about the permission-sets plugin.
|
|
4
|
-
|
|
5
|
-
# description
|
|
6
|
-
|
|
7
|
-
Print the plugin name and what it does. A quick way to confirm the plugin is installed and working.
|
|
8
|
-
|
|
9
|
-
# examples
|
|
10
|
-
|
|
11
|
-
- Show plugin info:
|
|
12
|
-
|
|
13
|
-
<%= config.bin %> <%= command.id %>
|
|
14
|
-
|
|
15
|
-
# info.summary
|
|
16
|
-
|
|
17
|
-
%s - %s
|