@salesforce/plugin-settings 1.3.0 → 1.4.1
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/lib/commands/alias/list.d.ts +5 -1
- package/lib/commands/alias/list.js +5 -1
- package/lib/commands/alias/list.js.map +1 -1
- package/lib/commands/alias/set.d.ts +5 -1
- package/lib/commands/alias/set.js +8 -3
- package/lib/commands/alias/set.js.map +1 -1
- package/lib/commands/alias/unset.d.ts +3 -1
- package/lib/commands/alias/unset.js +4 -2
- package/lib/commands/alias/unset.js.map +1 -1
- package/lib/commands/config/get.d.ts +4 -4
- package/lib/commands/config/get.js +38 -10
- package/lib/commands/config/get.js.map +1 -1
- package/lib/commands/config/list.d.ts +5 -1
- package/lib/commands/config/list.js +5 -1
- package/lib/commands/config/list.js.map +1 -1
- package/lib/commands/config/set.d.ts +13 -7
- package/lib/commands/config/set.js +75 -12
- package/lib/commands/config/set.js.map +1 -1
- package/lib/commands/config/unset.d.ts +10 -7
- package/lib/commands/config/unset.js +56 -13
- package/lib/commands/config/unset.js.map +1 -1
- package/lib/config.d.ts +12 -4
- package/lib/config.js +14 -1
- package/lib/config.js.map +1 -1
- package/lib/hooks/init/load_config_meta.js +1 -1
- package/lib/hooks/init/load_config_meta.js.map +1 -1
- package/messages/config.get.md +4 -0
- package/messages/config.set.md +4 -0
- package/messages/config.unset.md +4 -0
- package/oclif.manifest.json +177 -65
- package/package.json +37 -25
- package/schemas/config-get.json +38 -0
- package/schemas/config-list.json +38 -0
- package/schemas/config-set.json +57 -6
- package/schemas/config-unset.json +57 -6
package/package.json
CHANGED
|
@@ -1,40 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-settings",
|
|
3
3
|
"description": "configure the Salesforce CLI",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.4.1",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@oclif/core": "^2.
|
|
9
|
-
"@salesforce/core": "^3.
|
|
10
|
-
"@salesforce/sf-plugins-core": "^2.
|
|
8
|
+
"@oclif/core": "^2.3.0",
|
|
9
|
+
"@salesforce/core": "^3.33.4",
|
|
10
|
+
"@salesforce/sf-plugins-core": "^2.2.1",
|
|
11
|
+
"fast-levenshtein": "^3.0.0",
|
|
11
12
|
"tslib": "^2"
|
|
12
13
|
},
|
|
13
14
|
"devDependencies": {
|
|
14
15
|
"@oclif/plugin-command-snapshot": "^3.3.2",
|
|
15
|
-
"@oclif/test": "^2.3.
|
|
16
|
-
"@salesforce/cli-plugins-testkit": "^3.2.
|
|
16
|
+
"@oclif/test": "^2.3.7",
|
|
17
|
+
"@salesforce/cli-plugins-testkit": "^3.2.21",
|
|
17
18
|
"@salesforce/dev-config": "^3.1.0",
|
|
18
|
-
"@salesforce/dev-scripts": "^4.
|
|
19
|
-
"@salesforce/kit": "^1.
|
|
19
|
+
"@salesforce/dev-scripts": "^4.1.1",
|
|
20
|
+
"@salesforce/kit": "^1.8.5",
|
|
20
21
|
"@salesforce/plugin-command-reference": "^2.2.8",
|
|
21
22
|
"@salesforce/prettier-config": "^0.0.2",
|
|
22
23
|
"@salesforce/ts-sinon": "^1.4.4",
|
|
23
24
|
"@salesforce/ts-types": "^1.7.1",
|
|
24
25
|
"@swc/core": "^1.3.27",
|
|
26
|
+
"@types/fast-levenshtein": "^0.0.2",
|
|
25
27
|
"@types/fs-extra": "^9.0.13",
|
|
26
28
|
"@types/shelljs": "^0.8.11",
|
|
27
29
|
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
|
28
30
|
"@typescript-eslint/parser": "^5.48.0",
|
|
29
31
|
"chai": "^4.3.7",
|
|
30
32
|
"eslint": "^8.31.0",
|
|
31
|
-
"eslint-config-prettier": "^8.
|
|
32
|
-
"eslint-config-salesforce": "^1.1.
|
|
33
|
+
"eslint-config-prettier": "^8.6.0",
|
|
34
|
+
"eslint-config-salesforce": "^1.1.1",
|
|
33
35
|
"eslint-config-salesforce-license": "^0.2.0",
|
|
34
36
|
"eslint-config-salesforce-typescript": "^1.1.1",
|
|
35
37
|
"eslint-plugin-header": "^3.1.1",
|
|
36
|
-
"eslint-plugin-import": "^2.
|
|
37
|
-
"eslint-plugin-jsdoc": "^39.
|
|
38
|
+
"eslint-plugin-import": "^2.27.5",
|
|
39
|
+
"eslint-plugin-jsdoc": "^39.9.1",
|
|
38
40
|
"eslint-plugin-sf-plugin": "^1.8.1",
|
|
39
41
|
"fs-extra": "^10.1.0",
|
|
40
42
|
"husky": "^7.0.4",
|
|
@@ -47,8 +49,8 @@
|
|
|
47
49
|
"shx": "0.3.4",
|
|
48
50
|
"sinon": "10.0.0",
|
|
49
51
|
"ts-node": "^10.9.1",
|
|
50
|
-
"typescript": "^4.9.
|
|
51
|
-
"wireit": "^0.9.
|
|
52
|
+
"typescript": "^4.9.5",
|
|
53
|
+
"wireit": "^0.9.5"
|
|
52
54
|
},
|
|
53
55
|
"config": {},
|
|
54
56
|
"engines": {
|
|
@@ -110,10 +112,6 @@
|
|
|
110
112
|
"prepare": "sf-install",
|
|
111
113
|
"reformat": "prettier --config .prettierrc --write './*.{js,json,md}' './**/*.{ts,json,md}'",
|
|
112
114
|
"test": "wireit",
|
|
113
|
-
"test:command-reference": "wireit",
|
|
114
|
-
"test:compile": "wireit",
|
|
115
|
-
"test:deprecation-policy": "wireit",
|
|
116
|
-
"test:json-schema": "wireit",
|
|
117
115
|
"test:nuts": "nyc mocha \"test/**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel --jobs 20",
|
|
118
116
|
"test:only": "wireit",
|
|
119
117
|
"version": "oclif readme"
|
|
@@ -142,7 +140,15 @@
|
|
|
142
140
|
"clean": "if-file-deleted"
|
|
143
141
|
},
|
|
144
142
|
"format": {
|
|
145
|
-
"command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\""
|
|
143
|
+
"command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
|
|
144
|
+
"files": [
|
|
145
|
+
"src/**/*.ts",
|
|
146
|
+
"test/**/*.ts",
|
|
147
|
+
"schemas/**/*.json",
|
|
148
|
+
"command-snapshot.json",
|
|
149
|
+
".prettier*"
|
|
150
|
+
],
|
|
151
|
+
"output": []
|
|
146
152
|
},
|
|
147
153
|
"lint": {
|
|
148
154
|
"command": "eslint src test --color --cache --cache-location .eslintcache",
|
|
@@ -150,8 +156,7 @@
|
|
|
150
156
|
"src/**/*.ts",
|
|
151
157
|
"test/**/*.ts",
|
|
152
158
|
"messages/**",
|
|
153
|
-
".
|
|
154
|
-
".eslintrc.js"
|
|
159
|
+
".eslint*"
|
|
155
160
|
],
|
|
156
161
|
"output": []
|
|
157
162
|
},
|
|
@@ -176,11 +181,17 @@
|
|
|
176
181
|
},
|
|
177
182
|
"test:only": {
|
|
178
183
|
"command": "nyc mocha \"test/**/*.test.ts\"",
|
|
184
|
+
"env": {
|
|
185
|
+
"FORCE_COLOR": "2"
|
|
186
|
+
},
|
|
179
187
|
"files": [
|
|
180
188
|
"test/**/*.ts",
|
|
181
189
|
"src/**/*.ts",
|
|
182
190
|
"tsconfig.json",
|
|
183
|
-
"
|
|
191
|
+
".mocha*",
|
|
192
|
+
"test/tsconfig.json",
|
|
193
|
+
"!*.nut.ts",
|
|
194
|
+
".nycrc"
|
|
184
195
|
],
|
|
185
196
|
"output": []
|
|
186
197
|
},
|
|
@@ -188,7 +199,8 @@
|
|
|
188
199
|
"command": "\"./bin/dev\" commandreference:generate --erroronwarnings",
|
|
189
200
|
"files": [
|
|
190
201
|
"src/**/*.ts",
|
|
191
|
-
"messages/**"
|
|
202
|
+
"messages/**",
|
|
203
|
+
"package.json"
|
|
192
204
|
],
|
|
193
205
|
"output": [
|
|
194
206
|
"tmp/root"
|
|
@@ -214,7 +226,7 @@
|
|
|
214
226
|
}
|
|
215
227
|
},
|
|
216
228
|
"sfdx": {
|
|
217
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-settings/1.
|
|
218
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-settings/1.
|
|
229
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-settings/1.4.1.crt",
|
|
230
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-settings/1.4.1.sig"
|
|
219
231
|
}
|
|
220
232
|
}
|
package/schemas/config-get.json
CHANGED
|
@@ -44,6 +44,44 @@
|
|
|
44
44
|
},
|
|
45
45
|
"required": ["name", "message"],
|
|
46
46
|
"additionalProperties": false
|
|
47
|
+
},
|
|
48
|
+
"successes": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"message": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"name": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"required": ["name"],
|
|
61
|
+
"additionalProperties": false
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"failures": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"properties": {
|
|
69
|
+
"message": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
"name": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"required": ["name"],
|
|
77
|
+
"additionalProperties": false
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"key": {
|
|
81
|
+
"type": "string"
|
|
82
|
+
},
|
|
83
|
+
"deprecated": {
|
|
84
|
+
"type": "boolean"
|
|
47
85
|
}
|
|
48
86
|
},
|
|
49
87
|
"required": ["name", "success"],
|
package/schemas/config-list.json
CHANGED
|
@@ -44,6 +44,44 @@
|
|
|
44
44
|
},
|
|
45
45
|
"required": ["name", "message"],
|
|
46
46
|
"additionalProperties": false
|
|
47
|
+
},
|
|
48
|
+
"successes": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"message": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"name": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"required": ["name"],
|
|
61
|
+
"additionalProperties": false
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"failures": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"properties": {
|
|
69
|
+
"message": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
"name": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"required": ["name"],
|
|
77
|
+
"additionalProperties": false
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"key": {
|
|
81
|
+
"type": "string"
|
|
82
|
+
},
|
|
83
|
+
"deprecated": {
|
|
84
|
+
"type": "boolean"
|
|
47
85
|
}
|
|
48
86
|
},
|
|
49
87
|
"required": ["name", "success"],
|
package/schemas/config-set.json
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$ref": "#/definitions/
|
|
3
|
+
"$ref": "#/definitions/SetConfigCommandResult",
|
|
4
4
|
"definitions": {
|
|
5
|
-
"
|
|
6
|
-
"type": "
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
5
|
+
"SetConfigCommandResult": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"successes": {
|
|
9
|
+
"type": "array",
|
|
10
|
+
"items": {
|
|
11
|
+
"$ref": "#/definitions/Msg"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"failures": {
|
|
15
|
+
"type": "array",
|
|
16
|
+
"items": {
|
|
17
|
+
"$ref": "#/definitions/Msg"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": ["successes", "failures"],
|
|
22
|
+
"additionalProperties": false
|
|
10
23
|
},
|
|
11
24
|
"Msg": {
|
|
12
25
|
"type": "object",
|
|
@@ -44,6 +57,44 @@
|
|
|
44
57
|
},
|
|
45
58
|
"required": ["name", "message"],
|
|
46
59
|
"additionalProperties": false
|
|
60
|
+
},
|
|
61
|
+
"successes": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"items": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"properties": {
|
|
66
|
+
"message": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"name": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": ["name"],
|
|
74
|
+
"additionalProperties": false
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"failures": {
|
|
78
|
+
"type": "array",
|
|
79
|
+
"items": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"properties": {
|
|
82
|
+
"message": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"name": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": ["name"],
|
|
90
|
+
"additionalProperties": false
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"key": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
"deprecated": {
|
|
97
|
+
"type": "boolean"
|
|
47
98
|
}
|
|
48
99
|
},
|
|
49
100
|
"required": ["name", "success"],
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$ref": "#/definitions/
|
|
3
|
+
"$ref": "#/definitions/SetConfigCommandResult",
|
|
4
4
|
"definitions": {
|
|
5
|
-
"
|
|
6
|
-
"type": "
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
5
|
+
"SetConfigCommandResult": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"successes": {
|
|
9
|
+
"type": "array",
|
|
10
|
+
"items": {
|
|
11
|
+
"$ref": "#/definitions/Msg"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"failures": {
|
|
15
|
+
"type": "array",
|
|
16
|
+
"items": {
|
|
17
|
+
"$ref": "#/definitions/Msg"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": ["successes", "failures"],
|
|
22
|
+
"additionalProperties": false
|
|
10
23
|
},
|
|
11
24
|
"Msg": {
|
|
12
25
|
"type": "object",
|
|
@@ -44,6 +57,44 @@
|
|
|
44
57
|
},
|
|
45
58
|
"required": ["name", "message"],
|
|
46
59
|
"additionalProperties": false
|
|
60
|
+
},
|
|
61
|
+
"successes": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"items": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"properties": {
|
|
66
|
+
"message": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"name": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": ["name"],
|
|
74
|
+
"additionalProperties": false
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"failures": {
|
|
78
|
+
"type": "array",
|
|
79
|
+
"items": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"properties": {
|
|
82
|
+
"message": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"name": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": ["name"],
|
|
90
|
+
"additionalProperties": false
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"key": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
"deprecated": {
|
|
97
|
+
"type": "boolean"
|
|
47
98
|
}
|
|
48
99
|
},
|
|
49
100
|
"required": ["name", "success"],
|