@fern-api/generator-cli 0.0.12-7cbcf4cc7 → 0.0.14-cec22478b
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/dist/cli.cjs +338 -79
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -9,6 +9,10 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
9
9
|
var __commonJS = (cb, mod) => function __require() {
|
|
10
10
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
11
|
};
|
|
12
|
+
var __export = (target, all) => {
|
|
13
|
+
for (var name in all)
|
|
14
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
15
|
+
};
|
|
12
16
|
var __copyProps = (to, from, except, desc) => {
|
|
13
17
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
18
|
for (let key of __getOwnPropNames(from))
|
|
@@ -5158,9 +5162,9 @@ var require_ms = __commonJS({
|
|
|
5158
5162
|
}
|
|
5159
5163
|
});
|
|
5160
5164
|
|
|
5161
|
-
// ../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
5165
|
+
// ../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/common.js
|
|
5162
5166
|
var require_common = __commonJS({
|
|
5163
|
-
"../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
5167
|
+
"../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/common.js"(exports2, module2) {
|
|
5164
5168
|
"use strict";
|
|
5165
5169
|
function setup(env2) {
|
|
5166
5170
|
createDebug.debug = createDebug;
|
|
@@ -5322,9 +5326,9 @@ var require_common = __commonJS({
|
|
|
5322
5326
|
}
|
|
5323
5327
|
});
|
|
5324
5328
|
|
|
5325
|
-
// ../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
5329
|
+
// ../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/browser.js
|
|
5326
5330
|
var require_browser = __commonJS({
|
|
5327
|
-
"../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
5331
|
+
"../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/browser.js"(exports2, module2) {
|
|
5328
5332
|
"use strict";
|
|
5329
5333
|
exports2.formatArgs = formatArgs;
|
|
5330
5334
|
exports2.save = save;
|
|
@@ -5492,35 +5496,43 @@ var require_browser = __commonJS({
|
|
|
5492
5496
|
}
|
|
5493
5497
|
});
|
|
5494
5498
|
|
|
5495
|
-
// ../../node_modules/.pnpm/has-flag@
|
|
5499
|
+
// ../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
|
|
5496
5500
|
var require_has_flag = __commonJS({
|
|
5497
|
-
"../../node_modules/.pnpm/has-flag@
|
|
5501
|
+
"../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports2, module2) {
|
|
5498
5502
|
"use strict";
|
|
5499
|
-
module2.exports = (flag, argv) => {
|
|
5500
|
-
argv = argv || process.argv;
|
|
5503
|
+
module2.exports = (flag, argv = process.argv) => {
|
|
5501
5504
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
5502
|
-
const
|
|
5503
|
-
const
|
|
5504
|
-
return
|
|
5505
|
+
const position = argv.indexOf(prefix + flag);
|
|
5506
|
+
const terminatorPosition = argv.indexOf("--");
|
|
5507
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
5505
5508
|
};
|
|
5506
5509
|
}
|
|
5507
5510
|
});
|
|
5508
5511
|
|
|
5509
|
-
// ../../node_modules/.pnpm/supports-color@
|
|
5512
|
+
// ../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js
|
|
5510
5513
|
var require_supports_color = __commonJS({
|
|
5511
|
-
"../../node_modules/.pnpm/supports-color@
|
|
5514
|
+
"../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js"(exports2, module2) {
|
|
5512
5515
|
"use strict";
|
|
5513
5516
|
var os = require("os");
|
|
5517
|
+
var tty = require("tty");
|
|
5514
5518
|
var hasFlag = require_has_flag();
|
|
5515
|
-
var env2 = process
|
|
5516
|
-
var
|
|
5517
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
5518
|
-
|
|
5519
|
+
var { env: env2 } = process;
|
|
5520
|
+
var flagForceColor;
|
|
5521
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
5522
|
+
flagForceColor = 0;
|
|
5519
5523
|
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
5520
|
-
|
|
5524
|
+
flagForceColor = 1;
|
|
5521
5525
|
}
|
|
5522
|
-
|
|
5523
|
-
|
|
5526
|
+
function envForceColor() {
|
|
5527
|
+
if ("FORCE_COLOR" in env2) {
|
|
5528
|
+
if (env2.FORCE_COLOR === "true") {
|
|
5529
|
+
return 1;
|
|
5530
|
+
}
|
|
5531
|
+
if (env2.FORCE_COLOR === "false") {
|
|
5532
|
+
return 0;
|
|
5533
|
+
}
|
|
5534
|
+
return env2.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
|
|
5535
|
+
}
|
|
5524
5536
|
}
|
|
5525
5537
|
function translateLevel(level) {
|
|
5526
5538
|
if (level === 0) {
|
|
@@ -5533,29 +5545,39 @@ var require_supports_color = __commonJS({
|
|
|
5533
5545
|
has16m: level >= 3
|
|
5534
5546
|
};
|
|
5535
5547
|
}
|
|
5536
|
-
function supportsColor(
|
|
5537
|
-
|
|
5538
|
-
|
|
5548
|
+
function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
5549
|
+
const noFlagForceColor = envForceColor();
|
|
5550
|
+
if (noFlagForceColor !== void 0) {
|
|
5551
|
+
flagForceColor = noFlagForceColor;
|
|
5539
5552
|
}
|
|
5540
|
-
|
|
5541
|
-
|
|
5553
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
5554
|
+
if (forceColor === 0) {
|
|
5555
|
+
return 0;
|
|
5542
5556
|
}
|
|
5543
|
-
if (
|
|
5544
|
-
|
|
5557
|
+
if (sniffFlags) {
|
|
5558
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
5559
|
+
return 3;
|
|
5560
|
+
}
|
|
5561
|
+
if (hasFlag("color=256")) {
|
|
5562
|
+
return 2;
|
|
5563
|
+
}
|
|
5545
5564
|
}
|
|
5546
|
-
if (
|
|
5565
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
5547
5566
|
return 0;
|
|
5548
5567
|
}
|
|
5549
|
-
const min = forceColor
|
|
5568
|
+
const min = forceColor || 0;
|
|
5569
|
+
if (env2.TERM === "dumb") {
|
|
5570
|
+
return min;
|
|
5571
|
+
}
|
|
5550
5572
|
if (process.platform === "win32") {
|
|
5551
5573
|
const osRelease = os.release().split(".");
|
|
5552
|
-
if (Number(
|
|
5574
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
5553
5575
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
5554
5576
|
}
|
|
5555
5577
|
return 1;
|
|
5556
5578
|
}
|
|
5557
5579
|
if ("CI" in env2) {
|
|
5558
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
|
|
5580
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
|
|
5559
5581
|
return 1;
|
|
5560
5582
|
}
|
|
5561
5583
|
return min;
|
|
@@ -5567,7 +5589,7 @@ var require_supports_color = __commonJS({
|
|
|
5567
5589
|
return 3;
|
|
5568
5590
|
}
|
|
5569
5591
|
if ("TERM_PROGRAM" in env2) {
|
|
5570
|
-
const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
5592
|
+
const version = Number.parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
5571
5593
|
switch (env2.TERM_PROGRAM) {
|
|
5572
5594
|
case "iTerm.app":
|
|
5573
5595
|
return version >= 3 ? 3 : 2;
|
|
@@ -5584,26 +5606,26 @@ var require_supports_color = __commonJS({
|
|
|
5584
5606
|
if ("COLORTERM" in env2) {
|
|
5585
5607
|
return 1;
|
|
5586
5608
|
}
|
|
5587
|
-
if (env2.TERM === "dumb") {
|
|
5588
|
-
return min;
|
|
5589
|
-
}
|
|
5590
5609
|
return min;
|
|
5591
5610
|
}
|
|
5592
|
-
function getSupportLevel(stream) {
|
|
5593
|
-
const level = supportsColor(stream
|
|
5611
|
+
function getSupportLevel(stream, options = {}) {
|
|
5612
|
+
const level = supportsColor(stream, {
|
|
5613
|
+
streamIsTTY: stream && stream.isTTY,
|
|
5614
|
+
...options
|
|
5615
|
+
});
|
|
5594
5616
|
return translateLevel(level);
|
|
5595
5617
|
}
|
|
5596
5618
|
module2.exports = {
|
|
5597
5619
|
supportsColor: getSupportLevel,
|
|
5598
|
-
stdout: getSupportLevel(
|
|
5599
|
-
stderr: getSupportLevel(
|
|
5620
|
+
stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
|
|
5621
|
+
stderr: getSupportLevel({ isTTY: tty.isatty(2) })
|
|
5600
5622
|
};
|
|
5601
5623
|
}
|
|
5602
5624
|
});
|
|
5603
5625
|
|
|
5604
|
-
// ../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
5626
|
+
// ../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/node.js
|
|
5605
5627
|
var require_node = __commonJS({
|
|
5606
|
-
"../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
5628
|
+
"../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/node.js"(exports2, module2) {
|
|
5607
5629
|
"use strict";
|
|
5608
5630
|
var tty = require("tty");
|
|
5609
5631
|
var util = require("util");
|
|
@@ -5776,9 +5798,9 @@ var require_node = __commonJS({
|
|
|
5776
5798
|
}
|
|
5777
5799
|
});
|
|
5778
5800
|
|
|
5779
|
-
// ../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
5801
|
+
// ../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/index.js
|
|
5780
5802
|
var require_src = __commonJS({
|
|
5781
|
-
"../../node_modules/.pnpm/debug@4.3.4_supports-color@
|
|
5803
|
+
"../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/index.js"(exports2, module2) {
|
|
5782
5804
|
"use strict";
|
|
5783
5805
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
5784
5806
|
module2.exports = require_browser();
|
|
@@ -5788,9 +5810,9 @@ var require_src = __commonJS({
|
|
|
5788
5810
|
}
|
|
5789
5811
|
});
|
|
5790
5812
|
|
|
5791
|
-
// ../../node_modules/.pnpm/@kwsites+file-exists@1.1.1/node_modules/@kwsites/file-exists/dist/src/index.js
|
|
5813
|
+
// ../../node_modules/.pnpm/@kwsites+file-exists@1.1.1_supports-color@8.1.1/node_modules/@kwsites/file-exists/dist/src/index.js
|
|
5792
5814
|
var require_src2 = __commonJS({
|
|
5793
|
-
"../../node_modules/.pnpm/@kwsites+file-exists@1.1.1/node_modules/@kwsites/file-exists/dist/src/index.js"(exports2) {
|
|
5815
|
+
"../../node_modules/.pnpm/@kwsites+file-exists@1.1.1_supports-color@8.1.1/node_modules/@kwsites/file-exists/dist/src/index.js"(exports2) {
|
|
5794
5816
|
"use strict";
|
|
5795
5817
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
5796
5818
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -5832,17 +5854,17 @@ var require_src2 = __commonJS({
|
|
|
5832
5854
|
}
|
|
5833
5855
|
});
|
|
5834
5856
|
|
|
5835
|
-
// ../../node_modules/.pnpm/@kwsites+file-exists@1.1.1/node_modules/@kwsites/file-exists/dist/index.js
|
|
5857
|
+
// ../../node_modules/.pnpm/@kwsites+file-exists@1.1.1_supports-color@8.1.1/node_modules/@kwsites/file-exists/dist/index.js
|
|
5836
5858
|
var require_dist = __commonJS({
|
|
5837
|
-
"../../node_modules/.pnpm/@kwsites+file-exists@1.1.1/node_modules/@kwsites/file-exists/dist/index.js"(exports2) {
|
|
5859
|
+
"../../node_modules/.pnpm/@kwsites+file-exists@1.1.1_supports-color@8.1.1/node_modules/@kwsites/file-exists/dist/index.js"(exports2) {
|
|
5838
5860
|
"use strict";
|
|
5839
|
-
function
|
|
5861
|
+
function __export3(m) {
|
|
5840
5862
|
for (var p in m)
|
|
5841
5863
|
if (!exports2.hasOwnProperty(p))
|
|
5842
5864
|
exports2[p] = m[p];
|
|
5843
5865
|
}
|
|
5844
5866
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5845
|
-
|
|
5867
|
+
__export3(require_src2());
|
|
5846
5868
|
}
|
|
5847
5869
|
});
|
|
5848
5870
|
|
|
@@ -7521,7 +7543,7 @@ async function loadReferenceConfig({
|
|
|
7521
7543
|
return JSON.parse(rawContents);
|
|
7522
7544
|
}
|
|
7523
7545
|
|
|
7524
|
-
// ../../node_modules/.pnpm/simple-git@3.24.
|
|
7546
|
+
// ../../node_modules/.pnpm/simple-git@3.24.0_supports-color@8.1.1/node_modules/simple-git/dist/esm/index.js
|
|
7525
7547
|
var import_file_exists = __toESM(require_dist(), 1);
|
|
7526
7548
|
var import_debug = __toESM(require_src(), 1);
|
|
7527
7549
|
var import_child_process = require("child_process");
|
|
@@ -7555,7 +7577,7 @@ var __esm = (fn, res) => function __init() {
|
|
|
7555
7577
|
var __commonJS2 = (cb, mod) => function __require() {
|
|
7556
7578
|
return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
7557
7579
|
};
|
|
7558
|
-
var
|
|
7580
|
+
var __export2 = (target, all) => {
|
|
7559
7581
|
for (var name in all)
|
|
7560
7582
|
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
7561
7583
|
};
|
|
@@ -7981,7 +8003,7 @@ var init_task_parser = __esm({
|
|
|
7981
8003
|
}
|
|
7982
8004
|
});
|
|
7983
8005
|
var utils_exports = {};
|
|
7984
|
-
|
|
8006
|
+
__export2(utils_exports, {
|
|
7985
8007
|
ExitCodes: () => ExitCodes,
|
|
7986
8008
|
GitOutputStreams: () => GitOutputStreams,
|
|
7987
8009
|
LineParser: () => LineParser,
|
|
@@ -8039,7 +8061,7 @@ var init_utils = __esm({
|
|
|
8039
8061
|
}
|
|
8040
8062
|
});
|
|
8041
8063
|
var check_is_repo_exports = {};
|
|
8042
|
-
|
|
8064
|
+
__export2(check_is_repo_exports, {
|
|
8043
8065
|
CheckRepoActions: () => CheckRepoActions,
|
|
8044
8066
|
checkIsBareRepoTask: () => checkIsBareRepoTask,
|
|
8045
8067
|
checkIsRepoRootTask: () => checkIsRepoRootTask,
|
|
@@ -8139,7 +8161,7 @@ var init_CleanSummary = __esm({
|
|
|
8139
8161
|
}
|
|
8140
8162
|
});
|
|
8141
8163
|
var task_exports = {};
|
|
8142
|
-
|
|
8164
|
+
__export2(task_exports, {
|
|
8143
8165
|
EMPTY_COMMANDS: () => EMPTY_COMMANDS,
|
|
8144
8166
|
adhocExecTask: () => adhocExecTask,
|
|
8145
8167
|
configurationErrorTask: () => configurationErrorTask,
|
|
@@ -8197,7 +8219,7 @@ var init_task = __esm({
|
|
|
8197
8219
|
}
|
|
8198
8220
|
});
|
|
8199
8221
|
var clean_exports = {};
|
|
8200
|
-
|
|
8222
|
+
__export2(clean_exports, {
|
|
8201
8223
|
CONFIG_ERROR_INTERACTIVE_MODE: () => CONFIG_ERROR_INTERACTIVE_MODE,
|
|
8202
8224
|
CONFIG_ERROR_MODE_REQUIRED: () => CONFIG_ERROR_MODE_REQUIRED,
|
|
8203
8225
|
CONFIG_ERROR_UNKNOWN_OPTION: () => CONFIG_ERROR_UNKNOWN_OPTION,
|
|
@@ -8576,7 +8598,7 @@ var init_grep = __esm({
|
|
|
8576
8598
|
}
|
|
8577
8599
|
});
|
|
8578
8600
|
var reset_exports = {};
|
|
8579
|
-
|
|
8601
|
+
__export2(reset_exports, {
|
|
8580
8602
|
ResetMode: () => ResetMode,
|
|
8581
8603
|
getResetMode: () => getResetMode,
|
|
8582
8604
|
resetTask: () => resetTask
|
|
@@ -8978,7 +9000,7 @@ var init_git_executor_chain = __esm({
|
|
|
8978
9000
|
}
|
|
8979
9001
|
});
|
|
8980
9002
|
var git_executor_exports = {};
|
|
8981
|
-
|
|
9003
|
+
__export2(git_executor_exports, {
|
|
8982
9004
|
GitExecutor: () => GitExecutor
|
|
8983
9005
|
});
|
|
8984
9006
|
var GitExecutor;
|
|
@@ -9504,7 +9526,7 @@ var init_parse_list_log_summary = __esm({
|
|
|
9504
9526
|
}
|
|
9505
9527
|
});
|
|
9506
9528
|
var diff_exports = {};
|
|
9507
|
-
|
|
9529
|
+
__export2(diff_exports, {
|
|
9508
9530
|
diffSummaryTask: () => diffSummaryTask,
|
|
9509
9531
|
validateLogFormatConfig: () => validateLogFormatConfig
|
|
9510
9532
|
});
|
|
@@ -10022,7 +10044,7 @@ var init_parse_push = __esm({
|
|
|
10022
10044
|
}
|
|
10023
10045
|
});
|
|
10024
10046
|
var push_exports = {};
|
|
10025
|
-
|
|
10047
|
+
__export2(push_exports, {
|
|
10026
10048
|
pushTagsTask: () => pushTagsTask,
|
|
10027
10049
|
pushTask: () => pushTask
|
|
10028
10050
|
});
|
|
@@ -10378,7 +10400,7 @@ var init_version = __esm({
|
|
|
10378
10400
|
}
|
|
10379
10401
|
});
|
|
10380
10402
|
var simple_git_api_exports = {};
|
|
10381
|
-
|
|
10403
|
+
__export2(simple_git_api_exports, {
|
|
10382
10404
|
SimpleGitApi: () => SimpleGitApi
|
|
10383
10405
|
});
|
|
10384
10406
|
var SimpleGitApi;
|
|
@@ -10515,7 +10537,7 @@ var init_simple_git_api = __esm({
|
|
|
10515
10537
|
}
|
|
10516
10538
|
});
|
|
10517
10539
|
var scheduler_exports = {};
|
|
10518
|
-
|
|
10540
|
+
__export2(scheduler_exports, {
|
|
10519
10541
|
Scheduler: () => Scheduler
|
|
10520
10542
|
});
|
|
10521
10543
|
var createScheduledTask;
|
|
@@ -10573,7 +10595,7 @@ var init_scheduler = __esm({
|
|
|
10573
10595
|
}
|
|
10574
10596
|
});
|
|
10575
10597
|
var apply_patch_exports = {};
|
|
10576
|
-
|
|
10598
|
+
__export2(apply_patch_exports, {
|
|
10577
10599
|
applyPatchTask: () => applyPatchTask
|
|
10578
10600
|
});
|
|
10579
10601
|
function applyPatchTask(patches, customArgs) {
|
|
@@ -10704,7 +10726,7 @@ var init_parse_branch = __esm({
|
|
|
10704
10726
|
}
|
|
10705
10727
|
});
|
|
10706
10728
|
var branch_exports = {};
|
|
10707
|
-
|
|
10729
|
+
__export2(branch_exports, {
|
|
10708
10730
|
branchLocalTask: () => branchLocalTask,
|
|
10709
10731
|
branchTask: () => branchTask,
|
|
10710
10732
|
containsDeleteBranchCommand: () => containsDeleteBranchCommand,
|
|
@@ -10796,7 +10818,7 @@ var init_CheckIgnore = __esm({
|
|
|
10796
10818
|
}
|
|
10797
10819
|
});
|
|
10798
10820
|
var check_ignore_exports = {};
|
|
10799
|
-
|
|
10821
|
+
__export2(check_ignore_exports, {
|
|
10800
10822
|
checkIgnoreTask: () => checkIgnoreTask
|
|
10801
10823
|
});
|
|
10802
10824
|
function checkIgnoreTask(paths) {
|
|
@@ -10813,7 +10835,7 @@ var init_check_ignore = __esm({
|
|
|
10813
10835
|
}
|
|
10814
10836
|
});
|
|
10815
10837
|
var clone_exports = {};
|
|
10816
|
-
|
|
10838
|
+
__export2(clone_exports, {
|
|
10817
10839
|
cloneMirrorTask: () => cloneMirrorTask,
|
|
10818
10840
|
cloneTask: () => cloneTask
|
|
10819
10841
|
});
|
|
@@ -10893,7 +10915,7 @@ var init_parse_fetch = __esm({
|
|
|
10893
10915
|
}
|
|
10894
10916
|
});
|
|
10895
10917
|
var fetch_exports = {};
|
|
10896
|
-
|
|
10918
|
+
__export2(fetch_exports, {
|
|
10897
10919
|
fetchTask: () => fetchTask
|
|
10898
10920
|
});
|
|
10899
10921
|
function disallowedCommand2(command) {
|
|
@@ -10937,7 +10959,7 @@ var init_parse_move = __esm({
|
|
|
10937
10959
|
}
|
|
10938
10960
|
});
|
|
10939
10961
|
var move_exports = {};
|
|
10940
|
-
|
|
10962
|
+
__export2(move_exports, {
|
|
10941
10963
|
moveTask: () => moveTask
|
|
10942
10964
|
});
|
|
10943
10965
|
function moveTask(from, to) {
|
|
@@ -10955,7 +10977,7 @@ var init_move = __esm({
|
|
|
10955
10977
|
}
|
|
10956
10978
|
});
|
|
10957
10979
|
var pull_exports = {};
|
|
10958
|
-
|
|
10980
|
+
__export2(pull_exports, {
|
|
10959
10981
|
pullTask: () => pullTask
|
|
10960
10982
|
});
|
|
10961
10983
|
function pullTask(remote, branch, customArgs) {
|
|
@@ -11019,7 +11041,7 @@ var init_GetRemoteSummary = __esm({
|
|
|
11019
11041
|
}
|
|
11020
11042
|
});
|
|
11021
11043
|
var remote_exports = {};
|
|
11022
|
-
|
|
11044
|
+
__export2(remote_exports, {
|
|
11023
11045
|
addRemoteTask: () => addRemoteTask,
|
|
11024
11046
|
getRemotesTask: () => getRemotesTask,
|
|
11025
11047
|
listRemotesTask: () => listRemotesTask,
|
|
@@ -11065,7 +11087,7 @@ var init_remote = __esm({
|
|
|
11065
11087
|
}
|
|
11066
11088
|
});
|
|
11067
11089
|
var stash_list_exports = {};
|
|
11068
|
-
|
|
11090
|
+
__export2(stash_list_exports, {
|
|
11069
11091
|
stashListTask: () => stashListTask
|
|
11070
11092
|
});
|
|
11071
11093
|
function stashListTask(opt = {}, customArgs) {
|
|
@@ -11092,7 +11114,7 @@ var init_stash_list = __esm({
|
|
|
11092
11114
|
}
|
|
11093
11115
|
});
|
|
11094
11116
|
var sub_module_exports = {};
|
|
11095
|
-
|
|
11117
|
+
__export2(sub_module_exports, {
|
|
11096
11118
|
addSubModuleTask: () => addSubModuleTask,
|
|
11097
11119
|
initSubModuleTask: () => initSubModuleTask,
|
|
11098
11120
|
subModuleTask: () => subModuleTask,
|
|
@@ -11175,7 +11197,7 @@ var init_TagList = __esm({
|
|
|
11175
11197
|
}
|
|
11176
11198
|
});
|
|
11177
11199
|
var tag_exports = {};
|
|
11178
|
-
|
|
11200
|
+
__export2(tag_exports, {
|
|
11179
11201
|
addAnnotatedTagTask: () => addAnnotatedTagTask,
|
|
11180
11202
|
addTagTask: () => addTagTask,
|
|
11181
11203
|
tagListTask: () => tagListTask
|
|
@@ -12037,10 +12059,8 @@ var README_FILEPATH = "README.md";
|
|
|
12037
12059
|
|
|
12038
12060
|
// ../../packages/commons/github/dist/ClonedRepository.js
|
|
12039
12061
|
var ClonedRepository = class {
|
|
12040
|
-
git;
|
|
12041
12062
|
clonePath;
|
|
12042
|
-
constructor({
|
|
12043
|
-
this.git = git;
|
|
12063
|
+
constructor({ clonePath }) {
|
|
12044
12064
|
this.clonePath = clonePath;
|
|
12045
12065
|
}
|
|
12046
12066
|
async getReadme() {
|
|
@@ -12114,7 +12134,6 @@ async function cloneRepository({ githubRepository, installationToken }) {
|
|
|
12114
12134
|
const git = esm_default2(clonePath);
|
|
12115
12135
|
await git.clone(cloneUrl, ".");
|
|
12116
12136
|
return new ClonedRepository({
|
|
12117
|
-
git,
|
|
12118
12137
|
clonePath
|
|
12119
12138
|
});
|
|
12120
12139
|
}
|
|
@@ -12666,6 +12685,199 @@ var snakeCase = createCompounder_default(function(result, word, index) {
|
|
|
12666
12685
|
});
|
|
12667
12686
|
var snakeCase_default = snakeCase;
|
|
12668
12687
|
|
|
12688
|
+
// src/configuration/generated/api/index.ts
|
|
12689
|
+
var api_exports = {};
|
|
12690
|
+
__export(api_exports, {
|
|
12691
|
+
Language: () => Language,
|
|
12692
|
+
LanguageInfo: () => LanguageInfo,
|
|
12693
|
+
Remote: () => Remote,
|
|
12694
|
+
StructuredFeatureId: () => StructuredFeatureId,
|
|
12695
|
+
feature: () => feature_exports,
|
|
12696
|
+
readme: () => readme_exports,
|
|
12697
|
+
reference: () => reference_exports
|
|
12698
|
+
});
|
|
12699
|
+
|
|
12700
|
+
// src/configuration/generated/api/resources/feature/index.ts
|
|
12701
|
+
var feature_exports = {};
|
|
12702
|
+
__export(feature_exports, {
|
|
12703
|
+
StructuredFeatureId: () => StructuredFeatureId
|
|
12704
|
+
});
|
|
12705
|
+
|
|
12706
|
+
// src/configuration/generated/api/resources/feature/types/StructuredFeatureId.ts
|
|
12707
|
+
var StructuredFeatureId = {
|
|
12708
|
+
Authentication: "AUTHENTICATION",
|
|
12709
|
+
Errors: "ERRORS",
|
|
12710
|
+
Usage: "USAGE",
|
|
12711
|
+
Pagination: "PAGINATION",
|
|
12712
|
+
Retries: "RETRIES",
|
|
12713
|
+
RequestOptions: "REQUEST_OPTIONS",
|
|
12714
|
+
Streaming: "STREAMING",
|
|
12715
|
+
Timeouts: "TIMEOUTS",
|
|
12716
|
+
CustomClient: "CUSTOM_CLIENT",
|
|
12717
|
+
_visit: (value, visitor) => {
|
|
12718
|
+
switch (value) {
|
|
12719
|
+
case StructuredFeatureId.Authentication:
|
|
12720
|
+
return visitor.authentication();
|
|
12721
|
+
case StructuredFeatureId.Errors:
|
|
12722
|
+
return visitor.errors();
|
|
12723
|
+
case StructuredFeatureId.Usage:
|
|
12724
|
+
return visitor.usage();
|
|
12725
|
+
case StructuredFeatureId.Pagination:
|
|
12726
|
+
return visitor.pagination();
|
|
12727
|
+
case StructuredFeatureId.Retries:
|
|
12728
|
+
return visitor.retries();
|
|
12729
|
+
case StructuredFeatureId.RequestOptions:
|
|
12730
|
+
return visitor.requestOptions();
|
|
12731
|
+
case StructuredFeatureId.Streaming:
|
|
12732
|
+
return visitor.streaming();
|
|
12733
|
+
case StructuredFeatureId.Timeouts:
|
|
12734
|
+
return visitor.timeouts();
|
|
12735
|
+
case StructuredFeatureId.CustomClient:
|
|
12736
|
+
return visitor.customClient();
|
|
12737
|
+
default:
|
|
12738
|
+
return visitor._other();
|
|
12739
|
+
}
|
|
12740
|
+
}
|
|
12741
|
+
};
|
|
12742
|
+
|
|
12743
|
+
// src/configuration/generated/api/resources/readme/index.ts
|
|
12744
|
+
var readme_exports = {};
|
|
12745
|
+
__export(readme_exports, {
|
|
12746
|
+
LanguageInfo: () => LanguageInfo,
|
|
12747
|
+
Remote: () => Remote
|
|
12748
|
+
});
|
|
12749
|
+
|
|
12750
|
+
// src/configuration/generated/api/resources/readme/types/Remote.ts
|
|
12751
|
+
var Remote = {
|
|
12752
|
+
github: (value) => {
|
|
12753
|
+
return {
|
|
12754
|
+
...value,
|
|
12755
|
+
type: "github",
|
|
12756
|
+
_visit: function(visitor) {
|
|
12757
|
+
return Remote._visit(this, visitor);
|
|
12758
|
+
}
|
|
12759
|
+
};
|
|
12760
|
+
},
|
|
12761
|
+
_visit: (value, visitor) => {
|
|
12762
|
+
switch (value.type) {
|
|
12763
|
+
case "github":
|
|
12764
|
+
return visitor.github(value);
|
|
12765
|
+
default:
|
|
12766
|
+
return visitor._other(value);
|
|
12767
|
+
}
|
|
12768
|
+
}
|
|
12769
|
+
};
|
|
12770
|
+
|
|
12771
|
+
// src/configuration/generated/api/resources/readme/types/LanguageInfo.ts
|
|
12772
|
+
var LanguageInfo = {
|
|
12773
|
+
typescript: (value) => {
|
|
12774
|
+
return {
|
|
12775
|
+
...value,
|
|
12776
|
+
type: "typescript",
|
|
12777
|
+
_visit: function(visitor) {
|
|
12778
|
+
return LanguageInfo._visit(this, visitor);
|
|
12779
|
+
}
|
|
12780
|
+
};
|
|
12781
|
+
},
|
|
12782
|
+
python: (value) => {
|
|
12783
|
+
return {
|
|
12784
|
+
...value,
|
|
12785
|
+
type: "python",
|
|
12786
|
+
_visit: function(visitor) {
|
|
12787
|
+
return LanguageInfo._visit(this, visitor);
|
|
12788
|
+
}
|
|
12789
|
+
};
|
|
12790
|
+
},
|
|
12791
|
+
go: (value) => {
|
|
12792
|
+
return {
|
|
12793
|
+
...value,
|
|
12794
|
+
type: "go",
|
|
12795
|
+
_visit: function(visitor) {
|
|
12796
|
+
return LanguageInfo._visit(this, visitor);
|
|
12797
|
+
}
|
|
12798
|
+
};
|
|
12799
|
+
},
|
|
12800
|
+
java: (value) => {
|
|
12801
|
+
return {
|
|
12802
|
+
...value,
|
|
12803
|
+
type: "java",
|
|
12804
|
+
_visit: function(visitor) {
|
|
12805
|
+
return LanguageInfo._visit(this, visitor);
|
|
12806
|
+
}
|
|
12807
|
+
};
|
|
12808
|
+
},
|
|
12809
|
+
ruby: (value) => {
|
|
12810
|
+
return {
|
|
12811
|
+
...value,
|
|
12812
|
+
type: "ruby",
|
|
12813
|
+
_visit: function(visitor) {
|
|
12814
|
+
return LanguageInfo._visit(this, visitor);
|
|
12815
|
+
}
|
|
12816
|
+
};
|
|
12817
|
+
},
|
|
12818
|
+
csharp: (value) => {
|
|
12819
|
+
return {
|
|
12820
|
+
...value,
|
|
12821
|
+
type: "csharp",
|
|
12822
|
+
_visit: function(visitor) {
|
|
12823
|
+
return LanguageInfo._visit(this, visitor);
|
|
12824
|
+
}
|
|
12825
|
+
};
|
|
12826
|
+
},
|
|
12827
|
+
_visit: (value, visitor) => {
|
|
12828
|
+
switch (value.type) {
|
|
12829
|
+
case "typescript":
|
|
12830
|
+
return visitor.typescript(value);
|
|
12831
|
+
case "python":
|
|
12832
|
+
return visitor.python(value);
|
|
12833
|
+
case "go":
|
|
12834
|
+
return visitor.go(value);
|
|
12835
|
+
case "java":
|
|
12836
|
+
return visitor.java(value);
|
|
12837
|
+
case "ruby":
|
|
12838
|
+
return visitor.ruby(value);
|
|
12839
|
+
case "csharp":
|
|
12840
|
+
return visitor.csharp(value);
|
|
12841
|
+
default:
|
|
12842
|
+
return visitor._other(value);
|
|
12843
|
+
}
|
|
12844
|
+
}
|
|
12845
|
+
};
|
|
12846
|
+
|
|
12847
|
+
// src/configuration/generated/api/resources/reference/index.ts
|
|
12848
|
+
var reference_exports = {};
|
|
12849
|
+
__export(reference_exports, {
|
|
12850
|
+
Language: () => Language
|
|
12851
|
+
});
|
|
12852
|
+
|
|
12853
|
+
// src/configuration/generated/api/resources/reference/types/Language.ts
|
|
12854
|
+
var Language = {
|
|
12855
|
+
Java: "JAVA",
|
|
12856
|
+
Python: "PYTHON",
|
|
12857
|
+
Go: "GO",
|
|
12858
|
+
Ruby: "RUBY",
|
|
12859
|
+
Csharp: "CSHARP",
|
|
12860
|
+
Typescript: "TYPESCRIPT",
|
|
12861
|
+
_visit: (value, visitor) => {
|
|
12862
|
+
switch (value) {
|
|
12863
|
+
case Language.Java:
|
|
12864
|
+
return visitor.java();
|
|
12865
|
+
case Language.Python:
|
|
12866
|
+
return visitor.python();
|
|
12867
|
+
case Language.Go:
|
|
12868
|
+
return visitor.go();
|
|
12869
|
+
case Language.Ruby:
|
|
12870
|
+
return visitor.ruby();
|
|
12871
|
+
case Language.Csharp:
|
|
12872
|
+
return visitor.csharp();
|
|
12873
|
+
case Language.Typescript:
|
|
12874
|
+
return visitor.typescript();
|
|
12875
|
+
default:
|
|
12876
|
+
return visitor._other();
|
|
12877
|
+
}
|
|
12878
|
+
}
|
|
12879
|
+
};
|
|
12880
|
+
|
|
12669
12881
|
// src/utils/Writer.ts
|
|
12670
12882
|
var Writer = class {
|
|
12671
12883
|
writeCodeBlock(language, content) {
|
|
@@ -12826,6 +13038,12 @@ var BlockList = class {
|
|
|
12826
13038
|
|
|
12827
13039
|
// src/readme/ReadmeGenerator.ts
|
|
12828
13040
|
var ReadmeGenerator = class {
|
|
13041
|
+
ADVANCED_FEATURE_ID = "ADVANCED";
|
|
13042
|
+
ADVANCED_FEATURES = /* @__PURE__ */ new Set([
|
|
13043
|
+
api_exports.StructuredFeatureId.Retries,
|
|
13044
|
+
api_exports.StructuredFeatureId.Timeouts,
|
|
13045
|
+
api_exports.StructuredFeatureId.CustomClient
|
|
13046
|
+
]);
|
|
12829
13047
|
readmeParser;
|
|
12830
13048
|
readmeConfig;
|
|
12831
13049
|
originalReadme;
|
|
@@ -12864,7 +13082,9 @@ var ReadmeGenerator = class {
|
|
|
12864
13082
|
if (this.readmeConfig.language != null && this.readmeConfig.language.publishInfo != null) {
|
|
12865
13083
|
blocks.push(this.generateInstallation({ language: this.readmeConfig.language }));
|
|
12866
13084
|
}
|
|
12867
|
-
|
|
13085
|
+
const coreFeatures = this.readmeConfig.features?.filter((feat) => !this.ADVANCED_FEATURES.has(feat.id)) ?? [];
|
|
13086
|
+
const advancedFeatures = this.readmeConfig.features?.filter((feat) => this.ADVANCED_FEATURES.has(feat.id)) ?? [];
|
|
13087
|
+
for (const feature of coreFeatures) {
|
|
12868
13088
|
if (this.shouldSkipFeature({ feature })) {
|
|
12869
13089
|
continue;
|
|
12870
13090
|
}
|
|
@@ -12874,12 +13094,48 @@ var ReadmeGenerator = class {
|
|
|
12874
13094
|
})
|
|
12875
13095
|
);
|
|
12876
13096
|
}
|
|
13097
|
+
const advancedFeatureBlock = this.generateNestedFeatureBlock({
|
|
13098
|
+
featureId: this.ADVANCED_FEATURE_ID,
|
|
13099
|
+
features: advancedFeatures
|
|
13100
|
+
});
|
|
13101
|
+
if (advancedFeatureBlock != null) {
|
|
13102
|
+
blocks.push(advancedFeatureBlock);
|
|
13103
|
+
}
|
|
12877
13104
|
blocks.push(this.generateContributing());
|
|
12878
13105
|
return blocks;
|
|
12879
13106
|
}
|
|
12880
|
-
|
|
13107
|
+
generateNestedFeatureBlock({
|
|
13108
|
+
featureId,
|
|
13109
|
+
features
|
|
13110
|
+
}) {
|
|
13111
|
+
if (!this.shouldGenerateFeatures({ features })) {
|
|
13112
|
+
return void 0;
|
|
13113
|
+
}
|
|
12881
13114
|
const writer = new StringWriter();
|
|
12882
|
-
writer.writeLine(`## ${featureIDToTitle(
|
|
13115
|
+
writer.writeLine(`## ${featureIDToTitle(featureId)}`);
|
|
13116
|
+
writer.writeLine();
|
|
13117
|
+
for (const feature of features) {
|
|
13118
|
+
if (this.shouldSkipFeature({ feature })) {
|
|
13119
|
+
continue;
|
|
13120
|
+
}
|
|
13121
|
+
this.generateFeatureBlock({
|
|
13122
|
+
feature,
|
|
13123
|
+
heading: "###",
|
|
13124
|
+
maybeWriter: writer
|
|
13125
|
+
});
|
|
13126
|
+
}
|
|
13127
|
+
return new Block({
|
|
13128
|
+
id: featureId,
|
|
13129
|
+
content: writer.toString()
|
|
13130
|
+
});
|
|
13131
|
+
}
|
|
13132
|
+
generateFeatureBlock({
|
|
13133
|
+
feature,
|
|
13134
|
+
heading = "##",
|
|
13135
|
+
maybeWriter
|
|
13136
|
+
}) {
|
|
13137
|
+
const writer = maybeWriter ?? new StringWriter();
|
|
13138
|
+
writer.writeLine(`${heading} ${featureIDToTitle(feature.id)}`);
|
|
12883
13139
|
writer.writeLine();
|
|
12884
13140
|
if (feature.description != null) {
|
|
12885
13141
|
writer.writeLine(feature.description);
|
|
@@ -13235,6 +13491,9 @@ On the other hand, contributions to the README are always very welcome!
|
|
|
13235
13491
|
shouldSkipFeature({ feature }) {
|
|
13236
13492
|
return !feature.snippetsAreOptional && (feature.snippets == null || feature.snippets.length === 0);
|
|
13237
13493
|
}
|
|
13494
|
+
shouldGenerateFeatures({ features }) {
|
|
13495
|
+
return features.some((feature) => !this.shouldSkipFeature({ feature }));
|
|
13496
|
+
}
|
|
13238
13497
|
};
|
|
13239
13498
|
function languageToTitle(language) {
|
|
13240
13499
|
switch (language.type) {
|