@salesforce/plugin-settings 1.5.0-qa.5 → 2.0.2

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