@rushstack/package-extractor 0.10.24 → 0.10.26
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/CHANGELOG.json +39 -0
- package/CHANGELOG.md +11 -1
- package/dist/scripts/create-links.js +44 -78
- package/dist/scripts/create-links.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/lib/scripts/createLinks/cli/CreateLinksCommandLineParser.d.ts +1 -1
- package/lib/scripts/createLinks/cli/CreateLinksCommandLineParser.d.ts.map +1 -1
- package/lib/scripts/createLinks/cli/CreateLinksCommandLineParser.js +2 -3
- package/lib/scripts/createLinks/cli/CreateLinksCommandLineParser.js.map +1 -1
- package/lib/scripts/createLinks/cli/actions/CreateLinksAction.d.ts +1 -1
- package/lib/scripts/createLinks/cli/actions/CreateLinksAction.d.ts.map +1 -1
- package/lib/scripts/createLinks/cli/actions/CreateLinksAction.js +1 -1
- package/lib/scripts/createLinks/cli/actions/CreateLinksAction.js.map +1 -1
- package/lib/scripts/createLinks/cli/actions/RemoveLinksAction.d.ts +1 -1
- package/lib/scripts/createLinks/cli/actions/RemoveLinksAction.d.ts.map +1 -1
- package/lib/scripts/createLinks/cli/actions/RemoveLinksAction.js +1 -1
- package/lib/scripts/createLinks/cli/actions/RemoveLinksAction.js.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/package-extractor",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.10.26",
|
|
6
|
+
"tag": "@rushstack/package-extractor_v0.10.26",
|
|
7
|
+
"date": "Fri, 25 Apr 2025 00:11:32 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"dependency": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Updating dependency \"@rushstack/heft-webpack5-plugin\" to `0.11.30`"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"comment": "Updating dependency \"@rushstack/heft\" to `0.73.3`"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"comment": "Updating dependency \"@rushstack/webpack-preserve-dynamic-require-plugin\" to `0.11.99`"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"version": "0.10.25",
|
|
24
|
+
"tag": "@rushstack/package-extractor_v0.10.25",
|
|
25
|
+
"date": "Mon, 21 Apr 2025 22:24:25 GMT",
|
|
26
|
+
"comments": {
|
|
27
|
+
"dependency": [
|
|
28
|
+
{
|
|
29
|
+
"comment": "Updating dependency \"@rushstack/ts-command-line\" to `5.0.0`"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"comment": "Updating dependency \"@rushstack/heft-webpack5-plugin\" to `0.11.29`"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"comment": "Updating dependency \"@rushstack/heft\" to `0.73.2`"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"comment": "Updating dependency \"@rushstack/webpack-preserve-dynamic-require-plugin\" to `0.11.98`"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
},
|
|
4
43
|
{
|
|
5
44
|
"version": "0.10.24",
|
|
6
45
|
"tag": "@rushstack/package-extractor_v0.10.24",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# Change Log - @rushstack/package-extractor
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 25 Apr 2025 00:11:32 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.10.26
|
|
6
|
+
Fri, 25 Apr 2025 00:11:32 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 0.10.25
|
|
11
|
+
Mon, 21 Apr 2025 22:24:25 GMT
|
|
12
|
+
|
|
13
|
+
_Version update only_
|
|
4
14
|
|
|
5
15
|
## 0.10.24
|
|
6
16
|
Thu, 17 Apr 2025 00:11:21 GMT
|
|
@@ -16947,7 +16947,7 @@ const CommandLineAction_1 = __webpack_require__(/*! ./CommandLineAction */ 98994
|
|
|
16947
16947
|
* @public
|
|
16948
16948
|
*/
|
|
16949
16949
|
class DynamicCommandLineAction extends CommandLineAction_1.CommandLineAction {
|
|
16950
|
-
async
|
|
16950
|
+
async onExecuteAsync() {
|
|
16951
16951
|
// abstract
|
|
16952
16952
|
// (handled by the external code)
|
|
16953
16953
|
}
|
|
@@ -22103,11 +22103,11 @@ class CommandLineFlagParameter extends BaseClasses_1.CommandLineParameterBase {
|
|
|
22103
22103
|
constructor(definition) {
|
|
22104
22104
|
super(definition);
|
|
22105
22105
|
this._value = false;
|
|
22106
|
-
/** {@inheritDoc
|
|
22106
|
+
/** {@inheritDoc CommandLineParameterBase.kind} */
|
|
22107
22107
|
this.kind = BaseClasses_1.CommandLineParameterKind.Flag;
|
|
22108
22108
|
}
|
|
22109
22109
|
/**
|
|
22110
|
-
* {@inheritDoc
|
|
22110
|
+
* {@inheritDoc CommandLineParameterBase._setValue}
|
|
22111
22111
|
* @internal
|
|
22112
22112
|
*/
|
|
22113
22113
|
_setValue(data) {
|
|
@@ -22148,7 +22148,7 @@ class CommandLineFlagParameter extends BaseClasses_1.CommandLineParameterBase {
|
|
|
22148
22148
|
get value() {
|
|
22149
22149
|
return this._value;
|
|
22150
22150
|
}
|
|
22151
|
-
/** {@inheritDoc
|
|
22151
|
+
/** {@inheritDoc CommandLineParameterBase.appendToArgList} @override */
|
|
22152
22152
|
appendToArgList(argList) {
|
|
22153
22153
|
if (this.value) {
|
|
22154
22154
|
argList.push(this.longName);
|
|
@@ -25586,21 +25586,18 @@ class ProtectableMapView extends Map {
|
|
|
25586
25586
|
this._parameters = parameters;
|
|
25587
25587
|
}
|
|
25588
25588
|
clear() {
|
|
25589
|
-
// override
|
|
25590
25589
|
if (this._parameters.onClear) {
|
|
25591
25590
|
this._parameters.onClear(this._owner);
|
|
25592
25591
|
}
|
|
25593
25592
|
super.clear();
|
|
25594
25593
|
}
|
|
25595
25594
|
delete(key) {
|
|
25596
|
-
// override
|
|
25597
25595
|
if (this._parameters.onDelete) {
|
|
25598
25596
|
this._parameters.onDelete(this._owner, key);
|
|
25599
25597
|
}
|
|
25600
25598
|
return super.delete(key);
|
|
25601
25599
|
}
|
|
25602
25600
|
set(key, value) {
|
|
25603
|
-
// override
|
|
25604
25601
|
let modifiedValue = value;
|
|
25605
25602
|
if (this._parameters.onSet) {
|
|
25606
25603
|
modifiedValue = this._parameters.onSet(this._owner, key, modifiedValue);
|
|
@@ -26486,11 +26483,9 @@ class CommandLineParserExitError extends Error {
|
|
|
26486
26483
|
exports.CommandLineParserExitError = CommandLineParserExitError;
|
|
26487
26484
|
class CustomArgumentParser extends argparse.ArgumentParser {
|
|
26488
26485
|
exit(status, message) {
|
|
26489
|
-
// override
|
|
26490
26486
|
throw new CommandLineParserExitError(status, message);
|
|
26491
26487
|
}
|
|
26492
26488
|
error(err) {
|
|
26493
|
-
// override
|
|
26494
26489
|
// Ensure the ParserExitError bubbles up to the top without any special processing
|
|
26495
26490
|
if (err instanceof CommandLineParserExitError) {
|
|
26496
26491
|
throw err;
|
|
@@ -30594,7 +30589,7 @@ const TypeUuidLite_1 = __webpack_require__(/*! ../TypeUuidLite */ 552549);
|
|
|
30594
30589
|
*/
|
|
30595
30590
|
class CommandLineParser extends CommandLineParameterProvider_1.CommandLineParameterProvider {
|
|
30596
30591
|
constructor(options) {
|
|
30597
|
-
var _a
|
|
30592
|
+
var _a;
|
|
30598
30593
|
super();
|
|
30599
30594
|
this._executed = false;
|
|
30600
30595
|
this._tabCompleteActionWasAdded = false;
|
|
@@ -30607,7 +30602,6 @@ class CommandLineParser extends CommandLineParameterProvider_1.CommandLineParame
|
|
|
30607
30602
|
description: this._options.toolDescription,
|
|
30608
30603
|
epilog: terminal_1.Colorize.bold((_a = this._options.toolEpilog) !== null && _a !== void 0 ? _a : `For detailed help about a specific command, use: ${this._options.toolFilename} <command> -h`)
|
|
30609
30604
|
});
|
|
30610
|
-
(_b = this.onDefineParameters) === null || _b === void 0 ? void 0 : _b.call(this);
|
|
30611
30605
|
}
|
|
30612
30606
|
/**
|
|
30613
30607
|
* Returns the list of actions that were defined for this CommandLineParser object.
|
|
@@ -30708,13 +30702,6 @@ class CommandLineParser extends CommandLineParameterProvider_1.CommandLineParame
|
|
|
30708
30702
|
return false;
|
|
30709
30703
|
}
|
|
30710
30704
|
}
|
|
30711
|
-
/**
|
|
30712
|
-
* @deprecated Use {@link CommandLineParser.executeAsync} instead.
|
|
30713
|
-
*/
|
|
30714
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
30715
|
-
async execute(args) {
|
|
30716
|
-
return await this.executeAsync(args);
|
|
30717
|
-
}
|
|
30718
30705
|
/**
|
|
30719
30706
|
* This is similar to {@link CommandLineParser.executeAsync}, except that execution errors
|
|
30720
30707
|
* simply cause the promise to reject. It is the caller's responsibility to trap
|
|
@@ -30790,7 +30777,7 @@ class CommandLineParser extends CommandLineParameterProvider_1.CommandLineParame
|
|
|
30790
30777
|
throw new Error(`An action must be specified (${actions.join(', ')})`);
|
|
30791
30778
|
}
|
|
30792
30779
|
(_b = this.selectedAction) === null || _b === void 0 ? void 0 : _b._processParsedData(this._options, data);
|
|
30793
|
-
await this.
|
|
30780
|
+
await this.onExecuteAsync();
|
|
30794
30781
|
}
|
|
30795
30782
|
catch (err) {
|
|
30796
30783
|
if (err instanceof CommandLineParserExitError_1.CommandLineParserExitError) {
|
|
@@ -30806,13 +30793,6 @@ class CommandLineParser extends CommandLineParameterProvider_1.CommandLineParame
|
|
|
30806
30793
|
throw err;
|
|
30807
30794
|
}
|
|
30808
30795
|
}
|
|
30809
|
-
/**
|
|
30810
|
-
* @deprecated Use {@link CommandLineParser.executeWithoutErrorHandlingAsync} instead.
|
|
30811
|
-
*/
|
|
30812
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
30813
|
-
async executeWithoutErrorHandling(args) {
|
|
30814
|
-
await this.executeWithoutErrorHandlingAsync(args);
|
|
30815
|
-
}
|
|
30816
30796
|
/** @internal */
|
|
30817
30797
|
_registerDefinedParameters(state) {
|
|
30818
30798
|
super._registerDefinedParameters(state);
|
|
@@ -30840,14 +30820,13 @@ class CommandLineParser extends CommandLineParameterProvider_1.CommandLineParame
|
|
|
30840
30820
|
* @internal
|
|
30841
30821
|
*/
|
|
30842
30822
|
_getArgumentParser() {
|
|
30843
|
-
// override
|
|
30844
30823
|
return this._argumentParser;
|
|
30845
30824
|
}
|
|
30846
30825
|
/**
|
|
30847
30826
|
* This hook allows the subclass to perform additional operations before or after
|
|
30848
30827
|
* the chosen action is executed.
|
|
30849
30828
|
*/
|
|
30850
|
-
async
|
|
30829
|
+
async onExecuteAsync() {
|
|
30851
30830
|
if (this.selectedAction) {
|
|
30852
30831
|
await this.selectedAction._executeAsync();
|
|
30853
30832
|
}
|
|
@@ -31600,7 +31579,7 @@ class CreateLinksAction extends _rushstack_ts_command_line__WEBPACK_IMPORTED_MOD
|
|
|
31600
31579
|
description: 'Create the .bin files for extracted packages'
|
|
31601
31580
|
});
|
|
31602
31581
|
}
|
|
31603
|
-
async
|
|
31582
|
+
async onExecuteAsync() {
|
|
31604
31583
|
const extractorMetadataObject = await (0,_utilities_CreateLinksUtilities__WEBPACK_IMPORTED_MODULE_4__.getExtractorMetadataAsync)();
|
|
31605
31584
|
const realizeFiles = this._realizeFilesParameter.value;
|
|
31606
31585
|
const linkBins = this._linkBinsParameter.value;
|
|
@@ -33576,7 +33555,7 @@ class TabCompleteAction extends CommandLineAction_1.CommandLineAction {
|
|
|
33576
33555
|
defaultValue: DEFAULT_POSITION
|
|
33577
33556
|
});
|
|
33578
33557
|
}
|
|
33579
|
-
async
|
|
33558
|
+
async onExecuteAsync() {
|
|
33580
33559
|
const commandLine = this._wordToCompleteParameter.value;
|
|
33581
33560
|
const caretPosition = this._positionParameter.value || commandLine.length;
|
|
33582
33561
|
for await (const value of this.getCompletionsAsync(commandLine, caretPosition)) {
|
|
@@ -33668,7 +33647,7 @@ class TabCompleteAction extends CommandLineAction_1.CommandLineAction {
|
|
|
33668
33647
|
parameter instanceof CommandLineChoiceParameter_1.CommandLineChoiceParameter) {
|
|
33669
33648
|
parameterWithArgumentOrChoices = parameter;
|
|
33670
33649
|
}
|
|
33671
|
-
const completionValues = await ((_a = parameterWithArgumentOrChoices === null || parameterWithArgumentOrChoices === void 0 ? void 0 : parameterWithArgumentOrChoices.
|
|
33650
|
+
const completionValues = await ((_a = parameterWithArgumentOrChoices === null || parameterWithArgumentOrChoices === void 0 ? void 0 : parameterWithArgumentOrChoices.getCompletionsAsync) === null || _a === void 0 ? void 0 : _a.call(parameterWithArgumentOrChoices));
|
|
33672
33651
|
choiceParameterValues = completionValues instanceof Set ? completionValues : new Set(completionValues);
|
|
33673
33652
|
}
|
|
33674
33653
|
return choiceParameterValues !== null && choiceParameterValues !== void 0 ? choiceParameterValues : new Set();
|
|
@@ -35266,11 +35245,11 @@ class CommandLineStringListParameter extends BaseClasses_1.CommandLineParameterW
|
|
|
35266
35245
|
constructor(definition) {
|
|
35267
35246
|
super(definition);
|
|
35268
35247
|
this._values = [];
|
|
35269
|
-
/** {@inheritDoc
|
|
35248
|
+
/** {@inheritDoc CommandLineParameterBase.kind} */
|
|
35270
35249
|
this.kind = BaseClasses_1.CommandLineParameterKind.StringList;
|
|
35271
35250
|
}
|
|
35272
35251
|
/**
|
|
35273
|
-
* {@inheritDoc
|
|
35252
|
+
* {@inheritDoc CommandLineParameterBase._setValue}
|
|
35274
35253
|
* @internal
|
|
35275
35254
|
*/
|
|
35276
35255
|
_setValue(data) {
|
|
@@ -35308,7 +35287,7 @@ class CommandLineStringListParameter extends BaseClasses_1.CommandLineParameterW
|
|
|
35308
35287
|
get values() {
|
|
35309
35288
|
return this._values;
|
|
35310
35289
|
}
|
|
35311
|
-
/** {@inheritDoc
|
|
35290
|
+
/** {@inheritDoc CommandLineParameterBase.appendToArgList} @override */
|
|
35312
35291
|
appendToArgList(argList) {
|
|
35313
35292
|
if (this.values.length > 0) {
|
|
35314
35293
|
for (const value of this.values) {
|
|
@@ -39097,7 +39076,7 @@ class CommandLineChoiceListParameter extends BaseClasses_1.CommandLineParameterB
|
|
|
39097
39076
|
constructor(definition) {
|
|
39098
39077
|
super(definition);
|
|
39099
39078
|
this._values = [];
|
|
39100
|
-
/** {@inheritDoc
|
|
39079
|
+
/** {@inheritDoc CommandLineParameterBase.kind} */
|
|
39101
39080
|
this.kind = BaseClasses_1.CommandLineParameterKind.ChoiceList;
|
|
39102
39081
|
const { alternatives, completions } = definition;
|
|
39103
39082
|
const alternativesSet = alternatives instanceof Set ? alternatives : new Set(alternatives);
|
|
@@ -39108,7 +39087,7 @@ class CommandLineChoiceListParameter extends BaseClasses_1.CommandLineParameterB
|
|
|
39108
39087
|
this.completions = completions;
|
|
39109
39088
|
}
|
|
39110
39089
|
/**
|
|
39111
|
-
* {@inheritDoc
|
|
39090
|
+
* {@inheritDoc CommandLineParameterBase._setValue}
|
|
39112
39091
|
* @internal
|
|
39113
39092
|
*/
|
|
39114
39093
|
_setValue(data) {
|
|
@@ -39152,7 +39131,7 @@ class CommandLineChoiceListParameter extends BaseClasses_1.CommandLineParameterB
|
|
|
39152
39131
|
get values() {
|
|
39153
39132
|
return this._values;
|
|
39154
39133
|
}
|
|
39155
|
-
/** {@inheritDoc
|
|
39134
|
+
/** {@inheritDoc CommandLineParameterBase.appendToArgList} @override */
|
|
39156
39135
|
appendToArgList(argList) {
|
|
39157
39136
|
if (this.values.length > 0) {
|
|
39158
39137
|
for (const value of this.values) {
|
|
@@ -40422,7 +40401,7 @@ class CommandLineRemainder {
|
|
|
40422
40401
|
return this._values;
|
|
40423
40402
|
}
|
|
40424
40403
|
/**
|
|
40425
|
-
* {@inheritDoc
|
|
40404
|
+
* {@inheritDoc CommandLineParameterBase._setValue}
|
|
40426
40405
|
* @internal
|
|
40427
40406
|
*/
|
|
40428
40407
|
_setValue(data) {
|
|
@@ -40432,7 +40411,7 @@ class CommandLineRemainder {
|
|
|
40432
40411
|
}
|
|
40433
40412
|
this._values.push(...data);
|
|
40434
40413
|
}
|
|
40435
|
-
/** {@inheritDoc
|
|
40414
|
+
/** {@inheritDoc CommandLineParameterBase.appendToArgList} @override */
|
|
40436
40415
|
appendToArgList(argList) {
|
|
40437
40416
|
if (this.values.length > 0) {
|
|
40438
40417
|
for (const value of this.values) {
|
|
@@ -42561,7 +42540,7 @@ var length =
|
|
|
42561
42540
|
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
42562
42541
|
// See LICENSE in the project root for license information.
|
|
42563
42542
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
42564
|
-
exports.CommandLineHelper = exports.CommandLineConstants = exports.DynamicCommandLineParser = exports.CommandLineParser = exports.CommandLineParameterProvider = exports.CommandLineRemainder = exports.CommandLineChoiceListParameter = exports.CommandLineChoiceParameter = exports.CommandLineIntegerListParameter = exports.CommandLineIntegerParameter = exports.CommandLineStringListParameter = exports.CommandLineStringParameter = exports.CommandLineFlagParameter = exports.CommandLineParameterWithArgument = exports.
|
|
42543
|
+
exports.CommandLineHelper = exports.CommandLineConstants = exports.DynamicCommandLineParser = exports.CommandLineParser = exports.CommandLineParameterProvider = exports.CommandLineRemainder = exports.CommandLineChoiceListParameter = exports.CommandLineChoiceParameter = exports.CommandLineIntegerListParameter = exports.CommandLineIntegerParameter = exports.CommandLineStringListParameter = exports.CommandLineStringParameter = exports.CommandLineFlagParameter = exports.CommandLineParameterWithArgument = exports.CommandLineParameterBase = exports.CommandLineParameterKind = exports.AliasCommandLineAction = exports.ScopedCommandLineAction = exports.DynamicCommandLineAction = exports.CommandLineAction = void 0;
|
|
42565
42544
|
/**
|
|
42566
42545
|
* An object-oriented command-line parser for TypeScript projects.
|
|
42567
42546
|
*
|
|
@@ -42577,8 +42556,7 @@ var AliasCommandLineAction_1 = __webpack_require__(/*! ./providers/AliasCommandL
|
|
|
42577
42556
|
Object.defineProperty(exports, "AliasCommandLineAction", ({ enumerable: true, get: function () { return AliasCommandLineAction_1.AliasCommandLineAction; } }));
|
|
42578
42557
|
var BaseClasses_1 = __webpack_require__(/*! ./parameters/BaseClasses */ 982410);
|
|
42579
42558
|
Object.defineProperty(exports, "CommandLineParameterKind", ({ enumerable: true, get: function () { return BaseClasses_1.CommandLineParameterKind; } }));
|
|
42580
|
-
|
|
42581
|
-
Object.defineProperty(exports, "CommandLineParameter", ({ enumerable: true, get: function () { return BaseClasses_1.CommandLineParameterBase; } }));
|
|
42559
|
+
Object.defineProperty(exports, "CommandLineParameterBase", ({ enumerable: true, get: function () { return BaseClasses_1.CommandLineParameterBase; } }));
|
|
42582
42560
|
Object.defineProperty(exports, "CommandLineParameterWithArgument", ({ enumerable: true, get: function () { return BaseClasses_1.CommandLineParameterWithArgument; } }));
|
|
42583
42561
|
var CommandLineFlagParameter_1 = __webpack_require__(/*! ./parameters/CommandLineFlagParameter */ 291449);
|
|
42584
42562
|
Object.defineProperty(exports, "CommandLineFlagParameter", ({ enumerable: true, get: function () { return CommandLineFlagParameter_1.CommandLineFlagParameter; } }));
|
|
@@ -47386,7 +47364,7 @@ class CommandLineChoiceParameter extends BaseClasses_1.CommandLineParameterBase
|
|
|
47386
47364
|
constructor(definition) {
|
|
47387
47365
|
super(definition);
|
|
47388
47366
|
this._value = undefined;
|
|
47389
|
-
/** {@inheritDoc
|
|
47367
|
+
/** {@inheritDoc CommandLineParameterBase.kind} */
|
|
47390
47368
|
this.kind = -BaseClasses_1.CommandLineParameterKind.Choice;
|
|
47391
47369
|
const { alternatives, defaultValue, completions } = definition;
|
|
47392
47370
|
const alternativesSet = alternatives instanceof Set ? alternatives : new Set(alternatives);
|
|
@@ -47403,7 +47381,7 @@ class CommandLineChoiceParameter extends BaseClasses_1.CommandLineParameterBase
|
|
|
47403
47381
|
this.completions = completions;
|
|
47404
47382
|
}
|
|
47405
47383
|
/**
|
|
47406
|
-
* {@inheritDoc
|
|
47384
|
+
* {@inheritDoc CommandLineParameterBase._setValue}
|
|
47407
47385
|
* @internal
|
|
47408
47386
|
*/
|
|
47409
47387
|
_setValue(data) {
|
|
@@ -47435,7 +47413,7 @@ class CommandLineChoiceParameter extends BaseClasses_1.CommandLineParameterBase
|
|
|
47435
47413
|
this._value = undefined;
|
|
47436
47414
|
}
|
|
47437
47415
|
/**
|
|
47438
|
-
* {@inheritDoc
|
|
47416
|
+
* {@inheritDoc CommandLineParameterBase._getSupplementaryNotes}
|
|
47439
47417
|
* @internal
|
|
47440
47418
|
*/
|
|
47441
47419
|
_getSupplementaryNotes(supplementaryNotes) {
|
|
@@ -47455,7 +47433,7 @@ class CommandLineChoiceParameter extends BaseClasses_1.CommandLineParameterBase
|
|
|
47455
47433
|
get value() {
|
|
47456
47434
|
return this._value;
|
|
47457
47435
|
}
|
|
47458
|
-
/** {@inheritDoc
|
|
47436
|
+
/** {@inheritDoc CommandLineParameterBase.appendToArgList} @override */
|
|
47459
47437
|
appendToArgList(argList) {
|
|
47460
47438
|
if (this.value !== undefined) {
|
|
47461
47439
|
argList.push(this.longName);
|
|
@@ -51307,13 +51285,13 @@ class CommandLineStringParameter extends BaseClasses_1.CommandLineParameterWithA
|
|
|
51307
51285
|
constructor(definition) {
|
|
51308
51286
|
super(definition);
|
|
51309
51287
|
this._value = undefined;
|
|
51310
|
-
/** {@inheritDoc
|
|
51288
|
+
/** {@inheritDoc CommandLineParameterBase.kind} */
|
|
51311
51289
|
this.kind = BaseClasses_1.CommandLineParameterKind.String;
|
|
51312
51290
|
this.defaultValue = definition.defaultValue;
|
|
51313
51291
|
this.validateDefaultValue(!!this.defaultValue);
|
|
51314
51292
|
}
|
|
51315
51293
|
/**
|
|
51316
|
-
* {@inheritDoc
|
|
51294
|
+
* {@inheritDoc CommandLineParameterBase._setValue}
|
|
51317
51295
|
* @internal
|
|
51318
51296
|
*/
|
|
51319
51297
|
_setValue(data) {
|
|
@@ -51342,7 +51320,7 @@ class CommandLineStringParameter extends BaseClasses_1.CommandLineParameterWithA
|
|
|
51342
51320
|
this._value = undefined;
|
|
51343
51321
|
}
|
|
51344
51322
|
/**
|
|
51345
|
-
* {@inheritDoc
|
|
51323
|
+
* {@inheritDoc CommandLineParameterBase._getSupplementaryNotes}
|
|
51346
51324
|
* @internal
|
|
51347
51325
|
*/
|
|
51348
51326
|
_getSupplementaryNotes(supplementaryNotes) {
|
|
@@ -51364,7 +51342,7 @@ class CommandLineStringParameter extends BaseClasses_1.CommandLineParameterWithA
|
|
|
51364
51342
|
get value() {
|
|
51365
51343
|
return this._value;
|
|
51366
51344
|
}
|
|
51367
|
-
/** {@inheritDoc
|
|
51345
|
+
/** {@inheritDoc CommandLineParameterBase.appendToArgList} @override */
|
|
51368
51346
|
appendToArgList(argList) {
|
|
51369
51347
|
if (this.value !== undefined) {
|
|
51370
51348
|
argList.push(this.longName);
|
|
@@ -56073,11 +56051,10 @@ class CreateLinksCommandLineParser extends _rushstack_ts_command_line__WEBPACK_I
|
|
|
56073
56051
|
this.addAction(new _actions_CreateLinksAction__WEBPACK_IMPORTED_MODULE_2__.CreateLinksAction(this._terminal));
|
|
56074
56052
|
this.addAction(new _actions_RemoveLinksAction__WEBPACK_IMPORTED_MODULE_3__.RemoveLinksAction(this._terminal));
|
|
56075
56053
|
}
|
|
56076
|
-
async
|
|
56077
|
-
// override
|
|
56054
|
+
async onExecuteAsync() {
|
|
56078
56055
|
process.exitCode = 1;
|
|
56079
56056
|
try {
|
|
56080
|
-
await super.
|
|
56057
|
+
await super.onExecuteAsync();
|
|
56081
56058
|
process.exitCode = 0;
|
|
56082
56059
|
}
|
|
56083
56060
|
catch (error) {
|
|
@@ -62617,7 +62594,7 @@ class RemoveLinksAction extends _rushstack_ts_command_line__WEBPACK_IMPORTED_MOD
|
|
|
62617
62594
|
});
|
|
62618
62595
|
this._terminal = terminal;
|
|
62619
62596
|
}
|
|
62620
|
-
async
|
|
62597
|
+
async onExecuteAsync() {
|
|
62621
62598
|
const extractorMetadataObject = await (0,_utilities_CreateLinksUtilities__WEBPACK_IMPORTED_MODULE_3__.getExtractorMetadataAsync)();
|
|
62622
62599
|
this._terminal.writeLine(`Removing links for extraction at path "${_utilities_constants__WEBPACK_IMPORTED_MODULE_4__.TARGET_ROOT_FOLDER}"`);
|
|
62623
62600
|
await removeLinksAsync(this._terminal, _utilities_constants__WEBPACK_IMPORTED_MODULE_4__.TARGET_ROOT_FOLDER, extractorMetadataObject);
|
|
@@ -68565,13 +68542,13 @@ class CommandLineIntegerParameter extends BaseClasses_1.CommandLineParameterWith
|
|
|
68565
68542
|
constructor(definition) {
|
|
68566
68543
|
super(definition);
|
|
68567
68544
|
this._value = undefined;
|
|
68568
|
-
/** {@inheritDoc
|
|
68545
|
+
/** {@inheritDoc CommandLineParameterBase.kind} */
|
|
68569
68546
|
this.kind = BaseClasses_1.CommandLineParameterKind.Integer;
|
|
68570
68547
|
this.defaultValue = definition.defaultValue;
|
|
68571
68548
|
this.validateDefaultValue(!!this.defaultValue);
|
|
68572
68549
|
}
|
|
68573
68550
|
/**
|
|
68574
|
-
* {@inheritDoc
|
|
68551
|
+
* {@inheritDoc CommandLineParameterBase._setValue}
|
|
68575
68552
|
* @internal
|
|
68576
68553
|
*/
|
|
68577
68554
|
_setValue(data) {
|
|
@@ -68603,7 +68580,7 @@ class CommandLineIntegerParameter extends BaseClasses_1.CommandLineParameterWith
|
|
|
68603
68580
|
this._value = undefined;
|
|
68604
68581
|
}
|
|
68605
68582
|
/**
|
|
68606
|
-
* {@inheritDoc
|
|
68583
|
+
* {@inheritDoc CommandLineParameterBase._getSupplementaryNotes}
|
|
68607
68584
|
* @internal
|
|
68608
68585
|
*/
|
|
68609
68586
|
_getSupplementaryNotes(supplementaryNotes) {
|
|
@@ -68623,7 +68600,7 @@ class CommandLineIntegerParameter extends BaseClasses_1.CommandLineParameterWith
|
|
|
68623
68600
|
get value() {
|
|
68624
68601
|
return this._value;
|
|
68625
68602
|
}
|
|
68626
|
-
/** {@inheritDoc
|
|
68603
|
+
/** {@inheritDoc CommandLineParameterBase.appendToArgList} @override */
|
|
68627
68604
|
appendToArgList(argList) {
|
|
68628
68605
|
if (this.value !== undefined) {
|
|
68629
68606
|
argList.push(this.longName);
|
|
@@ -69052,8 +69029,7 @@ class InternalScopedCommandLineParser extends CommandLineParser_1.CommandLinePar
|
|
|
69052
69029
|
// from the parent parser.
|
|
69053
69030
|
super._registerDefinedParameters(this._internalOptions.registerDefinedParametersState);
|
|
69054
69031
|
}
|
|
69055
|
-
async
|
|
69056
|
-
// override
|
|
69032
|
+
async onExecuteAsync() {
|
|
69057
69033
|
// Only set if we made it this far, which may not be the case if an error occurred or
|
|
69058
69034
|
// if '--help' was specified.
|
|
69059
69035
|
this._canExecute = true;
|
|
@@ -69082,7 +69058,6 @@ class InternalScopedCommandLineParser extends CommandLineParser_1.CommandLinePar
|
|
|
69082
69058
|
*/
|
|
69083
69059
|
class ScopedCommandLineAction extends CommandLineAction_1.CommandLineAction {
|
|
69084
69060
|
constructor(options) {
|
|
69085
|
-
var _a;
|
|
69086
69061
|
super(options);
|
|
69087
69062
|
this._options = options;
|
|
69088
69063
|
this._scopingParameters = [];
|
|
@@ -69093,13 +69068,9 @@ class ScopedCommandLineAction extends CommandLineAction_1.CommandLineAction {
|
|
|
69093
69068
|
description: 'Scoped parameters. Must be prefixed with "--", ex. "-- --scopedParameter ' +
|
|
69094
69069
|
'foo --scopedFlag". For more information on available scoped parameters, use "-- --help".'
|
|
69095
69070
|
});
|
|
69096
|
-
(_a = this.onDefineUnscopedParameters) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
69097
69071
|
}
|
|
69098
69072
|
/**
|
|
69099
69073
|
* {@inheritDoc CommandLineParameterProvider.parameters}
|
|
69100
|
-
*
|
|
69101
|
-
* @internalremarks
|
|
69102
|
-
* TODO: Replace this type with `CommandLineParameter` in the next major bump.
|
|
69103
69074
|
*/
|
|
69104
69075
|
get parameters() {
|
|
69105
69076
|
if (this._scopedCommandLineParser) {
|
|
@@ -69114,7 +69085,6 @@ class ScopedCommandLineAction extends CommandLineAction_1.CommandLineAction {
|
|
|
69114
69085
|
* @internal
|
|
69115
69086
|
*/
|
|
69116
69087
|
_processParsedData(parserOptions, data) {
|
|
69117
|
-
// override
|
|
69118
69088
|
super._processParsedData(parserOptions, data);
|
|
69119
69089
|
// This should never happen because the super method should throw if parameters haven't been registered,
|
|
69120
69090
|
// but guard against this just in-case.
|
|
@@ -69139,12 +69109,11 @@ class ScopedCommandLineAction extends CommandLineAction_1.CommandLineAction {
|
|
|
69139
69109
|
* @internal
|
|
69140
69110
|
*/
|
|
69141
69111
|
async _executeAsync() {
|
|
69142
|
-
// override
|
|
69143
69112
|
if (!this._unscopedParserOptions || !this._scopedCommandLineParser) {
|
|
69144
69113
|
throw new Error('The CommandLineAction parameters must be processed before execution.');
|
|
69145
69114
|
}
|
|
69146
69115
|
if (!this.remainder) {
|
|
69147
|
-
throw new Error('
|
|
69116
|
+
throw new Error('Parameters must be defined before execution.');
|
|
69148
69117
|
}
|
|
69149
69118
|
// The '--' argument is required to separate the action parameters from the scoped parameters,
|
|
69150
69119
|
// so it needs to be trimmed. If remainder values are provided but no '--' is found, then throw.
|
|
@@ -69865,11 +69834,11 @@ class CommandLineIntegerListParameter extends BaseClasses_1.CommandLineParameter
|
|
|
69865
69834
|
constructor(definition) {
|
|
69866
69835
|
super(definition);
|
|
69867
69836
|
this._values = [];
|
|
69868
|
-
/** {@inheritDoc
|
|
69837
|
+
/** {@inheritDoc CommandLineParameterBase.kind} */
|
|
69869
69838
|
this.kind = BaseClasses_1.CommandLineParameterKind.IntegerList;
|
|
69870
69839
|
}
|
|
69871
69840
|
/**
|
|
69872
|
-
* {@inheritDoc
|
|
69841
|
+
* {@inheritDoc CommandLineParameterBase._setValue}
|
|
69873
69842
|
* @internal
|
|
69874
69843
|
*/
|
|
69875
69844
|
_setValue(data) {
|
|
@@ -69916,7 +69885,7 @@ class CommandLineIntegerListParameter extends BaseClasses_1.CommandLineParameter
|
|
|
69916
69885
|
get values() {
|
|
69917
69886
|
return this._values;
|
|
69918
69887
|
}
|
|
69919
|
-
/** {@inheritDoc
|
|
69888
|
+
/** {@inheritDoc CommandLineParameterBase.appendToArgList} @override */
|
|
69920
69889
|
appendToArgList(argList) {
|
|
69921
69890
|
if (this.values.length > 0) {
|
|
69922
69891
|
for (const value of this.values) {
|
|
@@ -71316,7 +71285,7 @@ class CommandLineParameterWithArgument extends CommandLineParameterBase {
|
|
|
71316
71285
|
` Only upper-case letters, numbers, and underscores are allowed.`);
|
|
71317
71286
|
}
|
|
71318
71287
|
this.argumentName = definition.argumentName;
|
|
71319
|
-
this.
|
|
71288
|
+
this.getCompletionsAsync = definition.getCompletionsAsync;
|
|
71320
71289
|
}
|
|
71321
71290
|
}
|
|
71322
71291
|
exports.CommandLineParameterWithArgument = CommandLineParameterWithArgument;
|
|
@@ -71601,7 +71570,6 @@ class CommandLineAction extends CommandLineParameterProvider_1.CommandLineParame
|
|
|
71601
71570
|
* @internal
|
|
71602
71571
|
*/
|
|
71603
71572
|
_buildParser(actionsSubParser) {
|
|
71604
|
-
var _a;
|
|
71605
71573
|
this._argumentParser = actionsSubParser.addParser(this.actionName, {
|
|
71606
71574
|
help: this.summary,
|
|
71607
71575
|
description: this.documentation
|
|
@@ -71618,21 +71586,19 @@ class CommandLineAction extends CommandLineParameterProvider_1.CommandLineParame
|
|
|
71618
71586
|
}
|
|
71619
71587
|
originalArgumentParserErrorFn(err);
|
|
71620
71588
|
};
|
|
71621
|
-
(_a = this.onDefineParameters) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
71622
71589
|
}
|
|
71623
71590
|
/**
|
|
71624
71591
|
* Invoked by CommandLineParser.onExecute().
|
|
71625
71592
|
* @internal
|
|
71626
71593
|
*/
|
|
71627
|
-
_executeAsync() {
|
|
71628
|
-
|
|
71594
|
+
async _executeAsync() {
|
|
71595
|
+
await this.onExecuteAsync();
|
|
71629
71596
|
}
|
|
71630
71597
|
/**
|
|
71631
71598
|
* {@inheritDoc CommandLineParameterProvider._getArgumentParser}
|
|
71632
71599
|
* @internal
|
|
71633
71600
|
*/
|
|
71634
71601
|
_getArgumentParser() {
|
|
71635
|
-
// override
|
|
71636
71602
|
if (!this._argumentParser) {
|
|
71637
71603
|
// We will improve this in the future
|
|
71638
71604
|
throw new Error('The CommandLineAction must be added to a CommandLineParser before it can be used');
|
|
@@ -72415,7 +72381,7 @@ class AliasCommandLineAction extends CommandLineAction_1.CommandLineAction {
|
|
|
72415
72381
|
/**
|
|
72416
72382
|
* Executes the target action.
|
|
72417
72383
|
*/
|
|
72418
|
-
async
|
|
72384
|
+
async onExecuteAsync() {
|
|
72419
72385
|
await this.targetAction._executeAsync();
|
|
72420
72386
|
}
|
|
72421
72387
|
}
|