git-semver-tagger 1.4.10
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 +5054 -0
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -0
- package/kotlin/bin/tagger +3 -0
- package/kotlin/clikt-clikt.js +6306 -0
- package/kotlin/clikt-clikt.js.map +1 -0
- package/kotlin/colormath-root-colormath.js +1628 -0
- package/kotlin/colormath-root-colormath.js.map +1 -0
- package/kotlin/kotlin-kotlin-stdlib.js +9047 -0
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -0
- package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +8 -0
- package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +16 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
- package/kotlin/markdown.js +6760 -0
- package/kotlin/markdown.js.map +1 -0
- package/kotlin/mordant-mordant.js +11999 -0
- package/kotlin/mordant-mordant.js.map +1 -0
- package/kotlin/tools-cli-tools.js +37 -0
- package/kotlin/tools-cli-tools.js.map +1 -0
- package/kotlin/tools-digger-core.js +36 -0
- package/kotlin/tools-digger-core.js.map +1 -0
- package/kotlin/tools-digger-model.js +8 -0
- package/kotlin/tools-digger-model.js.map +1 -0
- package/kotlin/tools-git-adapter.js +325 -0
- package/kotlin/tools-git-adapter.js.map +1 -0
- package/kotlin/tools-tagger-cli.js +185 -0
- package/kotlin/tools-tagger-cli.js.map +1 -0
- package/kotlin/tools-tagger-core.js +403 -0
- package/kotlin/tools-tagger-core.js.map +1 -0
- package/package.json +31 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
(function (_, kotlin_kotlin) {
|
|
2
|
+
'use strict';
|
|
3
|
+
//region block: imports
|
|
4
|
+
var until = kotlin_kotlin.$_$.q6;
|
|
5
|
+
var slice = kotlin_kotlin.$_$.h4;
|
|
6
|
+
var copyToArray = kotlin_kotlin.$_$.p2;
|
|
7
|
+
//endregion
|
|
8
|
+
//region block: pre-declaration
|
|
9
|
+
//endregion
|
|
10
|
+
function get_process() {
|
|
11
|
+
_init_properties_PlatformArgCorrection_kt__pjkecv();
|
|
12
|
+
return process;
|
|
13
|
+
}
|
|
14
|
+
var process;
|
|
15
|
+
function platformArgCorrection(args) {
|
|
16
|
+
_init_properties_PlatformArgCorrection_kt__pjkecv();
|
|
17
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
18
|
+
var argv = get_process().argv;
|
|
19
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
20
|
+
var this_0 = slice(argv, until(2, argv.length));
|
|
21
|
+
return copyToArray(this_0);
|
|
22
|
+
}
|
|
23
|
+
var properties_initialized_PlatformArgCorrection_kt_2fo8lr;
|
|
24
|
+
function _init_properties_PlatformArgCorrection_kt__pjkecv() {
|
|
25
|
+
if (!properties_initialized_PlatformArgCorrection_kt_2fo8lr) {
|
|
26
|
+
properties_initialized_PlatformArgCorrection_kt_2fo8lr = true;
|
|
27
|
+
process = require('node:process');
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//region block: exports
|
|
31
|
+
_.$_$ = _.$_$ || {};
|
|
32
|
+
_.$_$.a = platformArgCorrection;
|
|
33
|
+
//endregion
|
|
34
|
+
return _;
|
|
35
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js')));
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=tools-cli-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../cli-tools/src/jsMain/kotlin/com/zegreatrob/tools/cli/PlatformArgCorrection.kt","../../../../../tagger-cli/build/compileSync/js/main/productionExecutable/kotlin/src/jsMainSources/libraries/stdlib/js/src/kotlin/dynamic.kt","../../../../../tagger-cli/build/compileSync/js/main/productionExecutable/kotlin/src/jsMainSources/libraries/stdlib/js/src/kotlin/collectionJs.kt"],"sourcesContent":[null,null,null],"names":["<get-process>","platformArgCorrection","args","argv","<init properties PlatformArgCorrection.kt>"],"mappings":";;;;;;;;;sBAEQA,CAAAA,EAAA;A;IAAA,c;EAA0C,C;;gCAE3CC,CAA0BC,IAA1BD,EAA8D;A;;QACjEE,OCHgF,aDGhFA,CCHwF,I;;iBCGxE,MAAL,IAAK,EAAM,SAExB,IAFwB,CAEnB,MAFmB,CAAN,C;IFChB,OEoBkE,YAAY,MAAZ,C;EFnBtE,C;;4DAPAC,CAAAA,E;;;gBAE0B,OAAJ,CAAY,cAAZ,C;;G;;;;;;;"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
(function (_, kotlin_kotlin) {
|
|
2
|
+
'use strict';
|
|
3
|
+
//region block: imports
|
|
4
|
+
var RegexOption_IGNORE_CASE_getInstance = kotlin_kotlin.$_$.d;
|
|
5
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.n;
|
|
6
|
+
var Regex_init_$Create$_0 = kotlin_kotlin.$_$.m;
|
|
7
|
+
var protoOf = kotlin_kotlin.$_$.d6;
|
|
8
|
+
var objectMeta = kotlin_kotlin.$_$.c6;
|
|
9
|
+
var setMetadataFor = kotlin_kotlin.$_$.e6;
|
|
10
|
+
//endregion
|
|
11
|
+
//region block: pre-declaration
|
|
12
|
+
setMetadataFor(Defaults, 'Defaults', objectMeta);
|
|
13
|
+
//endregion
|
|
14
|
+
function Defaults() {
|
|
15
|
+
Defaults_instance = this;
|
|
16
|
+
this.ct_1 = Regex_init_$Create$('\\[major\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
17
|
+
this.dt_1 = Regex_init_$Create$('\\[minor\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
18
|
+
this.et_1 = Regex_init_$Create$('\\[patch\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
19
|
+
this.ft_1 = Regex_init_$Create$('\\[none\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
20
|
+
this.gt_1 = Regex_init_$Create$_0('\\[(?<storyId>.*?)\\]');
|
|
21
|
+
this.ht_1 = Regex_init_$Create$_0('-(?<ease>[1-5])-');
|
|
22
|
+
}
|
|
23
|
+
var Defaults_instance;
|
|
24
|
+
function Defaults_getInstance() {
|
|
25
|
+
if (Defaults_instance == null)
|
|
26
|
+
new Defaults();
|
|
27
|
+
return Defaults_instance;
|
|
28
|
+
}
|
|
29
|
+
//region block: exports
|
|
30
|
+
_.$_$ = _.$_$ || {};
|
|
31
|
+
_.$_$.a = Defaults_getInstance;
|
|
32
|
+
//endregion
|
|
33
|
+
return _;
|
|
34
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js')));
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=tools-digger-core.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../digger-core/src/commonMain/kotlin/com/zegreatrob/tools/digger/core/MessageDigger.kt"],"sourcesContent":[null],"names":["<init>"],"mappings":";;;;;;;;;;;;;mBAmBIA,CAAAA,EAAA;A;IAEqB,gCAAO,aAAP,wC;IACA,gCAAO,aAAP,wC;IACA,gCAAO,aAAP,wC;IACD,gCAAO,YAAP,wC;IACG,kCAAO,uBAAP,C;IACH,kCAAO,kBAAP,C;EAPpB,C;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_datetime) {
|
|
2
|
+
'use strict';
|
|
3
|
+
//region block: imports
|
|
4
|
+
var imul = Math.imul;
|
|
5
|
+
var protoOf = kotlin_kotlin.$_$.d6;
|
|
6
|
+
var getStringHashCode = kotlin_kotlin.$_$.p5;
|
|
7
|
+
var hashCode = kotlin_kotlin.$_$.q5;
|
|
8
|
+
var THROW_CCE = kotlin_kotlin.$_$.d9;
|
|
9
|
+
var equals = kotlin_kotlin.$_$.k5;
|
|
10
|
+
var classMeta = kotlin_kotlin.$_$.i5;
|
|
11
|
+
var setMetadataFor = kotlin_kotlin.$_$.e6;
|
|
12
|
+
var split = kotlin_kotlin.$_$.e8;
|
|
13
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.h;
|
|
14
|
+
var charSequenceLength = kotlin_kotlin.$_$.g5;
|
|
15
|
+
var Unit_instance = kotlin_kotlin.$_$.v1;
|
|
16
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.j2;
|
|
17
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.g;
|
|
18
|
+
var Companion_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.a;
|
|
19
|
+
var joinToString = kotlin_kotlin.$_$.f3;
|
|
20
|
+
var startsWith = kotlin_kotlin.$_$.f8;
|
|
21
|
+
var listOf = kotlin_kotlin.$_$.r3;
|
|
22
|
+
var emptyList = kotlin_kotlin.$_$.t2;
|
|
23
|
+
var listOf_0 = kotlin_kotlin.$_$.q3;
|
|
24
|
+
var plus = kotlin_kotlin.$_$.z3;
|
|
25
|
+
var isBlank = kotlin_kotlin.$_$.n7;
|
|
26
|
+
var toInt = kotlin_kotlin.$_$.l8;
|
|
27
|
+
var Companion_instance = kotlin_kotlin.$_$.u1;
|
|
28
|
+
var isCharSequence = kotlin_kotlin.$_$.t5;
|
|
29
|
+
var trim = kotlin_kotlin.$_$.q8;
|
|
30
|
+
var toString = kotlin_kotlin.$_$.g6;
|
|
31
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.m1;
|
|
32
|
+
var createFailure = kotlin_kotlin.$_$.g9;
|
|
33
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.p1;
|
|
34
|
+
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.n1;
|
|
35
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.m5;
|
|
36
|
+
var first = kotlin_kotlin.$_$.y2;
|
|
37
|
+
var copyToArray = kotlin_kotlin.$_$.p2;
|
|
38
|
+
var to = kotlin_kotlin.$_$.m9;
|
|
39
|
+
var json = kotlin_kotlin.$_$.v5;
|
|
40
|
+
//endregion
|
|
41
|
+
//region block: pre-declaration
|
|
42
|
+
setMetadataFor(CommitRef, 'CommitRef', classMeta);
|
|
43
|
+
setMetadataFor(GitAdapter, 'GitAdapter', classMeta);
|
|
44
|
+
setMetadataFor(GitStatus, 'GitStatus', classMeta);
|
|
45
|
+
//endregion
|
|
46
|
+
function CommitRef(id, authorEmail, committerEmail, dateTime, parents, fullMessage) {
|
|
47
|
+
this.ls_1 = id;
|
|
48
|
+
this.ms_1 = authorEmail;
|
|
49
|
+
this.ns_1 = committerEmail;
|
|
50
|
+
this.os_1 = dateTime;
|
|
51
|
+
this.ps_1 = parents;
|
|
52
|
+
this.qs_1 = fullMessage;
|
|
53
|
+
}
|
|
54
|
+
protoOf(CommitRef).toString = function () {
|
|
55
|
+
return 'CommitRef(id=' + this.ls_1 + ', authorEmail=' + this.ms_1 + ', committerEmail=' + this.ns_1 + ', dateTime=' + this.os_1 + ', parents=' + this.ps_1 + ', fullMessage=' + this.qs_1 + ')';
|
|
56
|
+
};
|
|
57
|
+
protoOf(CommitRef).hashCode = function () {
|
|
58
|
+
var result = getStringHashCode(this.ls_1);
|
|
59
|
+
result = imul(result, 31) + getStringHashCode(this.ms_1) | 0;
|
|
60
|
+
result = imul(result, 31) + getStringHashCode(this.ns_1) | 0;
|
|
61
|
+
result = imul(result, 31) + this.os_1.hashCode() | 0;
|
|
62
|
+
result = imul(result, 31) + hashCode(this.ps_1) | 0;
|
|
63
|
+
result = imul(result, 31) + getStringHashCode(this.qs_1) | 0;
|
|
64
|
+
return result;
|
|
65
|
+
};
|
|
66
|
+
protoOf(CommitRef).equals = function (other) {
|
|
67
|
+
if (this === other)
|
|
68
|
+
return true;
|
|
69
|
+
if (!(other instanceof CommitRef))
|
|
70
|
+
return false;
|
|
71
|
+
var tmp0_other_with_cast = other instanceof CommitRef ? other : THROW_CCE();
|
|
72
|
+
if (!(this.ls_1 === tmp0_other_with_cast.ls_1))
|
|
73
|
+
return false;
|
|
74
|
+
if (!(this.ms_1 === tmp0_other_with_cast.ms_1))
|
|
75
|
+
return false;
|
|
76
|
+
if (!(this.ns_1 === tmp0_other_with_cast.ns_1))
|
|
77
|
+
return false;
|
|
78
|
+
if (!this.os_1.equals(tmp0_other_with_cast.os_1))
|
|
79
|
+
return false;
|
|
80
|
+
if (!equals(this.ps_1, tmp0_other_with_cast.ps_1))
|
|
81
|
+
return false;
|
|
82
|
+
if (!(this.qs_1 === tmp0_other_with_cast.qs_1))
|
|
83
|
+
return false;
|
|
84
|
+
return true;
|
|
85
|
+
};
|
|
86
|
+
function parseLog($this, outputText) {
|
|
87
|
+
// Inline function 'kotlin.collections.map' call
|
|
88
|
+
// Inline function 'kotlin.collections.filter' call
|
|
89
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
90
|
+
var this_0 = split(outputText, [$this.ss_1 + '\n']);
|
|
91
|
+
var destination = ArrayList_init_$Create$();
|
|
92
|
+
var tmp0_iterator = this_0.r();
|
|
93
|
+
while (tmp0_iterator.s()) {
|
|
94
|
+
var element = tmp0_iterator.u();
|
|
95
|
+
// Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.parseLog.<anonymous>' call
|
|
96
|
+
// Inline function 'kotlin.text.isNotEmpty' call
|
|
97
|
+
if (charSequenceLength(element) > 0) {
|
|
98
|
+
destination.o(element);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
102
|
+
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
103
|
+
var tmp0_iterator_0 = destination.r();
|
|
104
|
+
while (tmp0_iterator_0.s()) {
|
|
105
|
+
var item = tmp0_iterator_0.u();
|
|
106
|
+
// Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.parseLog.<anonymous>' call
|
|
107
|
+
var elements = split(item, ['\n']);
|
|
108
|
+
var tmp = elements.c1(0);
|
|
109
|
+
var tmp_0 = elements.c1(1);
|
|
110
|
+
var tmp_1 = elements.c1(2);
|
|
111
|
+
var tmp_2 = Companion_getInstance().cs(elements.c1(3));
|
|
112
|
+
// Inline function 'kotlin.collections.filter' call
|
|
113
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
114
|
+
var this_1 = split(elements.c1(4), [' ']);
|
|
115
|
+
var destination_1 = ArrayList_init_$Create$();
|
|
116
|
+
var tmp0_iterator_1 = this_1.r();
|
|
117
|
+
while (tmp0_iterator_1.s()) {
|
|
118
|
+
var element_0 = tmp0_iterator_1.u();
|
|
119
|
+
// Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.parseLog.<anonymous>.<anonymous>' call
|
|
120
|
+
// Inline function 'kotlin.text.isNotEmpty' call
|
|
121
|
+
if (charSequenceLength(element_0) > 0) {
|
|
122
|
+
destination_1.o(element_0);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
var tmp$ret$8 = new CommitRef(tmp, tmp_0, tmp_1, tmp_2, destination_1, joinToString(elements.z1(5, elements.l()), '\n'));
|
|
126
|
+
destination_0.o(tmp$ret$8);
|
|
127
|
+
}
|
|
128
|
+
return destination_0;
|
|
129
|
+
}
|
|
130
|
+
function findByPrefix(_this__u8e3s4, $this, prefix) {
|
|
131
|
+
// Inline function 'kotlin.collections.find' call
|
|
132
|
+
var tmp$ret$1;
|
|
133
|
+
$l$block: {
|
|
134
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
135
|
+
var tmp0_iterator = _this__u8e3s4.r();
|
|
136
|
+
while (tmp0_iterator.s()) {
|
|
137
|
+
var element = tmp0_iterator.u();
|
|
138
|
+
// Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.findByPrefix.<anonymous>' call
|
|
139
|
+
if (startsWith(element, prefix)) {
|
|
140
|
+
tmp$ret$1 = element;
|
|
141
|
+
break $l$block;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
tmp$ret$1 = null;
|
|
145
|
+
}
|
|
146
|
+
var tmp0_safe_receiver = tmp$ret$1;
|
|
147
|
+
var tmp;
|
|
148
|
+
if (tmp0_safe_receiver == null) {
|
|
149
|
+
tmp = null;
|
|
150
|
+
} else {
|
|
151
|
+
// Inline function 'kotlin.text.substring' call
|
|
152
|
+
var startIndex = prefix.length;
|
|
153
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
154
|
+
tmp = tmp0_safe_receiver.substring(startIndex);
|
|
155
|
+
}
|
|
156
|
+
return tmp;
|
|
157
|
+
}
|
|
158
|
+
function GitAdapter(workingDirectory) {
|
|
159
|
+
this.rs_1 = workingDirectory;
|
|
160
|
+
this.ss_1 = '--------!--------';
|
|
161
|
+
this.ts_1 = '%H%n%ae%n%ce%n%aI%n%P%n%B%n' + this.ss_1;
|
|
162
|
+
}
|
|
163
|
+
protoOf(GitAdapter).us = function (begin, end) {
|
|
164
|
+
return parseLog(this, runProcess(plus(listOf(['git', '--no-pager', 'log', '--format=' + this.ts_1, begin]), !(end == null) ? listOf_0(end) : emptyList()), this.rs_1));
|
|
165
|
+
};
|
|
166
|
+
protoOf(GitAdapter).vs = function () {
|
|
167
|
+
// Inline function 'kotlin.let' call
|
|
168
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
169
|
+
// Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.status.<anonymous>' call
|
|
170
|
+
var output = runProcess(listOf(['git', 'status', '--porcelain=2', '--branch', '--ahead-behind']), this.rs_1);
|
|
171
|
+
var lines = split(output, ['\n']);
|
|
172
|
+
var head = findByPrefix(lines, this, '# branch.head ');
|
|
173
|
+
var upstream = findByPrefix(lines, this, '# branch.upstream ');
|
|
174
|
+
var tmp0_safe_receiver = findByPrefix(lines, this, '# branch.ab ');
|
|
175
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : split(tmp0_safe_receiver, [' ']);
|
|
176
|
+
var tmp;
|
|
177
|
+
if (tmp1_safe_receiver == null) {
|
|
178
|
+
tmp = null;
|
|
179
|
+
} else {
|
|
180
|
+
// Inline function 'kotlin.collections.map' call
|
|
181
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
182
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_safe_receiver, 10));
|
|
183
|
+
var tmp0_iterator = tmp1_safe_receiver.r();
|
|
184
|
+
while (tmp0_iterator.s()) {
|
|
185
|
+
var item = tmp0_iterator.u();
|
|
186
|
+
// Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.status.<anonymous>.<anonymous>' call
|
|
187
|
+
// Inline function 'kotlin.text.substring' call
|
|
188
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
189
|
+
var tmp$ret$2 = item.substring(1);
|
|
190
|
+
destination.o(tmp$ret$2);
|
|
191
|
+
}
|
|
192
|
+
tmp = destination;
|
|
193
|
+
}
|
|
194
|
+
var tmp2_elvis_lhs = tmp;
|
|
195
|
+
var tmp3_container = tmp2_elvis_lhs == null ? listOf(['-1', '-1']) : tmp2_elvis_lhs;
|
|
196
|
+
// Inline function 'kotlin.collections.component1' call
|
|
197
|
+
var a = tmp3_container.c1(0);
|
|
198
|
+
// Inline function 'kotlin.collections.component2' call
|
|
199
|
+
var b = tmp3_container.c1(1);
|
|
200
|
+
// Inline function 'kotlin.collections.filterNot' call
|
|
201
|
+
// Inline function 'kotlin.collections.filterNot' call
|
|
202
|
+
// Inline function 'kotlin.collections.filterNotTo' call
|
|
203
|
+
var destination_0 = ArrayList_init_$Create$();
|
|
204
|
+
var tmp0_iterator_0 = lines.r();
|
|
205
|
+
while (tmp0_iterator_0.s()) {
|
|
206
|
+
var element = tmp0_iterator_0.u();
|
|
207
|
+
// Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.status.<anonymous>.<anonymous>' call
|
|
208
|
+
if (!startsWith(element, '#')) {
|
|
209
|
+
destination_0.o(element);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
// Inline function 'kotlin.collections.filterNotTo' call
|
|
213
|
+
var destination_1 = ArrayList_init_$Create$();
|
|
214
|
+
var tmp0_iterator_1 = destination_0.r();
|
|
215
|
+
while (tmp0_iterator_1.s()) {
|
|
216
|
+
var element_0 = tmp0_iterator_1.u();
|
|
217
|
+
if (!isBlank(element_0)) {
|
|
218
|
+
destination_1.o(element_0);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
var tmp_0 = destination_1.y();
|
|
222
|
+
var tmp_1 = toInt(a);
|
|
223
|
+
var tmp_2 = toInt(b);
|
|
224
|
+
var tmp_3 = head == null ? '' : head;
|
|
225
|
+
return new GitStatus(tmp_0, tmp_1, tmp_2, tmp_3, upstream == null ? '' : upstream);
|
|
226
|
+
};
|
|
227
|
+
protoOf(GitAdapter).ws = function (abbrev) {
|
|
228
|
+
// Inline function 'kotlin.Result.getOrNull' call
|
|
229
|
+
// Inline function 'kotlin.runCatching' call
|
|
230
|
+
var tmp;
|
|
231
|
+
try {
|
|
232
|
+
// Inline function 'kotlin.Companion.success' call
|
|
233
|
+
// Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.describe.<anonymous>' call
|
|
234
|
+
// Inline function 'kotlin.text.trim' call
|
|
235
|
+
var this_0 = runProcess(listOf(['git', 'describe', '--abbrev=' + abbrev]), this.rs_1);
|
|
236
|
+
var value = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
237
|
+
tmp = _Result___init__impl__xyqfz8(value);
|
|
238
|
+
} catch ($p) {
|
|
239
|
+
var tmp_0;
|
|
240
|
+
if ($p instanceof Error) {
|
|
241
|
+
var e = $p;
|
|
242
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
243
|
+
tmp_0 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
244
|
+
} else {
|
|
245
|
+
throw $p;
|
|
246
|
+
}
|
|
247
|
+
tmp = tmp_0;
|
|
248
|
+
}
|
|
249
|
+
var this_1 = tmp;
|
|
250
|
+
var tmp_1;
|
|
251
|
+
if (_Result___get_isFailure__impl__jpiriv(this_1)) {
|
|
252
|
+
tmp_1 = null;
|
|
253
|
+
} else {
|
|
254
|
+
var tmp_2 = _Result___get_value__impl__bjfvqg(this_1);
|
|
255
|
+
tmp_1 = (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : THROW_CCE();
|
|
256
|
+
}
|
|
257
|
+
return tmp_1;
|
|
258
|
+
};
|
|
259
|
+
function GitStatus(isClean, ahead, behind, head, upstream) {
|
|
260
|
+
this.xs_1 = isClean;
|
|
261
|
+
this.ys_1 = ahead;
|
|
262
|
+
this.zs_1 = behind;
|
|
263
|
+
this.at_1 = head;
|
|
264
|
+
this.bt_1 = upstream;
|
|
265
|
+
}
|
|
266
|
+
protoOf(GitStatus).toString = function () {
|
|
267
|
+
return 'GitStatus(isClean=' + this.xs_1 + ', ahead=' + this.ys_1 + ', behind=' + this.zs_1 + ', head=' + this.at_1 + ', upstream=' + this.bt_1 + ')';
|
|
268
|
+
};
|
|
269
|
+
protoOf(GitStatus).hashCode = function () {
|
|
270
|
+
var result = getBooleanHashCode(this.xs_1);
|
|
271
|
+
result = imul(result, 31) + this.ys_1 | 0;
|
|
272
|
+
result = imul(result, 31) + this.zs_1 | 0;
|
|
273
|
+
result = imul(result, 31) + getStringHashCode(this.at_1) | 0;
|
|
274
|
+
result = imul(result, 31) + getStringHashCode(this.bt_1) | 0;
|
|
275
|
+
return result;
|
|
276
|
+
};
|
|
277
|
+
protoOf(GitStatus).equals = function (other) {
|
|
278
|
+
if (this === other)
|
|
279
|
+
return true;
|
|
280
|
+
if (!(other instanceof GitStatus))
|
|
281
|
+
return false;
|
|
282
|
+
var tmp0_other_with_cast = other instanceof GitStatus ? other : THROW_CCE();
|
|
283
|
+
if (!(this.xs_1 === tmp0_other_with_cast.xs_1))
|
|
284
|
+
return false;
|
|
285
|
+
if (!(this.ys_1 === tmp0_other_with_cast.ys_1))
|
|
286
|
+
return false;
|
|
287
|
+
if (!(this.zs_1 === tmp0_other_with_cast.zs_1))
|
|
288
|
+
return false;
|
|
289
|
+
if (!(this.at_1 === tmp0_other_with_cast.at_1))
|
|
290
|
+
return false;
|
|
291
|
+
if (!(this.bt_1 === tmp0_other_with_cast.bt_1))
|
|
292
|
+
return false;
|
|
293
|
+
return true;
|
|
294
|
+
};
|
|
295
|
+
function get_childProcess() {
|
|
296
|
+
_init_properties_RunProcess_js_kt__6db8dd();
|
|
297
|
+
return childProcess;
|
|
298
|
+
}
|
|
299
|
+
var childProcess;
|
|
300
|
+
function runProcess(args, workingDirectory) {
|
|
301
|
+
_init_properties_RunProcess_js_kt__6db8dd();
|
|
302
|
+
var program = first(args);
|
|
303
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
304
|
+
var this_0 = args.z1(1, args.l());
|
|
305
|
+
var tmp$ret$0 = copyToArray(this_0);
|
|
306
|
+
var spawn = get_childProcess().spawnSync(program, tmp$ret$0, json([to('cwd', workingDirectory), to('maxBuffer', 10485760)]));
|
|
307
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
308
|
+
var tmp0_safe_receiver = spawn.stdout;
|
|
309
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.toString('utf8');
|
|
310
|
+
}
|
|
311
|
+
var properties_initialized_RunProcess_js_kt_yehn37;
|
|
312
|
+
function _init_properties_RunProcess_js_kt__6db8dd() {
|
|
313
|
+
if (!properties_initialized_RunProcess_js_kt_yehn37) {
|
|
314
|
+
properties_initialized_RunProcess_js_kt_yehn37 = true;
|
|
315
|
+
childProcess = require('node:child_process');
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
//region block: exports
|
|
319
|
+
_.$_$ = _.$_$ || {};
|
|
320
|
+
_.$_$.a = GitAdapter;
|
|
321
|
+
//endregion
|
|
322
|
+
return _;
|
|
323
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./Kotlin-DateTime-library-kotlinx-datetime.js')));
|
|
324
|
+
|
|
325
|
+
//# sourceMappingURL=tools-git-adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../git-adapter/src/commonMain/kotlin/com/zegreatrob/tools/adapter/git/CommitRef.kt","../../../../../git-adapter/src/commonMain/kotlin/com/zegreatrob/tools/adapter/git/GitAdapter.kt","../../../../../tagger-cli/build/compileSync/js/main/productionExecutable/kotlin/common/src/generated/_Collections.kt","../../../../../tagger-cli/build/compileSync/js/main/productionExecutable/kotlin/src/kotlin/text/Strings.kt","../../../../../tagger-cli/build/compileSync/js/main/productionExecutable/kotlin/src/jsMainSources/libraries/stdlib/js/src/kotlin/text/stringJs.kt","../../../../../tagger-cli/build/compileSync/js/main/productionExecutable/kotlin/src/kotlin/util/Standard.kt","../../../../../tagger-cli/build/compileSync/js/main/productionExecutable/kotlin/src/kotlin/util/Result.kt","../../../../../git-adapter/src/jsMain/kotlin/com/zegreatrob/tools/adapter/git/RunProcess.js.kt","../../../../../tagger-cli/build/compileSync/js/main/productionExecutable/kotlin/src/jsMainSources/libraries/stdlib/js/src/kotlin/collectionJs.kt","../../../../../tagger-cli/build/compileSync/js/main/productionExecutable/kotlin/src/jsMainSources/libraries/stdlib/js/src/kotlin/dynamic.kt"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null],"names":["<init>","id","authorEmail","committerEmail","dateTime","parents","fullMessage","toString","hashCode","result","equals","other","parseLog","outputText","element","item","elements","findByPrefix","<this>","prefix","workingDirectory","logWithRange","begin","end","status","lines","head","upstream","a","b","describe","abbrev","e","isClean","ahead","behind","<get-childProcess>","runProcess","args","program","spawn","<init properties RunProcess.js.kt>"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAIKA,CACDC,E,EACAC,W,EACAC,c,EACAC,Q,EACAC,O,EACAC,WANCN,EAAL;A,IACI,c;IACA,uB;IACA,0B;IACA,oB;IACA,mB;IACA,uB;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AL;A,IACI,mB;IACA,iB;IACA,kB;IACA,gB;IACA,oB;EALJ,C;yCA3JAO,CAAAA,EAAA;A,IAAA,oJ;EAAA,C;yCAAAC,CAAAA,EAAA;A,QAAAC,sC;IAAA,yC;IAAA,yC;IAAA,4D;IAAA,4D;IAAA,a;EAAA,C;uCAAAC,CAAAC,KAAAD,EAAA;A,IAAA,mB;MAAA,W;IAAA,kC;MAAA,Y;QAAA,uE;IAAA,+C;MAAA,Y;IAAA,+C;MAAA,Y;IAAA,+C;MAAA,Y;IAAA,+C;MAAA,Y;IAAA,+C;MAAA,Y;IAAA,W;EAAA,C;2BMIQ0B,CAAAA,EAAA;A;IAAA,mB;EAAqD,C;;qBAEtDC,CAAeC,I,EAAoBlB,gBAAnCiB,EAAqE;A;QACxEE,UAAmB,MAAL,IAAK,C;;iBCCG,IACvB,IAAQ,CAAR,EAAW,IAAK,IAAhB,C;oBAiBmE,YAAY,MAAZ,C;QDlBlEC,QAAY,kBAAa,WACrB,OADqB,EAEM,SAFN,EAGrB,KAAK,IAAC,KAAD,EAAS,gBAAT,GAA2B,GAAC,WAAD,EAAe,QAAf,CAA3B,CAAL,CAHqB,C;;QEMH,qBAAN,KAAM,O;IFDtB,OECsB,kBAAQ,kBAAR,kBAAQ,UAAU,MAAV,C;EFAlC,C;;oDAdAC,CAAAA,E;;;qBAI+B,OAAJ,CAAY,oBAAZ,C;;G;;;;;;;"}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
(function (_, kotlin_clikt_clikt, kotlin_com_zegreatrob_tools_tagger_core, kotlin_com_zegreatrob_tools_git_adapter, kotlin_kotlin, kotlin_com_zegreatrob_tools_cli_tools) {
|
|
2
|
+
'use strict';
|
|
3
|
+
//region block: imports
|
|
4
|
+
var CliktCommand = kotlin_clikt_clikt.$_$.a;
|
|
5
|
+
var argument = kotlin_clikt_clikt.$_$.c;
|
|
6
|
+
var option = kotlin_clikt_clikt.$_$.e;
|
|
7
|
+
var boolean = kotlin_clikt_clikt.$_$.f;
|
|
8
|
+
var default_0 = kotlin_clikt_clikt.$_$.d;
|
|
9
|
+
var Defaults_getInstance = kotlin_com_zegreatrob_tools_tagger_core.$_$.d;
|
|
10
|
+
var GitAdapter = kotlin_com_zegreatrob_tools_git_adapter.$_$.a;
|
|
11
|
+
var TaggerCore = kotlin_com_zegreatrob_tools_tagger_core.$_$.a;
|
|
12
|
+
var RegexOption_IGNORE_CASE_getInstance = kotlin_kotlin.$_$.d;
|
|
13
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.n;
|
|
14
|
+
var VersionRegex = kotlin_com_zegreatrob_tools_tagger_core.$_$.b;
|
|
15
|
+
var calculateNextVersion = kotlin_com_zegreatrob_tools_tagger_core.$_$.c;
|
|
16
|
+
var Unit_instance = kotlin_kotlin.$_$.v1;
|
|
17
|
+
var protoOf = kotlin_kotlin.$_$.d6;
|
|
18
|
+
var classMeta = kotlin_kotlin.$_$.i5;
|
|
19
|
+
var setMetadataFor = kotlin_kotlin.$_$.e6;
|
|
20
|
+
var VOID = kotlin_kotlin.$_$.c;
|
|
21
|
+
var KProperty1 = kotlin_kotlin.$_$.u6;
|
|
22
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.o5;
|
|
23
|
+
var subcommands = kotlin_clikt_clikt.$_$.b;
|
|
24
|
+
var platformArgCorrection = kotlin_com_zegreatrob_tools_cli_tools.$_$.a;
|
|
25
|
+
//endregion
|
|
26
|
+
//region block: pre-declaration
|
|
27
|
+
setMetadataFor(CalculateVersion, 'CalculateVersion', classMeta, CliktCommand, VOID, CalculateVersion);
|
|
28
|
+
setMetadataFor(Welcome, 'Welcome', classMeta, CliktCommand, VOID, Welcome);
|
|
29
|
+
//endregion
|
|
30
|
+
function _get_dir__e67350($this) {
|
|
31
|
+
return $this.c2i_1.o2e($this, dir$factory_0());
|
|
32
|
+
}
|
|
33
|
+
function _get_implicitPatch__bjk4pa($this) {
|
|
34
|
+
return $this.d2i_1.o2e($this, implicitPatch$factory_0());
|
|
35
|
+
}
|
|
36
|
+
function _get_releaseBranch__pqrgbs($this) {
|
|
37
|
+
return $this.e2i_1.o2e($this, releaseBranch$factory_0());
|
|
38
|
+
}
|
|
39
|
+
function _get_versionRegex__7su5ss($this) {
|
|
40
|
+
return $this.f2i_1.o2e($this, versionRegex$factory_0());
|
|
41
|
+
}
|
|
42
|
+
function _get_majorRegex__5j6ypp($this) {
|
|
43
|
+
return $this.g2i_1.o2e($this, majorRegex$factory_0());
|
|
44
|
+
}
|
|
45
|
+
function _get_minorRegex__20z96h($this) {
|
|
46
|
+
return $this.h2i_1.o2e($this, minorRegex$factory_0());
|
|
47
|
+
}
|
|
48
|
+
function _get_patchRegex__mtlu2c($this) {
|
|
49
|
+
return $this.i2i_1.o2e($this, patchRegex$factory_0());
|
|
50
|
+
}
|
|
51
|
+
function _get_noneRegex__1tdbgi($this) {
|
|
52
|
+
return $this.j2i_1.o2e($this, noneRegex$factory_0());
|
|
53
|
+
}
|
|
54
|
+
function run$echo(receiver, p0) {
|
|
55
|
+
receiver.x25(p0);
|
|
56
|
+
}
|
|
57
|
+
function CalculateVersion() {
|
|
58
|
+
CliktCommand.call(this);
|
|
59
|
+
this.c2i_1 = argument(this, 'git-repo').q2e(this, dir$factory());
|
|
60
|
+
this.d2i_1 = default_0(boolean(option(this, [])), true).b2f(this, implicitPatch$factory());
|
|
61
|
+
this.e2i_1 = option(this, []).b2f(this, releaseBranch$factory());
|
|
62
|
+
this.f2i_1 = option(this, []).b2f(this, versionRegex$factory());
|
|
63
|
+
this.g2i_1 = default_0(option(this, []), Defaults_getInstance().hu_1.n7_1).b2f(this, majorRegex$factory());
|
|
64
|
+
this.h2i_1 = default_0(option(this, []), Defaults_getInstance().gu_1.n7_1).b2f(this, minorRegex$factory());
|
|
65
|
+
this.i2i_1 = default_0(option(this, []), Defaults_getInstance().fu_1.n7_1).b2f(this, patchRegex$factory());
|
|
66
|
+
this.j2i_1 = default_0(option(this, []), Defaults_getInstance().eu_1.n7_1).b2f(this, noneRegex$factory());
|
|
67
|
+
}
|
|
68
|
+
protoOf(CalculateVersion).e26 = function () {
|
|
69
|
+
// Inline function 'kotlin.let' call
|
|
70
|
+
var tmp = new TaggerCore(new GitAdapter(_get_dir__e67350(this)));
|
|
71
|
+
var tmp_0 = _get_implicitPatch__bjk4pa(this);
|
|
72
|
+
var tmp_1 = Regex_init_$Create$(_get_noneRegex__1tdbgi(this), RegexOption_IGNORE_CASE_getInstance());
|
|
73
|
+
var tmp_2 = Regex_init_$Create$(_get_patchRegex__mtlu2c(this), RegexOption_IGNORE_CASE_getInstance());
|
|
74
|
+
var tmp_3 = Regex_init_$Create$(_get_minorRegex__20z96h(this), RegexOption_IGNORE_CASE_getInstance());
|
|
75
|
+
var tmp_4 = Regex_init_$Create$(_get_majorRegex__5j6ypp(this), RegexOption_IGNORE_CASE_getInstance());
|
|
76
|
+
var tmp0_safe_receiver = _get_versionRegex__7su5ss(this);
|
|
77
|
+
var tmp_5;
|
|
78
|
+
if (tmp0_safe_receiver == null) {
|
|
79
|
+
tmp_5 = null;
|
|
80
|
+
} else {
|
|
81
|
+
// Inline function 'kotlin.let' call
|
|
82
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
83
|
+
// Inline function 'com.zegreatrob.tools.tagger.cli.CalculateVersion.run.<anonymous>' call
|
|
84
|
+
tmp_5 = Regex_init_$Create$(tmp0_safe_receiver, RegexOption_IGNORE_CASE_getInstance());
|
|
85
|
+
}
|
|
86
|
+
var tmp_6 = new VersionRegex(tmp_1, tmp_2, tmp_3, tmp_4, tmp_5);
|
|
87
|
+
var tmp1_elvis_lhs = _get_releaseBranch__pqrgbs(this);
|
|
88
|
+
var this_0 = calculateNextVersion(tmp, tmp_0, tmp_6, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs);
|
|
89
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
90
|
+
run$echo(this, this_0);
|
|
91
|
+
};
|
|
92
|
+
function dir$factory() {
|
|
93
|
+
return getPropertyCallableRef('dir', 1, KProperty1, function (receiver) {
|
|
94
|
+
return _get_dir__e67350(receiver);
|
|
95
|
+
}, null);
|
|
96
|
+
}
|
|
97
|
+
function implicitPatch$factory() {
|
|
98
|
+
return getPropertyCallableRef('implicitPatch', 1, KProperty1, function (receiver) {
|
|
99
|
+
return _get_implicitPatch__bjk4pa(receiver);
|
|
100
|
+
}, null);
|
|
101
|
+
}
|
|
102
|
+
function releaseBranch$factory() {
|
|
103
|
+
return getPropertyCallableRef('releaseBranch', 1, KProperty1, function (receiver) {
|
|
104
|
+
return _get_releaseBranch__pqrgbs(receiver);
|
|
105
|
+
}, null);
|
|
106
|
+
}
|
|
107
|
+
function versionRegex$factory() {
|
|
108
|
+
return getPropertyCallableRef('versionRegex', 1, KProperty1, function (receiver) {
|
|
109
|
+
return _get_versionRegex__7su5ss(receiver);
|
|
110
|
+
}, null);
|
|
111
|
+
}
|
|
112
|
+
function majorRegex$factory() {
|
|
113
|
+
return getPropertyCallableRef('majorRegex', 1, KProperty1, function (receiver) {
|
|
114
|
+
return _get_majorRegex__5j6ypp(receiver);
|
|
115
|
+
}, null);
|
|
116
|
+
}
|
|
117
|
+
function minorRegex$factory() {
|
|
118
|
+
return getPropertyCallableRef('minorRegex', 1, KProperty1, function (receiver) {
|
|
119
|
+
return _get_minorRegex__20z96h(receiver);
|
|
120
|
+
}, null);
|
|
121
|
+
}
|
|
122
|
+
function patchRegex$factory() {
|
|
123
|
+
return getPropertyCallableRef('patchRegex', 1, KProperty1, function (receiver) {
|
|
124
|
+
return _get_patchRegex__mtlu2c(receiver);
|
|
125
|
+
}, null);
|
|
126
|
+
}
|
|
127
|
+
function noneRegex$factory() {
|
|
128
|
+
return getPropertyCallableRef('noneRegex', 1, KProperty1, function (receiver) {
|
|
129
|
+
return _get_noneRegex__1tdbgi(receiver);
|
|
130
|
+
}, null);
|
|
131
|
+
}
|
|
132
|
+
function dir$factory_0() {
|
|
133
|
+
return getPropertyCallableRef('dir', 1, KProperty1, function (receiver) {
|
|
134
|
+
return _get_dir__e67350(receiver);
|
|
135
|
+
}, null);
|
|
136
|
+
}
|
|
137
|
+
function implicitPatch$factory_0() {
|
|
138
|
+
return getPropertyCallableRef('implicitPatch', 1, KProperty1, function (receiver) {
|
|
139
|
+
return _get_implicitPatch__bjk4pa(receiver);
|
|
140
|
+
}, null);
|
|
141
|
+
}
|
|
142
|
+
function releaseBranch$factory_0() {
|
|
143
|
+
return getPropertyCallableRef('releaseBranch', 1, KProperty1, function (receiver) {
|
|
144
|
+
return _get_releaseBranch__pqrgbs(receiver);
|
|
145
|
+
}, null);
|
|
146
|
+
}
|
|
147
|
+
function versionRegex$factory_0() {
|
|
148
|
+
return getPropertyCallableRef('versionRegex', 1, KProperty1, function (receiver) {
|
|
149
|
+
return _get_versionRegex__7su5ss(receiver);
|
|
150
|
+
}, null);
|
|
151
|
+
}
|
|
152
|
+
function majorRegex$factory_0() {
|
|
153
|
+
return getPropertyCallableRef('majorRegex', 1, KProperty1, function (receiver) {
|
|
154
|
+
return _get_majorRegex__5j6ypp(receiver);
|
|
155
|
+
}, null);
|
|
156
|
+
}
|
|
157
|
+
function minorRegex$factory_0() {
|
|
158
|
+
return getPropertyCallableRef('minorRegex', 1, KProperty1, function (receiver) {
|
|
159
|
+
return _get_minorRegex__20z96h(receiver);
|
|
160
|
+
}, null);
|
|
161
|
+
}
|
|
162
|
+
function patchRegex$factory_0() {
|
|
163
|
+
return getPropertyCallableRef('patchRegex', 1, KProperty1, function (receiver) {
|
|
164
|
+
return _get_patchRegex__mtlu2c(receiver);
|
|
165
|
+
}, null);
|
|
166
|
+
}
|
|
167
|
+
function noneRegex$factory_0() {
|
|
168
|
+
return getPropertyCallableRef('noneRegex', 1, KProperty1, function (receiver) {
|
|
169
|
+
return _get_noneRegex__1tdbgi(receiver);
|
|
170
|
+
}, null);
|
|
171
|
+
}
|
|
172
|
+
function main(args) {
|
|
173
|
+
return subcommands(new Welcome(), [new CalculateVersion()]).d26(platformArgCorrection(args));
|
|
174
|
+
}
|
|
175
|
+
function Welcome() {
|
|
176
|
+
CliktCommand.call(this);
|
|
177
|
+
}
|
|
178
|
+
protoOf(Welcome).e26 = function () {
|
|
179
|
+
this.x25('Welcome to Tagger CLI.');
|
|
180
|
+
};
|
|
181
|
+
main([]);
|
|
182
|
+
return _;
|
|
183
|
+
}(module.exports, require('./clikt-clikt.js'), require('./tools-tagger-core.js'), require('./tools-git-adapter.js'), require('./kotlin-kotlin-stdlib.js'), require('./tools-cli-tools.js')));
|
|
184
|
+
|
|
185
|
+
//# sourceMappingURL=tools-tagger-cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../tagger-cli/src/commonMain/kotlin/com/zegreatrob/tools/tagger/cli/CalculateVersion.kt","../../../../../tagger-cli/build/compileSync/js/main/productionExecutable/kotlin/src/kotlin/util/Standard.kt","../../../../../tagger-cli/src/commonMain/kotlin/com/zegreatrob/tools/tagger/cli/Main.kt","../../../../../tagger-cli/src/commonMain/kotlin/com/zegreatrob/tools/tagger/cli/Welcome.kt"],"sourcesContent":[null,null,null,null],"names":["<get-dir>","<get-implicitPatch>","<get-releaseBranch>","<get-versionRegex>","<get-majorRegex>","<get-minorRegex>","<get-patchRegex>","<get-noneRegex>","run$echo","<init>","run","dir$factory","get","receiver","implicitPatch$factory","releaseBranch$factory","versionRegex$factory","majorRegex$factory","minorRegex$factory","patchRegex$factory","noneRegex$factory","main","args"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAaoBA,C,KAAAA,EAAG;A,IAAA,OAAH,KAAG,CAAH,KAAG,KAbf,KAae,EAAH,eAAG,C;EAAmB,C;qCACZC,C,KAAAA,EAAG;A,IAAA,OAAH,KAAG,CAAH,KAAG,KAdzB,KAcyB,EAAH,yBAAG,C;EAA+B,C;qCAClCC,C,KAAAA,EAAG;A,IAAA,OAAH,KAAG,CAAH,KAAG,KAfzB,KAeyB,EAAH,yBAAG,C;EAAO,C;oCACXC,C,KAAAA,EAAG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