@salesforce/plugin-settings 1.4.5 → 1.4.7
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/set.js +5 -1
- package/lib/commands/alias/set.js.map +1 -1
- package/lib/commands/alias/unset.js +5 -1
- package/lib/commands/alias/unset.js.map +1 -1
- package/lib/commands/config/get.d.ts +3 -2
- package/lib/commands/config/get.js +10 -27
- package/lib/commands/config/get.js.map +1 -1
- package/lib/commands/config/list.d.ts +4 -3
- package/lib/commands/config/list.js +4 -9
- package/lib/commands/config/list.js.map +1 -1
- package/lib/commands/config/set.d.ts +5 -6
- package/lib/commands/config/set.js +21 -67
- package/lib/commands/config/set.js.map +1 -1
- package/lib/commands/config/unset.d.ts +5 -6
- package/lib/commands/config/unset.js +13 -35
- package/lib/commands/config/unset.js.map +1 -1
- package/lib/config.d.ts +6 -9
- package/lib/config.js +83 -70
- package/lib/config.js.map +1 -1
- package/lib/hooks/init/load_config_meta.js +2 -3
- package/lib/hooks/init/load_config_meta.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +220 -221
- package/schemas/config-get.json +1 -1
- package/schemas/config-list.json +1 -1
- package/schemas/config-set.json +3 -3
- package/schemas/config-unset.json +3 -3
package/package.json
CHANGED
|
@@ -1,231 +1,230 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
"name": "@salesforce/plugin-settings",
|
|
3
|
+
"description": "configure the Salesforce CLI",
|
|
4
|
+
"version": "1.4.7",
|
|
5
|
+
"author": "Salesforce",
|
|
6
|
+
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@oclif/core": "^2.8.2",
|
|
9
|
+
"@salesforce/core": "^3.36.1",
|
|
10
|
+
"@salesforce/sf-plugins-core": "^2.4.0",
|
|
11
|
+
"fast-levenshtein": "^3.0.0",
|
|
12
|
+
"tslib": "^2"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@oclif/plugin-command-snapshot": "^3.3.13",
|
|
16
|
+
"@oclif/test": "^2.3.17",
|
|
17
|
+
"@salesforce/cli-plugins-testkit": "^3.3.6",
|
|
18
|
+
"@salesforce/dev-config": "^3.1.0",
|
|
19
|
+
"@salesforce/dev-scripts": "^4.3.1",
|
|
20
|
+
"@salesforce/kit": "^1.8.5",
|
|
21
|
+
"@salesforce/plugin-command-reference": "^2.2.8",
|
|
22
|
+
"@salesforce/plugin-deploy-retrieve": "^1.8.18",
|
|
23
|
+
"@salesforce/prettier-config": "^0.0.2",
|
|
24
|
+
"@salesforce/ts-sinon": "^1.4.4",
|
|
25
|
+
"@salesforce/ts-types": "^1.7.1",
|
|
26
|
+
"@swc/core": "^1.3.27",
|
|
27
|
+
"@types/fast-levenshtein": "^0.0.2",
|
|
28
|
+
"@types/fs-extra": "^9.0.13",
|
|
29
|
+
"@types/shelljs": "^0.8.12",
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
|
31
|
+
"@typescript-eslint/parser": "^5.59.1",
|
|
32
|
+
"chai": "^4.3.7",
|
|
33
|
+
"eslint": "^8.40.0",
|
|
34
|
+
"eslint-config-prettier": "^8.8.0",
|
|
35
|
+
"eslint-config-salesforce": "^1.2.0",
|
|
36
|
+
"eslint-config-salesforce-license": "^0.2.0",
|
|
37
|
+
"eslint-config-salesforce-typescript": "^1.1.1",
|
|
38
|
+
"eslint-plugin-header": "^3.1.1",
|
|
39
|
+
"eslint-plugin-import": "^2.27.5",
|
|
40
|
+
"eslint-plugin-jsdoc": "^39.9.1",
|
|
41
|
+
"eslint-plugin-sf-plugin": "^1.15.1",
|
|
42
|
+
"fs-extra": "^10.1.0",
|
|
43
|
+
"husky": "^7.0.4",
|
|
44
|
+
"mocha": "^9.2.2",
|
|
45
|
+
"nyc": "^15.1.0",
|
|
46
|
+
"oclif": "^3.9.0",
|
|
47
|
+
"prettier": "^2.8.8",
|
|
48
|
+
"pretty-quick": "^3.1.3",
|
|
49
|
+
"shelljs": "^0.8.5",
|
|
50
|
+
"shx": "0.3.4",
|
|
51
|
+
"sinon": "10.0.0",
|
|
52
|
+
"ts-node": "^10.9.1",
|
|
53
|
+
"typescript": "^4.9.5",
|
|
54
|
+
"wireit": "^0.9.5"
|
|
55
|
+
},
|
|
56
|
+
"config": {},
|
|
57
|
+
"engines": {
|
|
58
|
+
"node": ">=14.0.0"
|
|
59
|
+
},
|
|
60
|
+
"files": [
|
|
61
|
+
"/lib",
|
|
62
|
+
"/messages",
|
|
63
|
+
"/oclif.manifest.json",
|
|
64
|
+
"/schemas"
|
|
65
|
+
],
|
|
66
|
+
"homepage": "https://github.com/salesforcecli/plugin-settings",
|
|
67
|
+
"keywords": [
|
|
68
|
+
"force",
|
|
69
|
+
"salesforce",
|
|
70
|
+
"sfdx",
|
|
71
|
+
"salesforcedx",
|
|
72
|
+
"sfdx-plugin",
|
|
73
|
+
"sf-plugin",
|
|
74
|
+
"sf"
|
|
75
|
+
],
|
|
76
|
+
"license": "BSD-3-Clause",
|
|
77
|
+
"main": "lib/index.js",
|
|
78
|
+
"oclif": {
|
|
79
|
+
"commands": "./lib/commands",
|
|
80
|
+
"bin": "sf",
|
|
81
|
+
"topicSeparator": " ",
|
|
82
|
+
"hooks": {
|
|
83
|
+
"init": [
|
|
84
|
+
"./lib/hooks/init/load_config_meta"
|
|
85
|
+
]
|
|
13
86
|
},
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
87
|
+
"devPlugins": [
|
|
88
|
+
"@oclif/plugin-help",
|
|
89
|
+
"@oclif/plugin-command-snapshot",
|
|
90
|
+
"@salesforce/plugin-command-reference",
|
|
91
|
+
"@salesforce/plugin-deploy-retrieve"
|
|
92
|
+
],
|
|
93
|
+
"topics": {
|
|
94
|
+
"config": {
|
|
95
|
+
"description": "Commands to configure Salesforce CLI."
|
|
96
|
+
},
|
|
97
|
+
"alias": {
|
|
98
|
+
"description": "Use the alias commands to manage your aliases."
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"repository": "salesforcecli/plugin-settings",
|
|
103
|
+
"scripts": {
|
|
104
|
+
"build": "wireit",
|
|
105
|
+
"clean": "sf-clean",
|
|
106
|
+
"clean-all": "sf-clean all",
|
|
107
|
+
"clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
|
|
108
|
+
"compile": "wireit",
|
|
109
|
+
"docs": "sf-docs",
|
|
110
|
+
"format": "wireit",
|
|
111
|
+
"lint": "wireit",
|
|
112
|
+
"postpack": "shx rm -f oclif.manifest.json",
|
|
113
|
+
"prepack": "sf-prepack",
|
|
114
|
+
"prepare": "sf-install",
|
|
115
|
+
"reformat": "prettier --config .prettierrc --write './*.{js,json,md}' './**/*.{ts,json,md}'",
|
|
116
|
+
"test": "wireit",
|
|
117
|
+
"test:nuts": "nyc mocha \"test/**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel --jobs 20",
|
|
118
|
+
"test:nuts:config": "nyc mocha \"test/**/config/**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel --jobs 20",
|
|
119
|
+
"test:only": "wireit",
|
|
120
|
+
"version": "oclif readme"
|
|
121
|
+
},
|
|
122
|
+
"publishConfig": {
|
|
123
|
+
"access": "public"
|
|
124
|
+
},
|
|
125
|
+
"wireit": {
|
|
126
|
+
"build": {
|
|
127
|
+
"dependencies": [
|
|
128
|
+
"compile",
|
|
129
|
+
"lint"
|
|
130
|
+
]
|
|
54
131
|
},
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
132
|
+
"compile": {
|
|
133
|
+
"command": "tsc -p . --pretty --incremental",
|
|
134
|
+
"files": [
|
|
135
|
+
"src/**/*.ts",
|
|
136
|
+
"**/tsconfig.json",
|
|
137
|
+
"messages/**"
|
|
138
|
+
],
|
|
139
|
+
"output": [
|
|
140
|
+
"lib/**",
|
|
141
|
+
"*.tsbuildinfo"
|
|
142
|
+
],
|
|
143
|
+
"clean": "if-file-deleted"
|
|
58
144
|
},
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
145
|
+
"format": {
|
|
146
|
+
"command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
|
|
147
|
+
"files": [
|
|
148
|
+
"src/**/*.ts",
|
|
149
|
+
"test/**/*.ts",
|
|
150
|
+
"schemas/**/*.json",
|
|
151
|
+
"command-snapshot.json",
|
|
152
|
+
".prettier*"
|
|
153
|
+
],
|
|
154
|
+
"output": []
|
|
155
|
+
},
|
|
156
|
+
"lint": {
|
|
157
|
+
"command": "eslint src test --color --cache --cache-location .eslintcache",
|
|
158
|
+
"files": [
|
|
159
|
+
"src/**/*.ts",
|
|
160
|
+
"test/**/*.ts",
|
|
161
|
+
"messages/**",
|
|
162
|
+
"**/.eslint*",
|
|
163
|
+
"**/tsconfig.json"
|
|
164
|
+
],
|
|
165
|
+
"output": []
|
|
166
|
+
},
|
|
167
|
+
"test:compile": {
|
|
168
|
+
"command": "tsc -p \"./test\" --pretty",
|
|
169
|
+
"files": [
|
|
170
|
+
"test/**/*.ts",
|
|
171
|
+
"**/tsconfig.json"
|
|
172
|
+
],
|
|
173
|
+
"output": []
|
|
174
|
+
},
|
|
175
|
+
"test": {
|
|
176
|
+
"dependencies": [
|
|
177
|
+
"test:compile",
|
|
178
|
+
"test:only",
|
|
179
|
+
"test:command-reference",
|
|
180
|
+
"test:deprecation-policy",
|
|
181
|
+
"lint",
|
|
182
|
+
"test:json-schema"
|
|
183
|
+
]
|
|
99
184
|
},
|
|
100
|
-
"
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"test": "wireit",
|
|
115
|
-
"test:nuts": "nyc mocha \"test/**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel --jobs 20",
|
|
116
|
-
"test:only": "wireit",
|
|
117
|
-
"version": "oclif readme"
|
|
185
|
+
"test:only": {
|
|
186
|
+
"command": "nyc mocha \"test/**/*.test.ts\"",
|
|
187
|
+
"env": {
|
|
188
|
+
"FORCE_COLOR": "2"
|
|
189
|
+
},
|
|
190
|
+
"files": [
|
|
191
|
+
"test/**/*.ts",
|
|
192
|
+
"src/**/*.ts",
|
|
193
|
+
"**/tsconfig.json",
|
|
194
|
+
".mocha*",
|
|
195
|
+
"!*.nut.ts",
|
|
196
|
+
".nycrc"
|
|
197
|
+
],
|
|
198
|
+
"output": []
|
|
118
199
|
},
|
|
119
|
-
"
|
|
120
|
-
|
|
200
|
+
"test:command-reference": {
|
|
201
|
+
"command": "\"./bin/dev\" commandreference:generate --erroronwarnings",
|
|
202
|
+
"files": [
|
|
203
|
+
"src/**/*.ts",
|
|
204
|
+
"messages/**",
|
|
205
|
+
"package.json"
|
|
206
|
+
],
|
|
207
|
+
"output": [
|
|
208
|
+
"tmp/root"
|
|
209
|
+
]
|
|
121
210
|
},
|
|
122
|
-
"
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
"compile"
|
|
130
|
-
|
|
131
|
-
"files": [
|
|
132
|
-
"src/**/*.ts",
|
|
133
|
-
"**/tsconfig.json",
|
|
134
|
-
"messages/**"
|
|
135
|
-
],
|
|
136
|
-
"output": [
|
|
137
|
-
"lib/**",
|
|
138
|
-
"*.tsbuildinfo"
|
|
139
|
-
],
|
|
140
|
-
"clean": "if-file-deleted"
|
|
141
|
-
},
|
|
142
|
-
"format": {
|
|
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": []
|
|
152
|
-
},
|
|
153
|
-
"lint": {
|
|
154
|
-
"command": "eslint src test --color --cache --cache-location .eslintcache",
|
|
155
|
-
"files": [
|
|
156
|
-
"src/**/*.ts",
|
|
157
|
-
"test/**/*.ts",
|
|
158
|
-
"messages/**",
|
|
159
|
-
"**/.eslint*",
|
|
160
|
-
"**/tsconfig.json"
|
|
161
|
-
],
|
|
162
|
-
"output": []
|
|
163
|
-
},
|
|
164
|
-
"test:compile": {
|
|
165
|
-
"command": "tsc -p \"./test\" --pretty",
|
|
166
|
-
"files": [
|
|
167
|
-
"test/**/*.ts",
|
|
168
|
-
"**/tsconfig.json"
|
|
169
|
-
],
|
|
170
|
-
"output": []
|
|
171
|
-
},
|
|
172
|
-
"test": {
|
|
173
|
-
"dependencies": [
|
|
174
|
-
"test:compile",
|
|
175
|
-
"test:only",
|
|
176
|
-
"test:command-reference",
|
|
177
|
-
"test:deprecation-policy",
|
|
178
|
-
"lint",
|
|
179
|
-
"test:json-schema"
|
|
180
|
-
]
|
|
181
|
-
},
|
|
182
|
-
"test:only": {
|
|
183
|
-
"command": "nyc mocha \"test/**/*.test.ts\"",
|
|
184
|
-
"env": {
|
|
185
|
-
"FORCE_COLOR": "2"
|
|
186
|
-
},
|
|
187
|
-
"files": [
|
|
188
|
-
"test/**/*.ts",
|
|
189
|
-
"src/**/*.ts",
|
|
190
|
-
"**/tsconfig.json",
|
|
191
|
-
".mocha*",
|
|
192
|
-
"!*.nut.ts",
|
|
193
|
-
".nycrc"
|
|
194
|
-
],
|
|
195
|
-
"output": []
|
|
196
|
-
},
|
|
197
|
-
"test:command-reference": {
|
|
198
|
-
"command": "\"./bin/dev\" commandreference:generate --erroronwarnings",
|
|
199
|
-
"files": [
|
|
200
|
-
"src/**/*.ts",
|
|
201
|
-
"messages/**",
|
|
202
|
-
"package.json"
|
|
203
|
-
],
|
|
204
|
-
"output": [
|
|
205
|
-
"tmp/root"
|
|
206
|
-
]
|
|
207
|
-
},
|
|
208
|
-
"test:deprecation-policy": {
|
|
209
|
-
"command": "\"./bin/dev\" snapshot:compare",
|
|
210
|
-
"files": [
|
|
211
|
-
"src/**/*.ts"
|
|
212
|
-
],
|
|
213
|
-
"output": [],
|
|
214
|
-
"dependencies": [
|
|
215
|
-
"compile"
|
|
216
|
-
]
|
|
217
|
-
},
|
|
218
|
-
"test:json-schema": {
|
|
219
|
-
"command": "\"./bin/dev\" schema:compare",
|
|
220
|
-
"files": [
|
|
221
|
-
"src/**/*.ts",
|
|
222
|
-
"schemas"
|
|
223
|
-
],
|
|
224
|
-
"output": []
|
|
225
|
-
}
|
|
211
|
+
"test:deprecation-policy": {
|
|
212
|
+
"command": "\"./bin/dev\" snapshot:compare",
|
|
213
|
+
"files": [
|
|
214
|
+
"src/**/*.ts"
|
|
215
|
+
],
|
|
216
|
+
"output": [],
|
|
217
|
+
"dependencies": [
|
|
218
|
+
"compile"
|
|
219
|
+
]
|
|
226
220
|
},
|
|
227
|
-
"
|
|
228
|
-
|
|
229
|
-
|
|
221
|
+
"test:json-schema": {
|
|
222
|
+
"command": "\"./bin/dev\" schema:compare",
|
|
223
|
+
"files": [
|
|
224
|
+
"src/**/*.ts",
|
|
225
|
+
"schemas"
|
|
226
|
+
],
|
|
227
|
+
"output": []
|
|
230
228
|
}
|
|
229
|
+
}
|
|
231
230
|
}
|
package/schemas/config-get.json
CHANGED
package/schemas/config-list.json
CHANGED
package/schemas/config-set.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$ref": "#/definitions/
|
|
3
|
+
"$ref": "#/definitions/SetOrUnsetConfigCommandResult",
|
|
4
4
|
"definitions": {
|
|
5
|
-
"
|
|
5
|
+
"SetOrUnsetConfigCommandResult": {
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
8
|
"successes": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"type": "string"
|
|
29
29
|
},
|
|
30
30
|
"value": {
|
|
31
|
-
"type": "string"
|
|
31
|
+
"type": ["string", "boolean", "number", "null"]
|
|
32
32
|
},
|
|
33
33
|
"success": {
|
|
34
34
|
"type": "boolean"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$ref": "#/definitions/
|
|
3
|
+
"$ref": "#/definitions/SetOrUnsetConfigCommandResult",
|
|
4
4
|
"definitions": {
|
|
5
|
-
"
|
|
5
|
+
"SetOrUnsetConfigCommandResult": {
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
8
|
"successes": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"type": "string"
|
|
29
29
|
},
|
|
30
30
|
"value": {
|
|
31
|
-
"type": "string"
|
|
31
|
+
"type": ["string", "boolean", "number", "null"]
|
|
32
32
|
},
|
|
33
33
|
"success": {
|
|
34
34
|
"type": "boolean"
|