@salesforce/plugin-settings 1.5.0-qa.4 → 2.0.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/README.md +173 -17
- package/lib/alias.js +2 -6
- package/lib/alias.js.map +1 -1
- package/lib/commands/alias/list.d.ts +2 -2
- package/lib/commands/alias/list.js +15 -16
- package/lib/commands/alias/list.js.map +1 -1
- package/lib/commands/alias/set.d.ts +2 -2
- package/lib/commands/alias/set.js +22 -19
- package/lib/commands/alias/set.js.map +1 -1
- package/lib/commands/alias/unset.d.ts +4 -4
- package/lib/commands/alias/unset.js +31 -28
- package/lib/commands/alias/unset.js.map +1 -1
- package/lib/commands/config/get.d.ts +5 -4
- package/lib/commands/config/get.js +31 -32
- package/lib/commands/config/get.js.map +1 -1
- package/lib/commands/config/list.d.ts +5 -4
- package/lib/commands/config/list.js +18 -23
- package/lib/commands/config/list.js.map +1 -1
- package/lib/commands/config/set.d.ts +7 -8
- package/lib/commands/config/set.js +46 -69
- package/lib/commands/config/set.js.map +1 -1
- package/lib/commands/config/unset.d.ts +7 -8
- package/lib/commands/config/unset.js +39 -52
- package/lib/commands/config/unset.js.map +1 -1
- package/lib/config.d.ts +8 -10
- package/lib/config.js +80 -75
- package/lib/config.js.map +1 -1
- package/lib/hooks/init/load_config_meta.js +14 -41
- package/lib/hooks/init/load_config_meta.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -3
- package/lib/index.js.map +1 -1
- package/messages/config.get.md +3 -1
- package/messages/config.list.md +6 -2
- package/messages/config.set.md +8 -8
- package/messages/config.unset.md +7 -1
- package/oclif.lock +8544 -0
- package/oclif.manifest.json +286 -144
- package/package.json +225 -220
- 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/README.md
CHANGED
|
@@ -54,7 +54,7 @@ yarn install
|
|
|
54
54
|
yarn build
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
To use your plugin, run using the local `./bin/dev` or `./bin/dev.cmd` file.
|
|
57
|
+
To use your plugin, run using the local `./bin/dev.js` or `./bin/dev.cmd` file.
|
|
58
58
|
|
|
59
59
|
```bash
|
|
60
60
|
# Run using local run file.
|
|
@@ -74,11 +74,128 @@ sf plugins
|
|
|
74
74
|
|
|
75
75
|
<!-- commands -->
|
|
76
76
|
|
|
77
|
+
- [`sf alias list`](#sf-alias-list)
|
|
78
|
+
- [`sf alias set`](#sf-alias-set)
|
|
79
|
+
- [`sf alias unset`](#sf-alias-unset)
|
|
77
80
|
- [`sf config get`](#sf-config-get)
|
|
78
81
|
- [`sf config list`](#sf-config-list)
|
|
79
82
|
- [`sf config set`](#sf-config-set)
|
|
80
83
|
- [`sf config unset`](#sf-config-unset)
|
|
81
84
|
|
|
85
|
+
## `sf alias list`
|
|
86
|
+
|
|
87
|
+
List all aliases currently set on your local computer.
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
USAGE
|
|
91
|
+
$ sf alias list [--json]
|
|
92
|
+
|
|
93
|
+
GLOBAL FLAGS
|
|
94
|
+
--json Format output as json.
|
|
95
|
+
|
|
96
|
+
DESCRIPTION
|
|
97
|
+
List all aliases currently set on your local computer.
|
|
98
|
+
|
|
99
|
+
Aliases are global, which means that you can use all the listed aliases in any Salesforce DX project on your computer.
|
|
100
|
+
|
|
101
|
+
ALIASES
|
|
102
|
+
$ sf force alias list
|
|
103
|
+
|
|
104
|
+
EXAMPLES
|
|
105
|
+
List all the aliases you've set:
|
|
106
|
+
|
|
107
|
+
$ sf alias list
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
_See code: [src/commands/alias/list.ts](https://github.com/salesforcecli/plugin-settings/blob/1.4.38/src/commands/alias/list.ts)_
|
|
111
|
+
|
|
112
|
+
## `sf alias set`
|
|
113
|
+
|
|
114
|
+
Set one or more aliases on your local computer.
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
USAGE
|
|
118
|
+
$ sf alias set [--json]
|
|
119
|
+
|
|
120
|
+
GLOBAL FLAGS
|
|
121
|
+
--json Format output as json.
|
|
122
|
+
|
|
123
|
+
DESCRIPTION
|
|
124
|
+
Set one or more aliases on your local computer.
|
|
125
|
+
|
|
126
|
+
Aliases are user-defined short names that make it easier to use the CLI. For example, users often set an alias for a
|
|
127
|
+
scratch org usernames because they're long and unintuitive. Check the --help of a CLI command to determine where you
|
|
128
|
+
can use an alias.
|
|
129
|
+
|
|
130
|
+
You can associate an alias with only one value at a time. If you set an alias multiple times, the alias points to the
|
|
131
|
+
most recent value. Aliases are global; after you set an alias, you can use it in any Salesforce DX project on your
|
|
132
|
+
computer.
|
|
133
|
+
|
|
134
|
+
Use quotes to specify an alias value that contains spaces. You typically use an equal sign to set your alias, although
|
|
135
|
+
you don't need it if you're setting a single alias in a command.
|
|
136
|
+
|
|
137
|
+
ALIASES
|
|
138
|
+
$ sf force alias set
|
|
139
|
+
|
|
140
|
+
EXAMPLES
|
|
141
|
+
Set an alias for a scratch org username:
|
|
142
|
+
|
|
143
|
+
$ sf alias set my-scratch-org=test-sadbiytjsupn@example.com
|
|
144
|
+
|
|
145
|
+
Set multiple aliases with a single command:
|
|
146
|
+
|
|
147
|
+
$ sf alias set my-scratch-org=test-sadbiytjsupn@example.com my-other-scratch-org=test-ss0xut7txzxf@example.com
|
|
148
|
+
|
|
149
|
+
Set an alias that contains spaces:
|
|
150
|
+
|
|
151
|
+
$ sf alias set my-alias='alias with spaces'
|
|
152
|
+
|
|
153
|
+
Set a single alias without using an equal sign:
|
|
154
|
+
|
|
155
|
+
$ sf alias set my-scratch-org test-ss0xut7txzxf@example.com
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
_See code: [src/commands/alias/set.ts](https://github.com/salesforcecli/plugin-settings/blob/1.4.38/src/commands/alias/set.ts)_
|
|
159
|
+
|
|
160
|
+
## `sf alias unset`
|
|
161
|
+
|
|
162
|
+
Unset one or more aliases that are currently set on your local computer.
|
|
163
|
+
|
|
164
|
+
```
|
|
165
|
+
USAGE
|
|
166
|
+
$ sf alias unset [--json] [-a] [-p]
|
|
167
|
+
|
|
168
|
+
FLAGS
|
|
169
|
+
-a, --all Unset all currently set aliases.
|
|
170
|
+
-p, --no-prompt Don't prompt the user for confirmation when unsetting all aliases.
|
|
171
|
+
|
|
172
|
+
GLOBAL FLAGS
|
|
173
|
+
--json Format output as json.
|
|
174
|
+
|
|
175
|
+
DESCRIPTION
|
|
176
|
+
Unset one or more aliases that are currently set on your local computer.
|
|
177
|
+
|
|
178
|
+
Aliases are global, so when you unset one it's no longer available in any Salesforce DX project.
|
|
179
|
+
|
|
180
|
+
ALIASES
|
|
181
|
+
$ sf force alias unset
|
|
182
|
+
|
|
183
|
+
EXAMPLES
|
|
184
|
+
Unset an alias:
|
|
185
|
+
|
|
186
|
+
$ sf alias unset my-alias
|
|
187
|
+
|
|
188
|
+
Unset multiple aliases with a single command:
|
|
189
|
+
|
|
190
|
+
$ sf alias unset my-alias my-other-alias
|
|
191
|
+
|
|
192
|
+
Unset all aliases:
|
|
193
|
+
|
|
194
|
+
$ sf alias unset --all [--no-prompt]
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
_See code: [src/commands/alias/unset.ts](https://github.com/salesforcecli/plugin-settings/blob/1.4.38/src/commands/alias/unset.ts)_
|
|
198
|
+
|
|
82
199
|
## `sf config get`
|
|
83
200
|
|
|
84
201
|
Get the value of a configuration variable.
|
|
@@ -96,9 +213,13 @@ GLOBAL FLAGS
|
|
|
96
213
|
DESCRIPTION
|
|
97
214
|
Get the value of a configuration variable.
|
|
98
215
|
|
|
99
|
-
Run "sf config list" to see
|
|
100
|
-
|
|
101
|
-
configuration variable.
|
|
216
|
+
Run "sf config list" to see the configuration variables you've already set and their level (local or global).
|
|
217
|
+
|
|
218
|
+
Run "sf config set" to set a configuration variable. For the full list of available configuration variables, see
|
|
219
|
+
https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_dev_cli_config_values.htm.
|
|
220
|
+
|
|
221
|
+
ALIASES
|
|
222
|
+
$ sf force config get
|
|
102
223
|
|
|
103
224
|
EXAMPLES
|
|
104
225
|
Get the value of the "target-org" configuration variable.
|
|
@@ -110,6 +231,8 @@ EXAMPLES
|
|
|
110
231
|
$ sf config get target-org api-version --verbose
|
|
111
232
|
```
|
|
112
233
|
|
|
234
|
+
_See code: [src/commands/config/get.ts](https://github.com/salesforcecli/plugin-settings/blob/1.4.38/src/commands/config/get.ts)_
|
|
235
|
+
|
|
113
236
|
## `sf config list`
|
|
114
237
|
|
|
115
238
|
List the configuration variables that you've previously set.
|
|
@@ -124,15 +247,31 @@ GLOBAL FLAGS
|
|
|
124
247
|
DESCRIPTION
|
|
125
248
|
List the configuration variables that you've previously set.
|
|
126
249
|
|
|
127
|
-
|
|
128
|
-
|
|
250
|
+
A config variable can be global or local, depending on whether you used the --global flag when you set it. Local
|
|
251
|
+
config variables apply only to the current project and override global config variables, which apply to all projects.
|
|
252
|
+
You can set all config variables as environment variables. Environment variables override their equivalent local and
|
|
253
|
+
global config variables.
|
|
254
|
+
|
|
255
|
+
The output of this command takes into account your current context. For example, let's say you run this command from a
|
|
256
|
+
Salesforce DX project in which you've locally set the "target-org" config variable. The command displays the local
|
|
257
|
+
value, even if you've also set "target-org" globally. If you haven't set the config variable locally, then the global
|
|
258
|
+
value is displayed, if set. If you set the SF_TARGET_ORG environment variable, it's displayed as such and overrides
|
|
259
|
+
any locally or globally set "target-org" config variable.
|
|
260
|
+
|
|
261
|
+
For the full list of available configuration variables, see
|
|
262
|
+
https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_dev_cli_config_values.htm.
|
|
263
|
+
|
|
264
|
+
ALIASES
|
|
265
|
+
$ sf force config list
|
|
129
266
|
|
|
130
267
|
EXAMPLES
|
|
131
|
-
List
|
|
268
|
+
List the global and local configuration variables that apply to your current context:
|
|
132
269
|
|
|
133
270
|
$ sf config list
|
|
134
271
|
```
|
|
135
272
|
|
|
273
|
+
_See code: [src/commands/config/list.ts](https://github.com/salesforcecli/plugin-settings/blob/1.4.38/src/commands/config/list.ts)_
|
|
274
|
+
|
|
136
275
|
## `sf config set`
|
|
137
276
|
|
|
138
277
|
Set one or more configuration variables, such as your default org.
|
|
@@ -142,7 +281,7 @@ USAGE
|
|
|
142
281
|
$ sf config set [--json] [-g]
|
|
143
282
|
|
|
144
283
|
FLAGS
|
|
145
|
-
-g, --global Set the configuration variables globally, so they can be used from any
|
|
284
|
+
-g, --global Set the configuration variables globally, so they can be used from any Salesforce DX project.
|
|
146
285
|
|
|
147
286
|
GLOBAL FLAGS
|
|
148
287
|
--json Format output as json.
|
|
@@ -155,32 +294,41 @@ DESCRIPTION
|
|
|
155
294
|
metadata" flag if you're deploying to your default org.
|
|
156
295
|
|
|
157
296
|
Local configuration variables apply only to your current project. Global variables, specified with the --global flag,
|
|
158
|
-
apply in any
|
|
297
|
+
apply in any Salesforce DX project.
|
|
159
298
|
|
|
160
299
|
The resolution order if you've set a flag value in multiple ways is as follows:
|
|
161
300
|
|
|
162
301
|
1. Flag value specified at the command line.
|
|
163
|
-
|
|
164
302
|
2. Local (project-level) configuration variable.
|
|
165
|
-
|
|
166
303
|
3. Global configuration variable.
|
|
167
304
|
|
|
168
305
|
Run "sf config list" to see the configuration variables you've already set and their level (local or global).
|
|
169
306
|
|
|
307
|
+
If you're setting a single config variable, you don't need to use an equal sign between the variable and value. But
|
|
308
|
+
you must use the equal sign if setting multiple config variables.
|
|
309
|
+
|
|
310
|
+
For the full list of available configuration variables, see
|
|
311
|
+
https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_dev_cli_config_values.htm.
|
|
312
|
+
|
|
313
|
+
ALIASES
|
|
314
|
+
$ sf force config set
|
|
315
|
+
|
|
170
316
|
EXAMPLES
|
|
171
317
|
Set the local target-org configuration variable to an org username:
|
|
172
318
|
|
|
173
|
-
$ sf config set target-org
|
|
319
|
+
$ sf config set target-org me@my.org
|
|
174
320
|
|
|
175
321
|
Set the local target-org configuration variable to an alias:
|
|
176
322
|
|
|
177
|
-
$ sf config set target-org
|
|
323
|
+
$ sf config set target-org my-scratch-org
|
|
178
324
|
|
|
179
|
-
Set the global target-org configuration
|
|
325
|
+
Set the global target-org and target-dev-hub configuration variables using aliases:
|
|
180
326
|
|
|
181
|
-
$ sf config set --global target-org=my-scratch-org
|
|
327
|
+
$ sf config set --global target-org=my-scratch-org target-dev-hub=my-dev-hub
|
|
182
328
|
```
|
|
183
329
|
|
|
330
|
+
_See code: [src/commands/config/set.ts](https://github.com/salesforcecli/plugin-settings/blob/1.4.38/src/commands/config/set.ts)_
|
|
331
|
+
|
|
184
332
|
## `sf config unset`
|
|
185
333
|
|
|
186
334
|
Unset local or global configuration variables.
|
|
@@ -190,7 +338,7 @@ USAGE
|
|
|
190
338
|
$ sf config unset [--json] [-g]
|
|
191
339
|
|
|
192
340
|
FLAGS
|
|
193
|
-
-g, --global Unset the configuration variables globally
|
|
341
|
+
-g, --global Unset the configuration variables globally.
|
|
194
342
|
|
|
195
343
|
GLOBAL FLAGS
|
|
196
344
|
--json Format output as json.
|
|
@@ -199,7 +347,13 @@ DESCRIPTION
|
|
|
199
347
|
Unset local or global configuration variables.
|
|
200
348
|
|
|
201
349
|
Local configuration variables apply only to your current project. Global configuration variables apply in any
|
|
202
|
-
|
|
350
|
+
Salesforce DX project.
|
|
351
|
+
|
|
352
|
+
For the full list of available configuration variables, see
|
|
353
|
+
https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_dev_cli_config_values.htm.
|
|
354
|
+
|
|
355
|
+
ALIASES
|
|
356
|
+
$ sf force config unset
|
|
203
357
|
|
|
204
358
|
EXAMPLES
|
|
205
359
|
Unset the local "target-org" configuration variable:
|
|
@@ -211,4 +365,6 @@ EXAMPLES
|
|
|
211
365
|
$ sf config unset target-org api-version --global
|
|
212
366
|
```
|
|
213
367
|
|
|
368
|
+
_See code: [src/commands/config/unset.ts](https://github.com/salesforcecli/plugin-settings/blob/1.4.38/src/commands/config/unset.ts)_
|
|
369
|
+
|
|
214
370
|
<!-- commandsstop -->
|
package/lib/alias.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/*
|
|
3
2
|
* Copyright (c) 2022, salesforce.com, inc.
|
|
4
3
|
* All rights reserved.
|
|
5
4
|
* Licensed under the BSD 3-Clause license.
|
|
6
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
6
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
11
|
-
class AliasCommand extends sf_plugins_core_1.SfCommand {
|
|
7
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
8
|
+
export class AliasCommand extends SfCommand {
|
|
12
9
|
output(title, results) {
|
|
13
10
|
if (results.length === 0) {
|
|
14
11
|
this.log('No results');
|
|
@@ -30,5 +27,4 @@ class AliasCommand extends sf_plugins_core_1.SfCommand {
|
|
|
30
27
|
this.table(results, columns, { title, 'no-truncate': true });
|
|
31
28
|
}
|
|
32
29
|
}
|
|
33
|
-
exports.AliasCommand = AliasCommand;
|
|
34
30
|
//# sourceMappingURL=alias.js.map
|
package/lib/alias.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alias.js","sourceRoot":"","sources":["../src/alias.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"alias.js","sourceRoot":"","sources":["../src/alias.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAexD,MAAM,OAAgB,YAAgB,SAAQ,SAAY;IAC9C,MAAM,CAAC,KAAa,EAAE,OAAqB;QACnD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;YACxB,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;YACvB,OAAO;SACR;QAED,MAAM,OAAO,GAAwC;YACnD,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE;YAC1B,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE;SAC3B,CAAC;QAEF,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;YACpD,OAAO,CAAC,OAAO,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;SACzC;QAED,oFAAoF;QACpF,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;YAC1C,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;YAErB,OAAO,CAAC,OAAO,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;YAExC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;SACnE;QAED,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;IAC/D,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AliasCommand, AliasResults } from '../../alias';
|
|
1
|
+
import { AliasCommand, AliasResults } from '../../alias.js';
|
|
2
2
|
export default class AliasList extends AliasCommand<AliasResults> {
|
|
3
3
|
static summary: string;
|
|
4
4
|
static description: string;
|
|
@@ -6,7 +6,7 @@ export default class AliasList extends AliasCommand<AliasResults> {
|
|
|
6
6
|
static readonly aliases: string[];
|
|
7
7
|
static readonly deprecateAliases = true;
|
|
8
8
|
static readonly flags: {
|
|
9
|
-
loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
9
|
+
loglevel: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
10
10
|
};
|
|
11
11
|
run(): Promise<AliasResults>;
|
|
12
12
|
}
|
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/*
|
|
3
2
|
* Copyright (c) 2022, salesforce.com, inc.
|
|
4
3
|
* All rights reserved.
|
|
5
4
|
* Licensed under the BSD 3-Clause license.
|
|
6
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
6
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
import { fileURLToPath } from 'node:url';
|
|
8
|
+
import { dirname } from 'node:path';
|
|
9
|
+
import { StateAggregator, Messages } from '@salesforce/core';
|
|
10
|
+
import { loglevel } from '@salesforce/sf-plugins-core';
|
|
11
|
+
import { AliasCommand } from '../../alias.js';
|
|
12
|
+
Messages.importMessagesDirectory(dirname(fileURLToPath(import.meta.url)));
|
|
13
|
+
const messages = Messages.loadMessages('@salesforce/plugin-settings', 'alias.list');
|
|
14
|
+
export default class AliasList extends AliasCommand {
|
|
15
|
+
static summary = messages.getMessage('summary');
|
|
16
|
+
static description = messages.getMessage('description');
|
|
17
|
+
static examples = messages.getMessages('examples');
|
|
18
|
+
static aliases = ['force:alias:list'];
|
|
19
|
+
static deprecateAliases = true;
|
|
20
|
+
static flags = { loglevel };
|
|
15
21
|
async run() {
|
|
16
22
|
await this.parse(AliasList);
|
|
17
|
-
const stateAggregator = await
|
|
23
|
+
const stateAggregator = await StateAggregator.getInstance();
|
|
18
24
|
const aliases = stateAggregator.aliases.getAll();
|
|
19
25
|
const results = Object.entries(aliases).map(([alias, value]) => ({ alias, value }));
|
|
20
26
|
this.output('Alias List', results);
|
|
21
27
|
return results;
|
|
22
28
|
}
|
|
23
29
|
}
|
|
24
|
-
exports.default = AliasList;
|
|
25
|
-
AliasList.summary = messages.getMessage('summary');
|
|
26
|
-
AliasList.description = messages.getMessage('description');
|
|
27
|
-
AliasList.examples = messages.getMessages('examples');
|
|
28
|
-
AliasList.aliases = ['force:alias:list'];
|
|
29
|
-
AliasList.deprecateAliases = true;
|
|
30
|
-
AliasList.flags = { loglevel: sf_plugins_core_1.loglevel };
|
|
31
30
|
//# sourceMappingURL=list.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/alias/list.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/alias/list.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAgB,MAAM,gBAAgB,CAAC;AAE5D,QAAQ,CAAC,uBAAuB,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAC1E,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,6BAA6B,EAAE,YAAY,CAAC,CAAC;AACpF,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAA0B;IACxD,MAAM,CAAC,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IAChD,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACxD,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IACnD,MAAM,CAAU,OAAO,GAAG,CAAC,kBAAkB,CAAC,CAAC;IAC/C,MAAM,CAAU,gBAAgB,GAAG,IAAI,CAAC;IACxC,MAAM,CAAU,KAAK,GAAG,EAAE,QAAQ,EAAE,CAAC;IACrC,KAAK,CAAC,GAAG;QACd,MAAM,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAC5B,MAAM,eAAe,GAAG,MAAM,eAAe,CAAC,WAAW,EAAE,CAAC;QAC5D,MAAM,OAAO,GAAG,eAAe,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;QAEjD,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;QAEpF,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;QAEnC,OAAO,OAAO,CAAC;IACjB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AliasCommand, AliasResults } from '../../alias';
|
|
1
|
+
import { AliasCommand, AliasResults } from '../../alias.js';
|
|
2
2
|
export default class AliasSet extends AliasCommand<AliasResults> {
|
|
3
3
|
static summary: string;
|
|
4
4
|
static description: string;
|
|
@@ -7,7 +7,7 @@ export default class AliasSet extends AliasCommand<AliasResults> {
|
|
|
7
7
|
static readonly aliases: string[];
|
|
8
8
|
static readonly deprecateAliases = true;
|
|
9
9
|
static readonly flags: {
|
|
10
|
-
loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
10
|
+
loglevel: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
11
11
|
};
|
|
12
12
|
run(): Promise<AliasResults>;
|
|
13
13
|
}
|
|
@@ -1,24 +1,31 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/*
|
|
3
2
|
* Copyright (c) 2022, salesforce.com, inc.
|
|
4
3
|
* All rights reserved.
|
|
5
4
|
* Licensed under the BSD 3-Clause license.
|
|
6
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
6
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
import { fileURLToPath } from 'node:url';
|
|
8
|
+
import { dirname } from 'node:path';
|
|
9
|
+
import { loglevel, parseVarArgs } from '@salesforce/sf-plugins-core';
|
|
10
|
+
import { StateAggregator, Messages } from '@salesforce/core';
|
|
11
|
+
import { AliasCommand } from '../../alias.js';
|
|
12
|
+
Messages.importMessagesDirectory(dirname(fileURLToPath(import.meta.url)));
|
|
13
|
+
const messages = Messages.loadMessages('@salesforce/plugin-settings', 'alias.set');
|
|
14
|
+
export default class AliasSet extends AliasCommand {
|
|
15
|
+
static summary = messages.getMessage('summary');
|
|
16
|
+
static description = messages.getMessage('description');
|
|
17
|
+
static examples = messages.getMessages('examples');
|
|
18
|
+
static strict = false; // This allows varargs
|
|
19
|
+
static aliases = ['force:alias:set'];
|
|
20
|
+
static deprecateAliases = true;
|
|
21
|
+
static flags = { loglevel };
|
|
15
22
|
async run() {
|
|
16
23
|
await this.parse(AliasSet);
|
|
17
|
-
const stateAggregator = await
|
|
24
|
+
const stateAggregator = await StateAggregator.getInstance();
|
|
18
25
|
const { args, argv } = await this.parse(AliasSet);
|
|
19
26
|
if (!argv.length)
|
|
20
27
|
throw messages.createError('error.ArgumentsRequired');
|
|
21
|
-
const parsed =
|
|
28
|
+
const parsed = parseVarArgs(args, argv);
|
|
22
29
|
const results = Object.entries(parsed).map(([alias, value]) => {
|
|
23
30
|
try {
|
|
24
31
|
// to support plugin-settings in sfdx, which allowed setting an alias to undefined, when that happens we'll unset the alias
|
|
@@ -32,7 +39,11 @@ class AliasSet extends alias_1.AliasCommand {
|
|
|
32
39
|
return { alias, success: true, value };
|
|
33
40
|
}
|
|
34
41
|
catch (err) {
|
|
35
|
-
const { name, message } = err
|
|
42
|
+
const { name, message } = err instanceof Error
|
|
43
|
+
? err
|
|
44
|
+
: typeof err === 'string'
|
|
45
|
+
? new Error(err)
|
|
46
|
+
: { name: 'UnknownError', message: 'Unknown Error' };
|
|
36
47
|
return { alias, success: false, error: { name, message }, value };
|
|
37
48
|
}
|
|
38
49
|
});
|
|
@@ -41,12 +52,4 @@ class AliasSet extends alias_1.AliasCommand {
|
|
|
41
52
|
return results;
|
|
42
53
|
}
|
|
43
54
|
}
|
|
44
|
-
exports.default = AliasSet;
|
|
45
|
-
AliasSet.summary = messages.getMessage('summary');
|
|
46
|
-
AliasSet.description = messages.getMessage('description');
|
|
47
|
-
AliasSet.examples = messages.getMessages('examples');
|
|
48
|
-
AliasSet.strict = false; // This allows varargs
|
|
49
|
-
AliasSet.aliases = ['force:alias:set'];
|
|
50
|
-
AliasSet.deprecateAliases = true;
|
|
51
|
-
AliasSet.flags = { loglevel: sf_plugins_core_1.loglevel };
|
|
52
55
|
//# sourceMappingURL=set.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set.js","sourceRoot":"","sources":["../../../src/commands/alias/set.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"set.js","sourceRoot":"","sources":["../../../src/commands/alias/set.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AliasCommand, AliasResults } from '../../alias';
|
|
1
|
+
import { AliasCommand, AliasResults } from '../../alias.js';
|
|
2
2
|
export default class AliasUnset extends AliasCommand<AliasResults> {
|
|
3
3
|
static summary: string;
|
|
4
4
|
static description: string;
|
|
@@ -7,9 +7,9 @@ export default class AliasUnset extends AliasCommand<AliasResults> {
|
|
|
7
7
|
static readonly aliases: string[];
|
|
8
8
|
static readonly deprecateAliases = true;
|
|
9
9
|
static flags: {
|
|
10
|
-
loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
11
|
-
all: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
12
|
-
'no-prompt': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
loglevel: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
11
|
+
all: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
12
|
+
'no-prompt': import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
13
13
|
};
|
|
14
14
|
run(): Promise<AliasResults>;
|
|
15
15
|
}
|
|
@@ -1,20 +1,37 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/*
|
|
3
2
|
* Copyright (c) 2022, salesforce.com, inc.
|
|
4
3
|
* All rights reserved.
|
|
5
4
|
* Licensed under the BSD 3-Clause license.
|
|
6
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
6
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
import { fileURLToPath } from 'node:url';
|
|
8
|
+
import { dirname } from 'node:path';
|
|
9
|
+
import { Flags, loglevel } from '@salesforce/sf-plugins-core';
|
|
10
|
+
import { StateAggregator, Messages } from '@salesforce/core';
|
|
11
|
+
import { AliasCommand } from '../../alias.js';
|
|
12
|
+
Messages.importMessagesDirectory(dirname(fileURLToPath(import.meta.url)));
|
|
13
|
+
const messages = Messages.loadMessages('@salesforce/plugin-settings', 'alias.unset');
|
|
14
|
+
export default class AliasUnset extends AliasCommand {
|
|
15
|
+
static summary = messages.getMessage('summary');
|
|
16
|
+
static description = messages.getMessage('description');
|
|
17
|
+
static examples = messages.getMessages('examples');
|
|
18
|
+
static strict = false; // This allows varargs
|
|
19
|
+
static aliases = ['force:alias:unset'];
|
|
20
|
+
static deprecateAliases = true;
|
|
21
|
+
static flags = {
|
|
22
|
+
loglevel,
|
|
23
|
+
all: Flags.boolean({
|
|
24
|
+
summary: messages.getMessage('flags.all.summary'),
|
|
25
|
+
char: 'a',
|
|
26
|
+
}),
|
|
27
|
+
'no-prompt': Flags.boolean({
|
|
28
|
+
summary: messages.getMessage('flags.no-prompt.summary'),
|
|
29
|
+
char: 'p',
|
|
30
|
+
}),
|
|
31
|
+
};
|
|
15
32
|
async run() {
|
|
16
33
|
const { flags, argv } = await this.parse(AliasUnset);
|
|
17
|
-
const stateAggregator = await
|
|
34
|
+
const stateAggregator = await StateAggregator.getInstance();
|
|
18
35
|
const aliases = stateAggregator.aliases.getAll();
|
|
19
36
|
const toRemove = flags.all ? Object.keys(aliases) : argv;
|
|
20
37
|
if (toRemove.length === 0) {
|
|
@@ -37,7 +54,11 @@ class AliasUnset extends alias_1.AliasCommand {
|
|
|
37
54
|
return { alias, value, success: true };
|
|
38
55
|
}
|
|
39
56
|
catch (err) {
|
|
40
|
-
const { name, message } = err
|
|
57
|
+
const { name, message } = err instanceof Error
|
|
58
|
+
? err
|
|
59
|
+
: typeof err === 'string'
|
|
60
|
+
? new Error(err)
|
|
61
|
+
: { name: 'UnknownError', message: 'Unknown Error' };
|
|
41
62
|
return { alias, value, success: false, error: { name, message } };
|
|
42
63
|
}
|
|
43
64
|
});
|
|
@@ -46,22 +67,4 @@ class AliasUnset extends alias_1.AliasCommand {
|
|
|
46
67
|
return results;
|
|
47
68
|
}
|
|
48
69
|
}
|
|
49
|
-
exports.default = AliasUnset;
|
|
50
|
-
AliasUnset.summary = messages.getMessage('summary');
|
|
51
|
-
AliasUnset.description = messages.getMessage('description');
|
|
52
|
-
AliasUnset.examples = messages.getMessages('examples');
|
|
53
|
-
AliasUnset.strict = false; // This allows varargs
|
|
54
|
-
AliasUnset.aliases = ['force:alias:unset'];
|
|
55
|
-
AliasUnset.deprecateAliases = true;
|
|
56
|
-
AliasUnset.flags = {
|
|
57
|
-
loglevel: sf_plugins_core_1.loglevel,
|
|
58
|
-
all: sf_plugins_core_1.Flags.boolean({
|
|
59
|
-
summary: messages.getMessage('flags.all.summary'),
|
|
60
|
-
char: 'a',
|
|
61
|
-
}),
|
|
62
|
-
'no-prompt': sf_plugins_core_1.Flags.boolean({
|
|
63
|
-
summary: messages.getMessage('flags.no-prompt.summary'),
|
|
64
|
-
char: 'p',
|
|
65
|
-
}),
|
|
66
|
-
};
|
|
67
70
|
//# sourceMappingURL=unset.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unset.js","sourceRoot":"","sources":["../../../src/commands/alias/unset.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"unset.js","sourceRoot":"","sources":["../../../src/commands/alias/unset.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
+
import { ConfigResponses } from '../../config.js';
|
|
3
|
+
export declare class Get extends SfCommand<ConfigResponses> {
|
|
3
4
|
static readonly description: string;
|
|
4
5
|
static readonly summary: string;
|
|
5
6
|
static readonly examples: string[];
|
|
@@ -7,8 +8,8 @@ export declare class Get extends ConfigCommand<ConfigResponses> {
|
|
|
7
8
|
static readonly deprecateAliases = true;
|
|
8
9
|
static readonly strict = false;
|
|
9
10
|
static readonly flags: {
|
|
10
|
-
loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
11
|
-
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
loglevel: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
12
|
+
verbose: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
12
13
|
};
|
|
13
14
|
static configurationVariablesSection: import("@oclif/core").HelpSection;
|
|
14
15
|
run(): Promise<ConfigResponses>;
|