@salesforce/plugin-signups 2.2.6 → 2.3.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 +9 -8
- package/lib/commands/org/delete/snapshot.d.ts +3 -2
- package/lib/commands/org/delete/snapshot.js +9 -1
- package/lib/commands/org/delete/snapshot.js.map +1 -1
- package/messages/snapshot.delete.md +8 -0
- package/npm-shrinkwrap.json +2 -2
- package/oclif.manifest.json +8 -1
- package/package.json +3 -3
package/README.md
CHANGED
@@ -123,7 +123,7 @@ EXAMPLES
|
|
123
123
|
$ sf org create shape --target-org SourceOrg
|
124
124
|
```
|
125
125
|
|
126
|
-
_See code: [src/commands/org/create/shape.ts](https://github.com/salesforcecli/plugin-signups/blob/2.
|
126
|
+
_See code: [src/commands/org/create/shape.ts](https://github.com/salesforcecli/plugin-signups/blob/2.3.0/src/commands/org/create/shape.ts)_
|
127
127
|
|
128
128
|
## `sf org create snapshot`
|
129
129
|
|
@@ -179,7 +179,7 @@ FLAG DESCRIPTIONS
|
|
179
179
|
as a version control system tag or commit ID.
|
180
180
|
```
|
181
181
|
|
182
|
-
_See code: [src/commands/org/create/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.
|
182
|
+
_See code: [src/commands/org/create/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.3.0/src/commands/org/create/snapshot.ts)_
|
183
183
|
|
184
184
|
## `sf org delete shape`
|
185
185
|
|
@@ -219,7 +219,7 @@ EXAMPLES
|
|
219
219
|
$ sf org delete shape --target-org SourceOrg --no-prompt
|
220
220
|
```
|
221
221
|
|
222
|
-
_See code: [src/commands/org/delete/shape.ts](https://github.com/salesforcecli/plugin-signups/blob/2.
|
222
|
+
_See code: [src/commands/org/delete/shape.ts](https://github.com/salesforcecli/plugin-signups/blob/2.3.0/src/commands/org/delete/shape.ts)_
|
223
223
|
|
224
224
|
## `sf org delete snapshot`
|
225
225
|
|
@@ -227,9 +227,10 @@ Delete a scratch org snapshot.
|
|
227
227
|
|
228
228
|
```
|
229
229
|
USAGE
|
230
|
-
$ sf org delete snapshot -v <value> -s <value> [--json] [--flags-dir <value>] [--api-version <value>]
|
230
|
+
$ sf org delete snapshot -v <value> -s <value> [--json] [--flags-dir <value>] [--api-version <value>] [-p]
|
231
231
|
|
232
232
|
FLAGS
|
233
|
+
-p, --no-prompt Don't prompt the user to confirm the deletion.
|
233
234
|
-s, --snapshot=<value> (required) Name or ID of snapshot to delete.
|
234
235
|
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the `target-dev-hub`
|
235
236
|
configuration variable is already set.
|
@@ -263,7 +264,7 @@ FLAG DESCRIPTIONS
|
|
263
264
|
The IDs of scratch org snapshots start with 0Oo.
|
264
265
|
```
|
265
266
|
|
266
|
-
_See code: [src/commands/org/delete/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.
|
267
|
+
_See code: [src/commands/org/delete/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.3.0/src/commands/org/delete/snapshot.ts)_
|
267
268
|
|
268
269
|
## `sf org get snapshot`
|
269
270
|
|
@@ -310,7 +311,7 @@ FLAG DESCRIPTIONS
|
|
310
311
|
The IDs of scratch org snapshots start with 0Oo.
|
311
312
|
```
|
312
313
|
|
313
|
-
_See code: [src/commands/org/get/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.
|
314
|
+
_See code: [src/commands/org/get/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.3.0/src/commands/org/get/snapshot.ts)_
|
314
315
|
|
315
316
|
## `sf org list shape`
|
316
317
|
|
@@ -343,7 +344,7 @@ EXAMPLES
|
|
343
344
|
$ sf org list shape --json > tmp/MyOrgShapeList.json
|
344
345
|
```
|
345
346
|
|
346
|
-
_See code: [src/commands/org/list/shape.ts](https://github.com/salesforcecli/plugin-signups/blob/2.
|
347
|
+
_See code: [src/commands/org/list/shape.ts](https://github.com/salesforcecli/plugin-signups/blob/2.3.0/src/commands/org/list/shape.ts)_
|
347
348
|
|
348
349
|
## `sf org list snapshot`
|
349
350
|
|
@@ -385,6 +386,6 @@ EXAMPLES
|
|
385
386
|
$ sf org list snapshot --target-dev-hub SnapshotDevHub
|
386
387
|
```
|
387
388
|
|
388
|
-
_See code: [src/commands/org/list/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.
|
389
|
+
_See code: [src/commands/org/list/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.3.0/src/commands/org/list/snapshot.ts)_
|
389
390
|
|
390
391
|
<!-- commandsstop -->
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
2
2
|
import type { SaveResult } from '@jsforce/jsforce-node';
|
3
|
-
export declare class SnapshotDelete extends SfCommand<SaveResult> {
|
3
|
+
export declare class SnapshotDelete extends SfCommand<SaveResult | undefined> {
|
4
4
|
static readonly summary: string;
|
5
5
|
static readonly description: string;
|
6
6
|
static readonly examples: string[];
|
@@ -12,6 +12,7 @@ export declare class SnapshotDelete extends SfCommand<SaveResult> {
|
|
12
12
|
'api-version': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
13
13
|
loglevel: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
14
14
|
snapshot: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
15
|
+
'no-prompt': import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
15
16
|
};
|
16
|
-
run(): Promise<SaveResult>;
|
17
|
+
run(): Promise<SaveResult | undefined>;
|
17
18
|
}
|
@@ -29,10 +29,18 @@ export class SnapshotDelete extends SfCommand {
|
|
29
29
|
description: messages.getMessage('flags.snapshot.description'),
|
30
30
|
required: true,
|
31
31
|
}),
|
32
|
+
'no-prompt': Flags.boolean({
|
33
|
+
char: 'p',
|
34
|
+
summary: messages.getMessage('flags.no-prompt.summary'),
|
35
|
+
}),
|
32
36
|
};
|
33
37
|
async run() {
|
34
|
-
// resolve the query to an ID. This also verifies the snapshot exists in the org
|
35
38
|
const { flags } = await this.parse(SnapshotDelete);
|
39
|
+
const snapshot = flags['snapshot'];
|
40
|
+
if (!flags['no-prompt'] && !(await this.confirm({ message: messages.getMessage('prompt.confirm', [snapshot]) }))) {
|
41
|
+
return;
|
42
|
+
}
|
43
|
+
// resolve the query to an ID. This also verifies the snapshot exists in the org
|
36
44
|
const conn = flags['target-dev-hub'].getConnection(flags['api-version']);
|
37
45
|
const result = await queryByNameOrId(conn, flags.snapshot);
|
38
46
|
const deleteResult = await conn.sobject('OrgSnapshot').delete(result.Id);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../../src/commands/org/delete/snapshot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAE9B,OAAO,EACL,KAAK,EACL,SAAS,EACT,QAAQ,EACR,iCAAiC,EACjC,+BAA+B,GAChC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,4BAA4B,EAAE,iBAAiB,CAAC,CAAC;AAExF,4CAA4C;AAC5C,MAAM,WAAW,GAAG,CAAC,KAAgB,EAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,KAAK,SAAS,CAAC;AAE1F,MAAM,OAAO,cAAe,SAAQ,
|
1
|
+
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../../src/commands/org/del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AAK,CAAC,OAAO,CAAC;aAC7B,IAAI,CAAC,GAAG,CAAC,CACb,CAAC;IACJ,CAAC"}
|
@@ -24,6 +24,14 @@ Name or ID of snapshot to delete.
|
|
24
24
|
|
25
25
|
The IDs of scratch org snapshots start with 0Oo.
|
26
26
|
|
27
|
+
# flags.no-prompt.summary
|
28
|
+
|
29
|
+
Don't prompt the user to confirm the deletion.
|
30
|
+
|
31
|
+
# prompt.confirm
|
32
|
+
|
33
|
+
Are you sure you want to delete the snapshot with name: %s?
|
34
|
+
|
27
35
|
# success
|
28
36
|
|
29
37
|
Successfully deleted snapshot %s.
|
package/npm-shrinkwrap.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salesforce/plugin-signups",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.3.0",
|
4
4
|
"lockfileVersion": 3,
|
5
5
|
"requires": true,
|
6
6
|
"packages": {
|
7
7
|
"": {
|
8
8
|
"name": "@salesforce/plugin-signups",
|
9
|
-
"version": "2.
|
9
|
+
"version": "2.3.0",
|
10
10
|
"license": "BSD-3-Clause",
|
11
11
|
"dependencies": {
|
12
12
|
"@oclif/core": "^3.26.2",
|
package/oclif.manifest.json
CHANGED
@@ -590,6 +590,13 @@
|
|
590
590
|
"hasDynamicHelp": false,
|
591
591
|
"multiple": false,
|
592
592
|
"type": "option"
|
593
|
+
},
|
594
|
+
"no-prompt": {
|
595
|
+
"char": "p",
|
596
|
+
"name": "no-prompt",
|
597
|
+
"summary": "Don't prompt the user to confirm the deletion.",
|
598
|
+
"allowNo": false,
|
599
|
+
"type": "boolean"
|
593
600
|
}
|
594
601
|
},
|
595
602
|
"hasDynamicHelp": true,
|
@@ -859,5 +866,5 @@
|
|
859
866
|
]
|
860
867
|
}
|
861
868
|
},
|
862
|
-
"version": "2.
|
869
|
+
"version": "2.3.0"
|
863
870
|
}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salesforce/plugin-signups",
|
3
3
|
"description": "Commands to interact with org shapes",
|
4
|
-
"version": "2.
|
4
|
+
"version": "2.3.0",
|
5
5
|
"author": "Salesforce",
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
7
7
|
"dependencies": {
|
@@ -256,7 +256,7 @@
|
|
256
256
|
"exports": "./lib/index.js",
|
257
257
|
"type": "module",
|
258
258
|
"sfdx": {
|
259
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-signups/2.
|
260
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-signups/2.
|
259
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-signups/2.3.0.crt",
|
260
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-signups/2.3.0.sig"
|
261
261
|
}
|
262
262
|
}
|