git-digger 1.2.20 → 1.2.21
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/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +50 -50
- package/kotlin/clikt-clikt.js +1163 -1163
- package/kotlin/colormath-root-colormath.js +421 -421
- package/kotlin/kotlin-kotlin-stdlib.js +211 -210
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +64 -64
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +231 -231
- package/kotlin/markdown.js +1865 -1865
- package/kotlin/mordant-mordant.js +1595 -1595
- package/kotlin/tools-digger-cli.js +67 -67
- package/kotlin/tools-digger-core.js +81 -125
- package/kotlin/tools-digger-core.js.map +1 -1
- package/kotlin/tools-digger-json.js +67 -67
- package/kotlin/tools-digger-model.js +7 -7
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_com_zegreatrob_tools_digger_core, kotlin_clikt_clikt, kotlin_com_zegreatrob_tools_digger_json) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var split = kotlin_kotlin.$_$.
|
|
4
|
+
var split = kotlin_kotlin.$_$.lb;
|
|
5
5
|
var lastOrNull = kotlin_kotlin.$_$.n5;
|
|
6
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
6
|
+
var isBlank = kotlin_kotlin.$_$.sa;
|
|
7
7
|
var DiggerGitWrapper = kotlin_com_zegreatrob_tools_digger_core.$_$.b;
|
|
8
8
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
9
9
|
var Defaults_getInstance = kotlin_com_zegreatrob_tools_digger_core.$_$.d;
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
var default_0 = kotlin_clikt_clikt.$_$.d;
|
|
16
16
|
var toJsonString = kotlin_com_zegreatrob_tools_digger_json.$_$.b;
|
|
17
17
|
var Unit_instance = kotlin_kotlin.$_$.l3;
|
|
18
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
19
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
20
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
18
|
+
var protoOf = kotlin_kotlin.$_$.c9;
|
|
19
|
+
var classMeta = kotlin_kotlin.$_$.y7;
|
|
20
|
+
var setMetadataFor = kotlin_kotlin.$_$.d9;
|
|
21
21
|
var VOID = kotlin_kotlin.$_$.g;
|
|
22
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
23
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
22
|
+
var KProperty1 = kotlin_kotlin.$_$.u9;
|
|
23
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.e8;
|
|
24
24
|
var toJsonString_0 = kotlin_com_zegreatrob_tools_digger_json.$_$.a;
|
|
25
25
|
var subcommands = kotlin_clikt_clikt.$_$.b;
|
|
26
|
-
var until = kotlin_kotlin.$_$.
|
|
26
|
+
var until = kotlin_kotlin.$_$.p9;
|
|
27
27
|
var slice = kotlin_kotlin.$_$.p6;
|
|
28
28
|
var copyToArray = kotlin_kotlin.$_$.q4;
|
|
29
29
|
//endregion
|
|
@@ -33,31 +33,31 @@
|
|
|
33
33
|
setMetadataFor(Welcome, 'Welcome', classMeta, CliktCommand, VOID, Welcome);
|
|
34
34
|
//endregion
|
|
35
35
|
function _get_dir__e67350($this) {
|
|
36
|
-
return $this.
|
|
36
|
+
return $this.d30_1.p2w($this, dir$factory_0());
|
|
37
37
|
}
|
|
38
38
|
function _get_outputFile__pta58u($this) {
|
|
39
|
-
return $this.
|
|
39
|
+
return $this.e30_1.p2w($this, outputFile$factory_0());
|
|
40
40
|
}
|
|
41
41
|
function _get_label__euqgmb($this) {
|
|
42
|
-
return $this.
|
|
42
|
+
return $this.f30_1.p2w($this, label$factory_0());
|
|
43
43
|
}
|
|
44
44
|
function _get_majorRegex__5j6ypp($this) {
|
|
45
|
-
return $this.
|
|
45
|
+
return $this.g30_1.p2w($this, majorRegex$factory_0());
|
|
46
46
|
}
|
|
47
47
|
function _get_minorRegex__20z96h($this) {
|
|
48
|
-
return $this.
|
|
48
|
+
return $this.h30_1.p2w($this, minorRegex$factory_0());
|
|
49
49
|
}
|
|
50
50
|
function _get_patchRegex__mtlu2c($this) {
|
|
51
|
-
return $this.
|
|
51
|
+
return $this.i30_1.p2w($this, patchRegex$factory_0());
|
|
52
52
|
}
|
|
53
53
|
function _get_noneRegex__1tdbgi($this) {
|
|
54
|
-
return $this.
|
|
54
|
+
return $this.j30_1.p2w($this, noneRegex$factory_0());
|
|
55
55
|
}
|
|
56
56
|
function _get_storyIdRegex__auqux8($this) {
|
|
57
|
-
return $this.
|
|
57
|
+
return $this.k30_1.p2w($this, storyIdRegex$factory_0());
|
|
58
58
|
}
|
|
59
59
|
function _get_easeRegex__pf594o($this) {
|
|
60
|
-
return $this.
|
|
60
|
+
return $this.l30_1.p2w($this, easeRegex$factory_0());
|
|
61
61
|
}
|
|
62
62
|
function _get_core__d4zfrg($this) {
|
|
63
63
|
// Inline function 'kotlin.text.ifBlank' call
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
tmp_2 = Regex_init_$Create$(tmp0_safe_receiver);
|
|
82
82
|
}
|
|
83
83
|
var tmp1_elvis_lhs = tmp_2;
|
|
84
|
-
var tmp_3 = tmp1_elvis_lhs == null ? Defaults_getInstance().
|
|
84
|
+
var tmp_3 = tmp1_elvis_lhs == null ? Defaults_getInstance().u18_1 : tmp1_elvis_lhs;
|
|
85
85
|
var tmp2_safe_receiver = _get_minorRegex__20z96h($this);
|
|
86
86
|
var tmp_4;
|
|
87
87
|
if (tmp2_safe_receiver == null) {
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
tmp_4 = Regex_init_$Create$(tmp2_safe_receiver);
|
|
93
93
|
}
|
|
94
94
|
var tmp3_elvis_lhs = tmp_4;
|
|
95
|
-
var tmp_5 = tmp3_elvis_lhs == null ? Defaults_getInstance().
|
|
95
|
+
var tmp_5 = tmp3_elvis_lhs == null ? Defaults_getInstance().v18_1 : tmp3_elvis_lhs;
|
|
96
96
|
var tmp4_safe_receiver = _get_patchRegex__mtlu2c($this);
|
|
97
97
|
var tmp_6;
|
|
98
98
|
if (tmp4_safe_receiver == null) {
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
tmp_6 = Regex_init_$Create$(tmp4_safe_receiver);
|
|
104
104
|
}
|
|
105
105
|
var tmp5_elvis_lhs = tmp_6;
|
|
106
|
-
var tmp_7 = tmp5_elvis_lhs == null ? Defaults_getInstance().
|
|
106
|
+
var tmp_7 = tmp5_elvis_lhs == null ? Defaults_getInstance().w18_1 : tmp5_elvis_lhs;
|
|
107
107
|
var tmp6_safe_receiver = _get_noneRegex__1tdbgi($this);
|
|
108
108
|
var tmp_8;
|
|
109
109
|
if (tmp6_safe_receiver == null) {
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
tmp_8 = Regex_init_$Create$(tmp6_safe_receiver);
|
|
115
115
|
}
|
|
116
116
|
var tmp7_elvis_lhs = tmp_8;
|
|
117
|
-
var tmp_9 = tmp7_elvis_lhs == null ? Defaults_getInstance().
|
|
117
|
+
var tmp_9 = tmp7_elvis_lhs == null ? Defaults_getInstance().x18_1 : tmp7_elvis_lhs;
|
|
118
118
|
var tmp8_safe_receiver = _get_storyIdRegex__auqux8($this);
|
|
119
119
|
var tmp_10;
|
|
120
120
|
if (tmp8_safe_receiver == null) {
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
tmp_10 = Regex_init_$Create$(tmp8_safe_receiver);
|
|
126
126
|
}
|
|
127
127
|
var tmp9_elvis_lhs = tmp_10;
|
|
128
|
-
var tmp_11 = tmp9_elvis_lhs == null ? Defaults_getInstance().
|
|
128
|
+
var tmp_11 = tmp9_elvis_lhs == null ? Defaults_getInstance().y18_1 : tmp9_elvis_lhs;
|
|
129
129
|
var tmp10_safe_receiver = _get_easeRegex__pf594o($this);
|
|
130
130
|
var tmp_12;
|
|
131
131
|
if (tmp10_safe_receiver == null) {
|
|
@@ -136,26 +136,26 @@
|
|
|
136
136
|
tmp_12 = Regex_init_$Create$(tmp10_safe_receiver);
|
|
137
137
|
}
|
|
138
138
|
var tmp11_elvis_lhs = tmp_12;
|
|
139
|
-
return new DiggerCore(tmp_0, tmp_1, new MessageDigger(tmp_3, tmp_5, tmp_7, tmp_9, tmp_11, tmp11_elvis_lhs == null ? Defaults_getInstance().
|
|
139
|
+
return new DiggerCore(tmp_0, tmp_1, new MessageDigger(tmp_3, tmp_5, tmp_7, tmp_9, tmp_11, tmp11_elvis_lhs == null ? Defaults_getInstance().z18_1 : tmp11_elvis_lhs));
|
|
140
140
|
}
|
|
141
141
|
function AllContributionData() {
|
|
142
142
|
CliktCommand.call(this);
|
|
143
|
-
this.
|
|
144
|
-
this.
|
|
145
|
-
this.
|
|
146
|
-
this.
|
|
147
|
-
this.
|
|
148
|
-
this.
|
|
149
|
-
this.
|
|
150
|
-
this.
|
|
151
|
-
this.
|
|
152
|
-
}
|
|
153
|
-
protoOf(AllContributionData).
|
|
143
|
+
this.d30_1 = argument(this, 'git-repo').r2w(this, dir$factory());
|
|
144
|
+
this.e30_1 = default_0(option(this, []), 'allContributionData.json').c2x(this, outputFile$factory());
|
|
145
|
+
this.f30_1 = default_0(option(this, []), '').c2x(this, label$factory());
|
|
146
|
+
this.g30_1 = option(this, []).c2x(this, majorRegex$factory());
|
|
147
|
+
this.h30_1 = option(this, []).c2x(this, minorRegex$factory());
|
|
148
|
+
this.i30_1 = option(this, []).c2x(this, patchRegex$factory());
|
|
149
|
+
this.j30_1 = option(this, []).c2x(this, noneRegex$factory());
|
|
150
|
+
this.k30_1 = option(this, []).c2x(this, storyIdRegex$factory());
|
|
151
|
+
this.l30_1 = option(this, []).c2x(this, easeRegex$factory());
|
|
152
|
+
}
|
|
153
|
+
protoOf(AllContributionData).f2o = function () {
|
|
154
154
|
// Inline function 'kotlin.also' call
|
|
155
|
-
writeToFile(toJsonString(_get_core__d4zfrg(this).
|
|
155
|
+
writeToFile(toJsonString(_get_core__d4zfrg(this).t18()), _get_outputFile__pta58u(this));
|
|
156
156
|
// Inline function 'kotlin.contracts.contract' call
|
|
157
157
|
// Inline function 'com.zegreatrob.tools.digger.cli.AllContributionData.run.<anonymous>' call
|
|
158
|
-
this.
|
|
158
|
+
this.y2n('Data written to ' + _get_outputFile__pta58u(this));
|
|
159
159
|
return Unit_instance;
|
|
160
160
|
};
|
|
161
161
|
function dir$factory() {
|
|
@@ -249,31 +249,31 @@
|
|
|
249
249
|
}, null);
|
|
250
250
|
}
|
|
251
251
|
function _get_dir__e67350_0($this) {
|
|
252
|
-
return $this.
|
|
252
|
+
return $this.d31_1.p2w($this, dir$factory_2());
|
|
253
253
|
}
|
|
254
254
|
function _get_outputFile__pta58u_0($this) {
|
|
255
|
-
return $this.
|
|
255
|
+
return $this.e31_1.p2w($this, outputFile$factory_2());
|
|
256
256
|
}
|
|
257
257
|
function _get_label__euqgmb_0($this) {
|
|
258
|
-
return $this.
|
|
258
|
+
return $this.f31_1.p2w($this, label$factory_2());
|
|
259
259
|
}
|
|
260
260
|
function _get_majorRegex__5j6ypp_0($this) {
|
|
261
|
-
return $this.
|
|
261
|
+
return $this.g31_1.p2w($this, majorRegex$factory_2());
|
|
262
262
|
}
|
|
263
263
|
function _get_minorRegex__20z96h_0($this) {
|
|
264
|
-
return $this.
|
|
264
|
+
return $this.h31_1.p2w($this, minorRegex$factory_2());
|
|
265
265
|
}
|
|
266
266
|
function _get_patchRegex__mtlu2c_0($this) {
|
|
267
|
-
return $this.
|
|
267
|
+
return $this.i31_1.p2w($this, patchRegex$factory_2());
|
|
268
268
|
}
|
|
269
269
|
function _get_noneRegex__1tdbgi_0($this) {
|
|
270
|
-
return $this.
|
|
270
|
+
return $this.j31_1.p2w($this, noneRegex$factory_2());
|
|
271
271
|
}
|
|
272
272
|
function _get_storyIdRegex__auqux8_0($this) {
|
|
273
|
-
return $this.
|
|
273
|
+
return $this.k31_1.p2w($this, storyIdRegex$factory_2());
|
|
274
274
|
}
|
|
275
275
|
function _get_easeRegex__pf594o_0($this) {
|
|
276
|
-
return $this.
|
|
276
|
+
return $this.l31_1.p2w($this, easeRegex$factory_2());
|
|
277
277
|
}
|
|
278
278
|
function _get_core__d4zfrg_0($this) {
|
|
279
279
|
// Inline function 'kotlin.text.ifBlank' call
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
tmp_2 = Regex_init_$Create$(tmp0_safe_receiver);
|
|
298
298
|
}
|
|
299
299
|
var tmp1_elvis_lhs = tmp_2;
|
|
300
|
-
var tmp_3 = tmp1_elvis_lhs == null ? Defaults_getInstance().
|
|
300
|
+
var tmp_3 = tmp1_elvis_lhs == null ? Defaults_getInstance().u18_1 : tmp1_elvis_lhs;
|
|
301
301
|
var tmp2_safe_receiver = _get_minorRegex__20z96h_0($this);
|
|
302
302
|
var tmp_4;
|
|
303
303
|
if (tmp2_safe_receiver == null) {
|
|
@@ -308,7 +308,7 @@
|
|
|
308
308
|
tmp_4 = Regex_init_$Create$(tmp2_safe_receiver);
|
|
309
309
|
}
|
|
310
310
|
var tmp3_elvis_lhs = tmp_4;
|
|
311
|
-
var tmp_5 = tmp3_elvis_lhs == null ? Defaults_getInstance().
|
|
311
|
+
var tmp_5 = tmp3_elvis_lhs == null ? Defaults_getInstance().v18_1 : tmp3_elvis_lhs;
|
|
312
312
|
var tmp4_safe_receiver = _get_patchRegex__mtlu2c_0($this);
|
|
313
313
|
var tmp_6;
|
|
314
314
|
if (tmp4_safe_receiver == null) {
|
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
tmp_6 = Regex_init_$Create$(tmp4_safe_receiver);
|
|
320
320
|
}
|
|
321
321
|
var tmp5_elvis_lhs = tmp_6;
|
|
322
|
-
var tmp_7 = tmp5_elvis_lhs == null ? Defaults_getInstance().
|
|
322
|
+
var tmp_7 = tmp5_elvis_lhs == null ? Defaults_getInstance().w18_1 : tmp5_elvis_lhs;
|
|
323
323
|
var tmp6_safe_receiver = _get_noneRegex__1tdbgi_0($this);
|
|
324
324
|
var tmp_8;
|
|
325
325
|
if (tmp6_safe_receiver == null) {
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
tmp_8 = Regex_init_$Create$(tmp6_safe_receiver);
|
|
331
331
|
}
|
|
332
332
|
var tmp7_elvis_lhs = tmp_8;
|
|
333
|
-
var tmp_9 = tmp7_elvis_lhs == null ? Defaults_getInstance().
|
|
333
|
+
var tmp_9 = tmp7_elvis_lhs == null ? Defaults_getInstance().x18_1 : tmp7_elvis_lhs;
|
|
334
334
|
var tmp8_safe_receiver = _get_storyIdRegex__auqux8_0($this);
|
|
335
335
|
var tmp_10;
|
|
336
336
|
if (tmp8_safe_receiver == null) {
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
tmp_10 = Regex_init_$Create$(tmp8_safe_receiver);
|
|
342
342
|
}
|
|
343
343
|
var tmp9_elvis_lhs = tmp_10;
|
|
344
|
-
var tmp_11 = tmp9_elvis_lhs == null ? Defaults_getInstance().
|
|
344
|
+
var tmp_11 = tmp9_elvis_lhs == null ? Defaults_getInstance().y18_1 : tmp9_elvis_lhs;
|
|
345
345
|
var tmp10_safe_receiver = _get_easeRegex__pf594o_0($this);
|
|
346
346
|
var tmp_12;
|
|
347
347
|
if (tmp10_safe_receiver == null) {
|
|
@@ -352,26 +352,26 @@
|
|
|
352
352
|
tmp_12 = Regex_init_$Create$(tmp10_safe_receiver);
|
|
353
353
|
}
|
|
354
354
|
var tmp11_elvis_lhs = tmp_12;
|
|
355
|
-
return new DiggerCore(tmp_0, tmp_1, new MessageDigger(tmp_3, tmp_5, tmp_7, tmp_9, tmp_11, tmp11_elvis_lhs == null ? Defaults_getInstance().
|
|
355
|
+
return new DiggerCore(tmp_0, tmp_1, new MessageDigger(tmp_3, tmp_5, tmp_7, tmp_9, tmp_11, tmp11_elvis_lhs == null ? Defaults_getInstance().z18_1 : tmp11_elvis_lhs));
|
|
356
356
|
}
|
|
357
357
|
function CurrentContributionData() {
|
|
358
358
|
CliktCommand.call(this);
|
|
359
|
-
this.
|
|
360
|
-
this.
|
|
361
|
-
this.
|
|
362
|
-
this.
|
|
363
|
-
this.
|
|
364
|
-
this.
|
|
365
|
-
this.
|
|
366
|
-
this.
|
|
367
|
-
this.
|
|
368
|
-
}
|
|
369
|
-
protoOf(CurrentContributionData).
|
|
359
|
+
this.d31_1 = argument(this, 'git-repo').r2w(this, dir$factory_1());
|
|
360
|
+
this.e31_1 = default_0(option(this, []), 'currentContributionData.json').c2x(this, outputFile$factory_1());
|
|
361
|
+
this.f31_1 = default_0(option(this, []), '').c2x(this, label$factory_1());
|
|
362
|
+
this.g31_1 = option(this, []).c2x(this, majorRegex$factory_1());
|
|
363
|
+
this.h31_1 = option(this, []).c2x(this, minorRegex$factory_1());
|
|
364
|
+
this.i31_1 = option(this, []).c2x(this, patchRegex$factory_1());
|
|
365
|
+
this.j31_1 = option(this, []).c2x(this, noneRegex$factory_1());
|
|
366
|
+
this.k31_1 = option(this, []).c2x(this, storyIdRegex$factory_1());
|
|
367
|
+
this.l31_1 = option(this, []).c2x(this, easeRegex$factory_1());
|
|
368
|
+
}
|
|
369
|
+
protoOf(CurrentContributionData).f2o = function () {
|
|
370
370
|
// Inline function 'kotlin.also' call
|
|
371
|
-
writeToFile(toJsonString_0(_get_core__d4zfrg_0(this).
|
|
371
|
+
writeToFile(toJsonString_0(_get_core__d4zfrg_0(this).r18()), _get_outputFile__pta58u_0(this));
|
|
372
372
|
// Inline function 'kotlin.contracts.contract' call
|
|
373
373
|
// Inline function 'com.zegreatrob.tools.digger.cli.CurrentContributionData.run.<anonymous>' call
|
|
374
|
-
this.
|
|
374
|
+
this.y2n('Data written to ' + _get_outputFile__pta58u_0(this));
|
|
375
375
|
return Unit_instance;
|
|
376
376
|
};
|
|
377
377
|
function dir$factory_1() {
|
|
@@ -465,13 +465,13 @@
|
|
|
465
465
|
}, null);
|
|
466
466
|
}
|
|
467
467
|
function main(args) {
|
|
468
|
-
return subcommands(subcommands(new Welcome(), [new CurrentContributionData()]), [new AllContributionData()]).
|
|
468
|
+
return subcommands(subcommands(new Welcome(), [new CurrentContributionData()]), [new AllContributionData()]).e2o(platformArgCorrection(args));
|
|
469
469
|
}
|
|
470
470
|
function Welcome() {
|
|
471
471
|
CliktCommand.call(this);
|
|
472
472
|
}
|
|
473
|
-
protoOf(Welcome).
|
|
474
|
-
this.
|
|
473
|
+
protoOf(Welcome).f2o = function () {
|
|
474
|
+
this.y2n('Welcome to Digger CLI.');
|
|
475
475
|
};
|
|
476
476
|
function get_fs() {
|
|
477
477
|
_init_properties_CurrentContributionData_js_kt__l41kec();
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.i4;
|
|
7
7
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l;
|
|
8
8
|
var Unit_instance = kotlin_kotlin.$_$.l3;
|
|
9
|
-
var toSet = kotlin_kotlin.$_$.
|
|
9
|
+
var toSet = kotlin_kotlin.$_$.f7;
|
|
10
10
|
var minus = kotlin_kotlin.$_$.z5;
|
|
11
|
-
var to = kotlin_kotlin.$_$.
|
|
11
|
+
var to = kotlin_kotlin.$_$.id;
|
|
12
12
|
var first = kotlin_kotlin.$_$.z4;
|
|
13
13
|
var reversed = kotlin_kotlin.$_$.k6;
|
|
14
14
|
var emptyList = kotlin_kotlin.$_$.u4;
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
var plus = kotlin_kotlin.$_$.g6;
|
|
17
17
|
var lastOrNull = kotlin_kotlin.$_$.n5;
|
|
18
18
|
var setOf = kotlin_kotlin.$_$.l6;
|
|
19
|
-
var numberRangeToNumber = kotlin_kotlin.$_$.
|
|
19
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.v8;
|
|
20
20
|
var slice = kotlin_kotlin.$_$.o6;
|
|
21
21
|
var plus_0 = kotlin_kotlin.$_$.e6;
|
|
22
22
|
var VOID = kotlin_kotlin.$_$.g;
|
|
23
23
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
24
24
|
var Collection = kotlin_kotlin.$_$.n3;
|
|
25
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
25
|
+
var isInterface = kotlin_kotlin.$_$.q8;
|
|
26
26
|
var checkCountOverflow = kotlin_kotlin.$_$.g4;
|
|
27
27
|
var max = kotlin_kotlin.$_$.x5;
|
|
28
28
|
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
29
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
29
|
+
var compareTo = kotlin_kotlin.$_$.z7;
|
|
30
30
|
var last = kotlin_kotlin.$_$.q5;
|
|
31
31
|
var firstOrNull = kotlin_kotlin.$_$.y4;
|
|
32
32
|
var emptySet = kotlin_kotlin.$_$.w4;
|
|
@@ -34,70 +34,67 @@
|
|
|
34
34
|
var plus_2 = kotlin_kotlin.$_$.d6;
|
|
35
35
|
var listOf = kotlin_kotlin.$_$.s5;
|
|
36
36
|
var mapCapacity = kotlin_kotlin.$_$.u5;
|
|
37
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
37
|
+
var coerceAtLeast = kotlin_kotlin.$_$.k9;
|
|
38
38
|
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.r;
|
|
39
39
|
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.o1;
|
|
40
40
|
var mutableListOf = kotlin_kotlin.$_$.a6;
|
|
41
|
-
var println = kotlin_kotlin.$_$.
|
|
41
|
+
var println = kotlin_kotlin.$_$.n7;
|
|
42
42
|
var removeLast = kotlin_kotlin.$_$.j6;
|
|
43
|
-
var equals = kotlin_kotlin.$_$.
|
|
44
|
-
var Pair = kotlin_kotlin.$_$.
|
|
43
|
+
var equals = kotlin_kotlin.$_$.a8;
|
|
44
|
+
var Pair = kotlin_kotlin.$_$.kc;
|
|
45
45
|
var Exception_init_$Create$ = kotlin_kotlin.$_$.c1;
|
|
46
46
|
var removeAll = kotlin_kotlin.$_$.h6;
|
|
47
|
-
var print = kotlin_kotlin.$_$.
|
|
48
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
49
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
50
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
51
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
52
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
53
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
47
|
+
var print = kotlin_kotlin.$_$.p7;
|
|
48
|
+
var protoOf = kotlin_kotlin.$_$.c9;
|
|
49
|
+
var getStringHashCode = kotlin_kotlin.$_$.f8;
|
|
50
|
+
var hashCode = kotlin_kotlin.$_$.g8;
|
|
51
|
+
var THROW_CCE = kotlin_kotlin.$_$.nc;
|
|
52
|
+
var classMeta = kotlin_kotlin.$_$.y7;
|
|
53
|
+
var setMetadataFor = kotlin_kotlin.$_$.d9;
|
|
54
54
|
var maxOrNull = kotlin_kotlin.$_$.w5;
|
|
55
55
|
var Contribution = kotlin_com_zegreatrob_tools_digger_model.$_$.a;
|
|
56
56
|
var listOf_0 = kotlin_kotlin.$_$.t5;
|
|
57
57
|
var sorted = kotlin_kotlin.$_$.s6;
|
|
58
|
-
var toList = kotlin_kotlin.$_$.
|
|
58
|
+
var toList = kotlin_kotlin.$_$.a7;
|
|
59
59
|
var joinToString = kotlin_kotlin.$_$.h5;
|
|
60
|
-
var sortedWith = kotlin_kotlin.$_$.r6;
|
|
61
60
|
var getOrNull = kotlin_kotlin.$_$.c5;
|
|
62
|
-
var
|
|
63
|
-
var
|
|
64
|
-
var
|
|
65
|
-
var charSequenceLength = kotlin_kotlin.$_$.v7;
|
|
61
|
+
var take = kotlin_kotlin.$_$.w6;
|
|
62
|
+
var split = kotlin_kotlin.$_$.lb;
|
|
63
|
+
var charSequenceLength = kotlin_kotlin.$_$.w7;
|
|
66
64
|
var Companion_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.b;
|
|
67
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
68
|
-
var trim = kotlin_kotlin.$_$.
|
|
69
|
-
var toString = kotlin_kotlin.$_$.
|
|
65
|
+
var isCharSequence = kotlin_kotlin.$_$.m8;
|
|
66
|
+
var trim = kotlin_kotlin.$_$.yb;
|
|
67
|
+
var toString = kotlin_kotlin.$_$.f9;
|
|
70
68
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
71
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
69
|
+
var objectMeta = kotlin_kotlin.$_$.b9;
|
|
72
70
|
var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
73
|
-
var contains = kotlin_kotlin.$_$.
|
|
71
|
+
var contains = kotlin_kotlin.$_$.ia;
|
|
74
72
|
var mapOf = kotlin_kotlin.$_$.v5;
|
|
75
73
|
var RegexOption_IGNORE_CASE_getInstance = kotlin_kotlin.$_$.h;
|
|
76
74
|
var RegexOption_MULTILINE_getInstance = kotlin_kotlin.$_$.i;
|
|
77
75
|
var setOf_0 = kotlin_kotlin.$_$.m6;
|
|
78
|
-
var Regex = kotlin_kotlin.$_$.
|
|
79
|
-
var firstOrNull_0 = kotlin_kotlin.$_$.
|
|
80
|
-
var lastIndexOf = kotlin_kotlin.$_$.
|
|
81
|
-
var Char = kotlin_kotlin.$_$.
|
|
76
|
+
var Regex = kotlin_kotlin.$_$.ea;
|
|
77
|
+
var firstOrNull_0 = kotlin_kotlin.$_$.na;
|
|
78
|
+
var lastIndexOf = kotlin_kotlin.$_$.za;
|
|
79
|
+
var Char = kotlin_kotlin.$_$.bc;
|
|
82
80
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.t1;
|
|
83
|
-
var mapNotNull = kotlin_kotlin.$_$.
|
|
84
|
-
var toList_0 = kotlin_kotlin.$_$.
|
|
85
|
-
var maxOrNull_0 = kotlin_kotlin.$_$.
|
|
86
|
-
var get = kotlin_kotlin.$_$.
|
|
87
|
-
var toIntOrNull = kotlin_kotlin.$_$.
|
|
81
|
+
var mapNotNull = kotlin_kotlin.$_$.aa;
|
|
82
|
+
var toList_0 = kotlin_kotlin.$_$.da;
|
|
83
|
+
var maxOrNull_0 = kotlin_kotlin.$_$.ca;
|
|
84
|
+
var get = kotlin_kotlin.$_$.pa;
|
|
85
|
+
var toIntOrNull = kotlin_kotlin.$_$.sb;
|
|
88
86
|
var Companion_instance = kotlin_kotlin.$_$.g3;
|
|
89
87
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.x1;
|
|
90
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
88
|
+
var createFailure = kotlin_kotlin.$_$.ad;
|
|
91
89
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.a2;
|
|
92
90
|
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.y1;
|
|
93
|
-
var Enum = kotlin_kotlin.$_$.
|
|
91
|
+
var Enum = kotlin_kotlin.$_$.fc;
|
|
94
92
|
var copyToArray = kotlin_kotlin.$_$.q4;
|
|
95
|
-
var json = kotlin_kotlin.$_$.
|
|
93
|
+
var json = kotlin_kotlin.$_$.u8;
|
|
96
94
|
//endregion
|
|
97
95
|
//region block: pre-declaration
|
|
98
96
|
setMetadataFor(CommitInspectionResult, 'CommitInspectionResult', classMeta);
|
|
99
97
|
setMetadataFor(CommitRef, 'CommitRef', classMeta);
|
|
100
|
-
setMetadataFor(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', classMeta, VOID, [Comparator]);
|
|
101
98
|
setMetadataFor(DiggerCore, 'DiggerCore', classMeta);
|
|
102
99
|
setMetadataFor(DiggerGitWrapper, 'DiggerGitWrapper', classMeta);
|
|
103
100
|
setMetadataFor(MessageDigResult, 'MessageDigResult', classMeta);
|
|
@@ -850,97 +847,56 @@
|
|
|
850
847
|
}
|
|
851
848
|
return tmp;
|
|
852
849
|
}
|
|
853
|
-
function
|
|
854
|
-
return findRelatedTag(_this__u8e3s4, _this__u8e3s4.n18());
|
|
855
|
-
}
|
|
856
|
-
function findRelatedTag(_this__u8e3s4, headCommitId) {
|
|
857
|
-
// Inline function 'kotlin.collections.find' call
|
|
858
|
-
var this_0 = _this__u8e3s4.o17();
|
|
859
|
-
var tmp$ret$1;
|
|
860
|
-
$l$block: {
|
|
861
|
-
// Inline function 'kotlin.collections.firstOrNull' call
|
|
862
|
-
var tmp0_iterator = this_0.r();
|
|
863
|
-
while (tmp0_iterator.s()) {
|
|
864
|
-
var element = tmp0_iterator.u();
|
|
865
|
-
// Inline function 'com.zegreatrob.tools.digger.core.findRelatedTag.<anonymous>' call
|
|
866
|
-
if (element.w17_1 === headCommitId) {
|
|
867
|
-
tmp$ret$1 = element;
|
|
868
|
-
break $l$block;
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
tmp$ret$1 = null;
|
|
872
|
-
}
|
|
873
|
-
return tmp$ret$1;
|
|
874
|
-
}
|
|
875
|
-
function currentContributionCommits(_this__u8e3s4) {
|
|
876
|
-
var tag = previousTag(_this__u8e3s4);
|
|
850
|
+
function currentContributionCommits(_this__u8e3s4, previousTag) {
|
|
877
851
|
var tmp;
|
|
878
|
-
if (
|
|
852
|
+
if (previousTag == null) {
|
|
879
853
|
tmp = _this__u8e3s4.n17();
|
|
880
854
|
} else {
|
|
881
|
-
|
|
855
|
+
tmp = _this__u8e3s4.n18(previousTag.v17_1, 'HEAD');
|
|
882
856
|
}
|
|
883
857
|
return tmp;
|
|
884
858
|
}
|
|
885
|
-
function
|
|
886
|
-
// Inline function 'kotlin.
|
|
887
|
-
|
|
888
|
-
// Inline function '
|
|
889
|
-
var
|
|
890
|
-
var tmp
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
var tmp_0;
|
|
894
|
-
if ((tag == null ? null : tag.w17_1) === _this__u8e3s4.n18()) {
|
|
895
|
-
tmp_0 = getOrNull(tagList, 1);
|
|
859
|
+
function currentRelevantTags($this, headCommitId, lastTwoTags) {
|
|
860
|
+
// Inline function 'kotlin.let' call
|
|
861
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
862
|
+
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.currentRelevantTags.<anonymous>' call
|
|
863
|
+
var latestTag = getOrNull(lastTwoTags, 0);
|
|
864
|
+
var tmp;
|
|
865
|
+
if ((latestTag == null ? null : latestTag.w17_1) === headCommitId) {
|
|
866
|
+
tmp = to(latestTag, getOrNull(lastTwoTags, 1));
|
|
896
867
|
} else {
|
|
897
|
-
|
|
868
|
+
tmp = to(null, latestTag);
|
|
898
869
|
}
|
|
899
|
-
return
|
|
900
|
-
}
|
|
901
|
-
function sam$kotlin_Comparator$0(function_0) {
|
|
902
|
-
this.p18_1 = function_0;
|
|
903
|
-
}
|
|
904
|
-
protoOf(sam$kotlin_Comparator$0).r9 = function (a, b) {
|
|
905
|
-
return this.p18_1(a, b);
|
|
906
|
-
};
|
|
907
|
-
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
908
|
-
return this.r9(a, b);
|
|
909
|
-
};
|
|
910
|
-
function previousTag$lambda(a, b) {
|
|
911
|
-
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
912
|
-
// Inline function 'com.zegreatrob.tools.digger.core.previousTag.<anonymous>' call
|
|
913
|
-
var tmp = b.x17_1;
|
|
914
|
-
// Inline function 'com.zegreatrob.tools.digger.core.previousTag.<anonymous>' call
|
|
915
|
-
var tmp$ret$1 = a.x17_1;
|
|
916
|
-
return compareValues(tmp, tmp$ret$1);
|
|
870
|
+
return tmp;
|
|
917
871
|
}
|
|
918
872
|
function DiggerCore(label, gitWrapper, messageDigger) {
|
|
919
|
-
this.
|
|
920
|
-
this.
|
|
921
|
-
this.
|
|
873
|
+
this.o18_1 = label;
|
|
874
|
+
this.p18_1 = gitWrapper;
|
|
875
|
+
this.q18_1 = messageDigger;
|
|
922
876
|
}
|
|
923
|
-
protoOf(DiggerCore).
|
|
877
|
+
protoOf(DiggerCore).r18 = function () {
|
|
924
878
|
// Inline function 'kotlin.with' call
|
|
925
879
|
// Inline function 'kotlin.contracts.contract' call
|
|
926
880
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.currentContributionData.<anonymous>' call
|
|
927
|
-
var $this$with = this.
|
|
928
|
-
var
|
|
929
|
-
var
|
|
930
|
-
var
|
|
931
|
-
|
|
881
|
+
var $this$with = this.p18_1;
|
|
882
|
+
var tmp0_container = currentRelevantTags(this, $this$with.s18(), take($this$with.o17(), 2));
|
|
883
|
+
var currentTag = tmp0_container.a6();
|
|
884
|
+
var previousTag = tmp0_container.b6();
|
|
885
|
+
var tmp = contribution(this.q18_1, currentContributionCommits($this$with, previousTag));
|
|
886
|
+
var tmp_0 = currentTag == null ? null : currentTag.v17_1;
|
|
887
|
+
return tmp.j17(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.o18_1, tmp_0, currentTag == null ? null : currentTag.x17_1);
|
|
932
888
|
};
|
|
933
|
-
protoOf(DiggerCore).
|
|
889
|
+
protoOf(DiggerCore).t18 = function () {
|
|
934
890
|
// Inline function 'kotlin.collections.map' call
|
|
935
891
|
// Inline function 'kotlin.collections.map' call
|
|
936
|
-
var this_0 = allContributionCommits(this.
|
|
892
|
+
var this_0 = allContributionCommits(this.p18_1);
|
|
937
893
|
// Inline function 'kotlin.collections.mapTo' call
|
|
938
894
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
939
895
|
var tmp0_iterator = this_0.r();
|
|
940
896
|
while (tmp0_iterator.s()) {
|
|
941
897
|
var item = tmp0_iterator.u();
|
|
942
898
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.allContributionData.<anonymous>' call
|
|
943
|
-
var tmp$ret$0 = to(item.y5_1, contribution(this.
|
|
899
|
+
var tmp$ret$0 = to(item.y5_1, contribution(this.q18_1, toList(item.z5_1)));
|
|
944
900
|
destination.o(tmp$ret$0);
|
|
945
901
|
}
|
|
946
902
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -952,7 +908,7 @@
|
|
|
952
908
|
var tag = item_0.a6();
|
|
953
909
|
var contribution_0 = item_0.b6();
|
|
954
910
|
var tmp = tag == null ? null : tag.v17_1;
|
|
955
|
-
var tmp$ret$3 = contribution_0.j17(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
911
|
+
var tmp$ret$3 = contribution_0.j17(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.o18_1, tmp, tag == null ? null : tag.x17_1);
|
|
956
912
|
destination_0.o(tmp$ret$3);
|
|
957
913
|
}
|
|
958
914
|
return destination_0;
|
|
@@ -1006,10 +962,10 @@
|
|
|
1006
962
|
this.l17_1 = '--------!--------';
|
|
1007
963
|
this.m17_1 = '%H%n%ae%n%ce%n%aI%n%P%n%B%n' + this.l17_1;
|
|
1008
964
|
}
|
|
1009
|
-
protoOf(DiggerGitWrapper).
|
|
1010
|
-
var outputText = runProcess(listOf_0(['git', '--no-pager', 'rev-parse', 'HEAD']), this.k17_1);
|
|
965
|
+
protoOf(DiggerGitWrapper).s18 = function () {
|
|
1011
966
|
// Inline function 'kotlin.text.trim' call
|
|
1012
|
-
|
|
967
|
+
var this_0 = runProcess(listOf_0(['git', '--no-pager', 'rev-parse', 'HEAD']), this.k17_1);
|
|
968
|
+
return toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
1013
969
|
};
|
|
1014
970
|
protoOf(DiggerGitWrapper).o17 = function () {
|
|
1015
971
|
var outputText = runProcess(listOf_0(['git', '--no-pager', 'tag', '--list', '--sort=-taggerdate', '--format=%(refname:strip=2),%(*objectname),%(creatordate:iso-strict)']), this.k17_1);
|
|
@@ -1045,7 +1001,7 @@
|
|
|
1045
1001
|
protoOf(DiggerGitWrapper).n17 = function () {
|
|
1046
1002
|
return parseLog(this, runProcess(listOf_0(['git', '--no-pager', 'log', '--format=' + this.m17_1]), this.k17_1));
|
|
1047
1003
|
};
|
|
1048
|
-
protoOf(DiggerGitWrapper).
|
|
1004
|
+
protoOf(DiggerGitWrapper).n18 = function (begin, end) {
|
|
1049
1005
|
return parseLog(this, runProcess(listOf_0(['git', '--no-pager', 'log', '--format=' + this.m17_1, begin + '..' + end]), this.k17_1));
|
|
1050
1006
|
};
|
|
1051
1007
|
function MessageDigResult(storyId, ease, coauthors, semver) {
|
|
@@ -1082,12 +1038,12 @@
|
|
|
1082
1038
|
};
|
|
1083
1039
|
function Defaults() {
|
|
1084
1040
|
Defaults_instance = this;
|
|
1085
|
-
this.
|
|
1086
|
-
this.
|
|
1087
|
-
this.
|
|
1088
|
-
this.
|
|
1089
|
-
this.
|
|
1090
|
-
this.
|
|
1041
|
+
this.u18_1 = Regex_init_$Create$('\\[major\\]');
|
|
1042
|
+
this.v18_1 = Regex_init_$Create$('\\[minor\\]');
|
|
1043
|
+
this.w18_1 = Regex_init_$Create$('\\[patch\\]');
|
|
1044
|
+
this.x18_1 = Regex_init_$Create$('\\[none\\]');
|
|
1045
|
+
this.y18_1 = Regex_init_$Create$('\\[(?<storyId>.*?)\\]');
|
|
1046
|
+
this.z18_1 = Regex_init_$Create$('-(?<ease>[1-5])-');
|
|
1091
1047
|
}
|
|
1092
1048
|
var Defaults_instance;
|
|
1093
1049
|
function Defaults_getInstance() {
|
|
@@ -1096,12 +1052,12 @@
|
|
|
1096
1052
|
return Defaults_instance;
|
|
1097
1053
|
}
|
|
1098
1054
|
function MessageDigger(majorRegex, minorRegex, patchRegex, noneRegex, storyIdRegex, easeRegex) {
|
|
1099
|
-
majorRegex = majorRegex === VOID ? Defaults_getInstance().
|
|
1100
|
-
minorRegex = minorRegex === VOID ? Defaults_getInstance().
|
|
1101
|
-
patchRegex = patchRegex === VOID ? Defaults_getInstance().
|
|
1102
|
-
noneRegex = noneRegex === VOID ? Defaults_getInstance().
|
|
1103
|
-
storyIdRegex = storyIdRegex === VOID ? Defaults_getInstance().
|
|
1104
|
-
easeRegex = easeRegex === VOID ? Defaults_getInstance().
|
|
1055
|
+
majorRegex = majorRegex === VOID ? Defaults_getInstance().u18_1 : majorRegex;
|
|
1056
|
+
minorRegex = minorRegex === VOID ? Defaults_getInstance().v18_1 : minorRegex;
|
|
1057
|
+
patchRegex = patchRegex === VOID ? Defaults_getInstance().w18_1 : patchRegex;
|
|
1058
|
+
noneRegex = noneRegex === VOID ? Defaults_getInstance().x18_1 : noneRegex;
|
|
1059
|
+
storyIdRegex = storyIdRegex === VOID ? Defaults_getInstance().y18_1 : storyIdRegex;
|
|
1060
|
+
easeRegex = easeRegex === VOID ? Defaults_getInstance().z18_1 : easeRegex;
|
|
1105
1061
|
if (!contains(storyIdRegex.d8_1, '?<storyId>')) {
|
|
1106
1062
|
throw RuntimeException_init_$Create$('StoryIdRegex must include a storyId group. The regex was: ' + storyIdRegex.d8_1);
|
|
1107
1063
|
}
|