@fern-api/generator-cli 0.0.12-7cbcf4cc7 → 0.0.13-eaaf17704
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 +330 -75
- 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
|
|
@@ -12666,6 +12688,199 @@ var snakeCase = createCompounder_default(function(result, word, index) {
|
|
|
12666
12688
|
});
|
|
12667
12689
|
var snakeCase_default = snakeCase;
|
|
12668
12690
|
|
|
12691
|
+
// src/configuration/generated/api/index.ts
|
|
12692
|
+
var api_exports = {};
|
|
12693
|
+
__export(api_exports, {
|
|
12694
|
+
Language: () => Language,
|
|
12695
|
+
LanguageInfo: () => LanguageInfo,
|
|
12696
|
+
Remote: () => Remote,
|
|
12697
|
+
StructuredFeatureId: () => StructuredFeatureId,
|
|
12698
|
+
feature: () => feature_exports,
|
|
12699
|
+
readme: () => readme_exports,
|
|
12700
|
+
reference: () => reference_exports
|
|
12701
|
+
});
|
|
12702
|
+
|
|
12703
|
+
// src/configuration/generated/api/resources/feature/index.ts
|
|
12704
|
+
var feature_exports = {};
|
|
12705
|
+
__export(feature_exports, {
|
|
12706
|
+
StructuredFeatureId: () => StructuredFeatureId
|
|
12707
|
+
});
|
|
12708
|
+
|
|
12709
|
+
// src/configuration/generated/api/resources/feature/types/StructuredFeatureId.ts
|
|
12710
|
+
var StructuredFeatureId = {
|
|
12711
|
+
Authentication: "AUTHENTICATION",
|
|
12712
|
+
Errors: "ERRORS",
|
|
12713
|
+
Usage: "USAGE",
|
|
12714
|
+
Pagination: "PAGINATION",
|
|
12715
|
+
Retries: "RETRIES",
|
|
12716
|
+
RequestOptions: "REQUEST_OPTIONS",
|
|
12717
|
+
Streaming: "STREAMING",
|
|
12718
|
+
Timeouts: "TIMEOUTS",
|
|
12719
|
+
CustomClient: "CUSTOM_CLIENT",
|
|
12720
|
+
_visit: (value, visitor) => {
|
|
12721
|
+
switch (value) {
|
|
12722
|
+
case StructuredFeatureId.Authentication:
|
|
12723
|
+
return visitor.authentication();
|
|
12724
|
+
case StructuredFeatureId.Errors:
|
|
12725
|
+
return visitor.errors();
|
|
12726
|
+
case StructuredFeatureId.Usage:
|
|
12727
|
+
return visitor.usage();
|
|
12728
|
+
case StructuredFeatureId.Pagination:
|
|
12729
|
+
return visitor.pagination();
|
|
12730
|
+
case StructuredFeatureId.Retries:
|
|
12731
|
+
return visitor.retries();
|
|
12732
|
+
case StructuredFeatureId.RequestOptions:
|
|
12733
|
+
return visitor.requestOptions();
|
|
12734
|
+
case StructuredFeatureId.Streaming:
|
|
12735
|
+
return visitor.streaming();
|
|
12736
|
+
case StructuredFeatureId.Timeouts:
|
|
12737
|
+
return visitor.timeouts();
|
|
12738
|
+
case StructuredFeatureId.CustomClient:
|
|
12739
|
+
return visitor.customClient();
|
|
12740
|
+
default:
|
|
12741
|
+
return visitor._other();
|
|
12742
|
+
}
|
|
12743
|
+
}
|
|
12744
|
+
};
|
|
12745
|
+
|
|
12746
|
+
// src/configuration/generated/api/resources/readme/index.ts
|
|
12747
|
+
var readme_exports = {};
|
|
12748
|
+
__export(readme_exports, {
|
|
12749
|
+
LanguageInfo: () => LanguageInfo,
|
|
12750
|
+
Remote: () => Remote
|
|
12751
|
+
});
|
|
12752
|
+
|
|
12753
|
+
// src/configuration/generated/api/resources/readme/types/Remote.ts
|
|
12754
|
+
var Remote = {
|
|
12755
|
+
github: (value) => {
|
|
12756
|
+
return {
|
|
12757
|
+
...value,
|
|
12758
|
+
type: "github",
|
|
12759
|
+
_visit: function(visitor) {
|
|
12760
|
+
return Remote._visit(this, visitor);
|
|
12761
|
+
}
|
|
12762
|
+
};
|
|
12763
|
+
},
|
|
12764
|
+
_visit: (value, visitor) => {
|
|
12765
|
+
switch (value.type) {
|
|
12766
|
+
case "github":
|
|
12767
|
+
return visitor.github(value);
|
|
12768
|
+
default:
|
|
12769
|
+
return visitor._other(value);
|
|
12770
|
+
}
|
|
12771
|
+
}
|
|
12772
|
+
};
|
|
12773
|
+
|
|
12774
|
+
// src/configuration/generated/api/resources/readme/types/LanguageInfo.ts
|
|
12775
|
+
var LanguageInfo = {
|
|
12776
|
+
typescript: (value) => {
|
|
12777
|
+
return {
|
|
12778
|
+
...value,
|
|
12779
|
+
type: "typescript",
|
|
12780
|
+
_visit: function(visitor) {
|
|
12781
|
+
return LanguageInfo._visit(this, visitor);
|
|
12782
|
+
}
|
|
12783
|
+
};
|
|
12784
|
+
},
|
|
12785
|
+
python: (value) => {
|
|
12786
|
+
return {
|
|
12787
|
+
...value,
|
|
12788
|
+
type: "python",
|
|
12789
|
+
_visit: function(visitor) {
|
|
12790
|
+
return LanguageInfo._visit(this, visitor);
|
|
12791
|
+
}
|
|
12792
|
+
};
|
|
12793
|
+
},
|
|
12794
|
+
go: (value) => {
|
|
12795
|
+
return {
|
|
12796
|
+
...value,
|
|
12797
|
+
type: "go",
|
|
12798
|
+
_visit: function(visitor) {
|
|
12799
|
+
return LanguageInfo._visit(this, visitor);
|
|
12800
|
+
}
|
|
12801
|
+
};
|
|
12802
|
+
},
|
|
12803
|
+
java: (value) => {
|
|
12804
|
+
return {
|
|
12805
|
+
...value,
|
|
12806
|
+
type: "java",
|
|
12807
|
+
_visit: function(visitor) {
|
|
12808
|
+
return LanguageInfo._visit(this, visitor);
|
|
12809
|
+
}
|
|
12810
|
+
};
|
|
12811
|
+
},
|
|
12812
|
+
ruby: (value) => {
|
|
12813
|
+
return {
|
|
12814
|
+
...value,
|
|
12815
|
+
type: "ruby",
|
|
12816
|
+
_visit: function(visitor) {
|
|
12817
|
+
return LanguageInfo._visit(this, visitor);
|
|
12818
|
+
}
|
|
12819
|
+
};
|
|
12820
|
+
},
|
|
12821
|
+
csharp: (value) => {
|
|
12822
|
+
return {
|
|
12823
|
+
...value,
|
|
12824
|
+
type: "csharp",
|
|
12825
|
+
_visit: function(visitor) {
|
|
12826
|
+
return LanguageInfo._visit(this, visitor);
|
|
12827
|
+
}
|
|
12828
|
+
};
|
|
12829
|
+
},
|
|
12830
|
+
_visit: (value, visitor) => {
|
|
12831
|
+
switch (value.type) {
|
|
12832
|
+
case "typescript":
|
|
12833
|
+
return visitor.typescript(value);
|
|
12834
|
+
case "python":
|
|
12835
|
+
return visitor.python(value);
|
|
12836
|
+
case "go":
|
|
12837
|
+
return visitor.go(value);
|
|
12838
|
+
case "java":
|
|
12839
|
+
return visitor.java(value);
|
|
12840
|
+
case "ruby":
|
|
12841
|
+
return visitor.ruby(value);
|
|
12842
|
+
case "csharp":
|
|
12843
|
+
return visitor.csharp(value);
|
|
12844
|
+
default:
|
|
12845
|
+
return visitor._other(value);
|
|
12846
|
+
}
|
|
12847
|
+
}
|
|
12848
|
+
};
|
|
12849
|
+
|
|
12850
|
+
// src/configuration/generated/api/resources/reference/index.ts
|
|
12851
|
+
var reference_exports = {};
|
|
12852
|
+
__export(reference_exports, {
|
|
12853
|
+
Language: () => Language
|
|
12854
|
+
});
|
|
12855
|
+
|
|
12856
|
+
// src/configuration/generated/api/resources/reference/types/Language.ts
|
|
12857
|
+
var Language = {
|
|
12858
|
+
Java: "JAVA",
|
|
12859
|
+
Python: "PYTHON",
|
|
12860
|
+
Go: "GO",
|
|
12861
|
+
Ruby: "RUBY",
|
|
12862
|
+
Csharp: "CSHARP",
|
|
12863
|
+
Typescript: "TYPESCRIPT",
|
|
12864
|
+
_visit: (value, visitor) => {
|
|
12865
|
+
switch (value) {
|
|
12866
|
+
case Language.Java:
|
|
12867
|
+
return visitor.java();
|
|
12868
|
+
case Language.Python:
|
|
12869
|
+
return visitor.python();
|
|
12870
|
+
case Language.Go:
|
|
12871
|
+
return visitor.go();
|
|
12872
|
+
case Language.Ruby:
|
|
12873
|
+
return visitor.ruby();
|
|
12874
|
+
case Language.Csharp:
|
|
12875
|
+
return visitor.csharp();
|
|
12876
|
+
case Language.Typescript:
|
|
12877
|
+
return visitor.typescript();
|
|
12878
|
+
default:
|
|
12879
|
+
return visitor._other();
|
|
12880
|
+
}
|
|
12881
|
+
}
|
|
12882
|
+
};
|
|
12883
|
+
|
|
12669
12884
|
// src/utils/Writer.ts
|
|
12670
12885
|
var Writer = class {
|
|
12671
12886
|
writeCodeBlock(language, content) {
|
|
@@ -12826,6 +13041,11 @@ var BlockList = class {
|
|
|
12826
13041
|
|
|
12827
13042
|
// src/readme/ReadmeGenerator.ts
|
|
12828
13043
|
var ReadmeGenerator = class {
|
|
13044
|
+
ADVANCED_FEATURES = [
|
|
13045
|
+
api_exports.StructuredFeatureId.Retries,
|
|
13046
|
+
api_exports.StructuredFeatureId.Timeouts,
|
|
13047
|
+
api_exports.StructuredFeatureId.CustomClient
|
|
13048
|
+
];
|
|
12829
13049
|
readmeParser;
|
|
12830
13050
|
readmeConfig;
|
|
12831
13051
|
originalReadme;
|
|
@@ -12864,7 +13084,9 @@ var ReadmeGenerator = class {
|
|
|
12864
13084
|
if (this.readmeConfig.language != null && this.readmeConfig.language.publishInfo != null) {
|
|
12865
13085
|
blocks.push(this.generateInstallation({ language: this.readmeConfig.language }));
|
|
12866
13086
|
}
|
|
12867
|
-
|
|
13087
|
+
const coreFeatures = this.readmeConfig.features?.filter((feat) => !this.ADVANCED_FEATURES.includes(feat.id)) ?? [];
|
|
13088
|
+
const advancedFeatures = this.readmeConfig.features?.filter((feat) => this.ADVANCED_FEATURES.includes(feat.id)) ?? [];
|
|
13089
|
+
for (const feature of coreFeatures) {
|
|
12868
13090
|
if (this.shouldSkipFeature({ feature })) {
|
|
12869
13091
|
continue;
|
|
12870
13092
|
}
|
|
@@ -12874,12 +13096,42 @@ var ReadmeGenerator = class {
|
|
|
12874
13096
|
})
|
|
12875
13097
|
);
|
|
12876
13098
|
}
|
|
13099
|
+
blocks.push(...this.generateNestedFeatureBlocks({ features: advancedFeatures, sectionTitle: "Advanced" }));
|
|
12877
13100
|
blocks.push(this.generateContributing());
|
|
12878
13101
|
return blocks;
|
|
12879
13102
|
}
|
|
12880
|
-
|
|
13103
|
+
generateNestedFeatureBlocks({
|
|
13104
|
+
features,
|
|
13105
|
+
sectionTitle
|
|
13106
|
+
}) {
|
|
13107
|
+
if (!this.hasUnskippedFeatures({ features })) {
|
|
13108
|
+
return [];
|
|
13109
|
+
}
|
|
13110
|
+
const blocks = [];
|
|
12881
13111
|
const writer = new StringWriter();
|
|
12882
|
-
writer.writeLine(`## ${
|
|
13112
|
+
writer.writeLine(`## ${sectionTitle}`);
|
|
13113
|
+
writer.writeLine();
|
|
13114
|
+
for (const feature of features) {
|
|
13115
|
+
if (this.shouldSkipFeature({ feature })) {
|
|
13116
|
+
continue;
|
|
13117
|
+
}
|
|
13118
|
+
blocks.push(
|
|
13119
|
+
this.generateFeatureBlock({
|
|
13120
|
+
feature,
|
|
13121
|
+
heading: "h3",
|
|
13122
|
+
maybeWriter: writer
|
|
13123
|
+
})
|
|
13124
|
+
);
|
|
13125
|
+
}
|
|
13126
|
+
return blocks;
|
|
13127
|
+
}
|
|
13128
|
+
generateFeatureBlock({
|
|
13129
|
+
feature,
|
|
13130
|
+
heading = "h2",
|
|
13131
|
+
maybeWriter
|
|
13132
|
+
}) {
|
|
13133
|
+
const writer = maybeWriter ?? new StringWriter();
|
|
13134
|
+
writer.writeLine(`${heading === "h2" ? "##" : "###"} ${featureIDToTitle(feature.id)}`);
|
|
12883
13135
|
writer.writeLine();
|
|
12884
13136
|
if (feature.description != null) {
|
|
12885
13137
|
writer.writeLine(feature.description);
|
|
@@ -13235,6 +13487,9 @@ On the other hand, contributions to the README are always very welcome!
|
|
|
13235
13487
|
shouldSkipFeature({ feature }) {
|
|
13236
13488
|
return !feature.snippetsAreOptional && (feature.snippets == null || feature.snippets.length === 0);
|
|
13237
13489
|
}
|
|
13490
|
+
hasUnskippedFeatures({ features }) {
|
|
13491
|
+
return features.some((feature) => !this.shouldSkipFeature({ feature }));
|
|
13492
|
+
}
|
|
13238
13493
|
};
|
|
13239
13494
|
function languageToTitle(language) {
|
|
13240
13495
|
switch (language.type) {
|