git-semver-tagger 1.9.22 → 1.9.24
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/README.md +137 -0
- package/kotlin/clikt-clikt-mordant.js +41 -41
- package/kotlin/clikt-clikt.js +613 -479
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +406 -406
- package/kotlin/command-line-tools-tagger-cli.js +167 -195
- package/kotlin/command-line-tools-tagger-cli.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +4 -4
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1168 -1168
- package/kotlin/mordant-mordant.js +1097 -1097
- package/package.json +1 -1
|
@@ -4,18 +4,13 @@
|
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var protoOf = kotlin_kotlin.$_$.da;
|
|
6
6
|
var initMetadataForObject = kotlin_kotlin.$_$.k9;
|
|
7
|
-
var VOID = kotlin_kotlin.$_$.c;
|
|
8
|
-
var joinToString = kotlin_kotlin.$_$.v5;
|
|
9
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.t1;
|
|
10
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.g9;
|
|
11
|
-
var enumEntries = kotlin_kotlin.$_$.s7;
|
|
12
7
|
var Unit_instance = kotlin_kotlin.$_$.v;
|
|
13
8
|
var Enum = kotlin_kotlin.$_$.td;
|
|
14
9
|
var initMetadataForClass = kotlin_kotlin.$_$.f9;
|
|
10
|
+
var VOID = kotlin_kotlin.$_$.c;
|
|
15
11
|
var KProperty1 = kotlin_kotlin.$_$.xa;
|
|
16
12
|
var getPropertyCallableRef = kotlin_kotlin.$_$.c9;
|
|
17
13
|
var CliktError = kotlin_clikt_clikt.$_$.a;
|
|
18
|
-
var IllegalArgumentException = kotlin_kotlin.$_$.vd;
|
|
19
14
|
var endsWith = kotlin_kotlin.$_$.sb;
|
|
20
15
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.t4;
|
|
21
16
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.y;
|
|
@@ -29,6 +24,10 @@
|
|
|
29
24
|
var option = kotlin_clikt_clikt.$_$.o;
|
|
30
25
|
var boolean = kotlin_clikt_clikt.$_$.q;
|
|
31
26
|
var default_0 = kotlin_clikt_clikt.$_$.l;
|
|
27
|
+
var mapCapacity = kotlin_kotlin.$_$.h6;
|
|
28
|
+
var coerceAtLeast = kotlin_kotlin.$_$.ka;
|
|
29
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.h1;
|
|
30
|
+
var choice = kotlin_clikt_clikt.$_$.r;
|
|
32
31
|
var Defaults_getInstance = kotlin_com_zegreatrob_tools_tagger_core.$_$.j;
|
|
33
32
|
var Companion_instance = kotlin_com_zegreatrob_tools_tagger_core.$_$.i;
|
|
34
33
|
var GitAdapter = kotlin_com_zegreatrob_tools_git_adapter.$_$.a;
|
|
@@ -39,11 +38,12 @@
|
|
|
39
38
|
var Success = kotlin_com_zegreatrob_tools_tagger_core.$_$.e;
|
|
40
39
|
var emptyList = kotlin_kotlin.$_$.j5;
|
|
41
40
|
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.e;
|
|
42
|
-
var Companion_instance_0 = kotlin_clikt_clikt.$_$.
|
|
41
|
+
var Companion_instance_0 = kotlin_clikt_clikt.$_$.t;
|
|
43
42
|
var get_jsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i;
|
|
44
43
|
var JsonArray = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
44
|
+
var IllegalArgumentException = kotlin_kotlin.$_$.vd;
|
|
45
45
|
var split = kotlin_kotlin.$_$.mc;
|
|
46
|
-
var Companion_instance_1 = kotlin_clikt_clikt.$_$.
|
|
46
|
+
var Companion_instance_1 = kotlin_clikt_clikt.$_$.s;
|
|
47
47
|
var listOf = kotlin_kotlin.$_$.f6;
|
|
48
48
|
var Regex_init_$Create$_0 = kotlin_kotlin.$_$.m1;
|
|
49
49
|
var readFromFile = kotlin_com_zegreatrob_tools_cli_tools.$_$.b;
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
var isBlank = kotlin_kotlin.$_$.yb;
|
|
67
67
|
var JsonElement = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c;
|
|
68
68
|
var writeToFile = kotlin_com_zegreatrob_tools_cli_tools.$_$.c;
|
|
69
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.g9;
|
|
69
70
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s1;
|
|
70
71
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l;
|
|
71
72
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j;
|
|
@@ -97,74 +98,40 @@
|
|
|
97
98
|
//endregion
|
|
98
99
|
//region block: pre-declaration
|
|
99
100
|
initMetadataForObject(Versions, 'Versions');
|
|
100
|
-
initMetadataForCompanion(Companion);
|
|
101
101
|
initMetadataForClass(OutputFormat, 'OutputFormat', VOID, Enum);
|
|
102
102
|
initMetadataForClass(CalculateVersion, 'CalculateVersion', CalculateVersion, CliktCommand);
|
|
103
103
|
initMetadataForClass(ConfigFileSource, 'ConfigFileSource');
|
|
104
104
|
initMetadataForClass(GenerateSettingsFile, 'GenerateSettingsFile', GenerateSettingsFile, CliktCommand);
|
|
105
|
-
initMetadataForCompanion(
|
|
105
|
+
initMetadataForCompanion(Companion);
|
|
106
106
|
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
107
107
|
initMetadataForClass(VersionSuccessResponse, 'VersionSuccessResponse', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
|
|
108
|
-
initMetadataForCompanion(
|
|
108
|
+
initMetadataForCompanion(Companion_0);
|
|
109
109
|
initMetadataForObject($serializer_0, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
110
110
|
initMetadataForClass(VersionData, 'VersionData', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_0});
|
|
111
|
-
initMetadataForCompanion(
|
|
111
|
+
initMetadataForCompanion(Companion_1);
|
|
112
112
|
initMetadataForObject($serializer_1, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
113
113
|
initMetadataForClass(ErrorResponse, 'ErrorResponse', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_1});
|
|
114
|
-
initMetadataForCompanion(
|
|
114
|
+
initMetadataForCompanion(Companion_2);
|
|
115
115
|
initMetadataForObject($serializer_2, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
116
116
|
initMetadataForClass(TagSuccessResponse, 'TagSuccessResponse', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_2});
|
|
117
|
-
initMetadataForCompanion(
|
|
117
|
+
initMetadataForCompanion(Companion_3);
|
|
118
118
|
initMetadataForObject($serializer_3, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
119
119
|
initMetadataForClass(TagData, 'TagData', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_3});
|
|
120
120
|
initMetadataForClass(Tag, 'Tag', Tag, CliktCommand);
|
|
121
121
|
initMetadataForClass(Tagger, 'Tagger', Tagger, CliktCommand);
|
|
122
122
|
//endregion
|
|
123
123
|
function Versions() {
|
|
124
|
-
this.
|
|
124
|
+
this.r2n_1 = '1.9.24';
|
|
125
125
|
}
|
|
126
126
|
var Versions_instance;
|
|
127
127
|
function Versions_getInstance() {
|
|
128
128
|
return Versions_instance;
|
|
129
129
|
}
|
|
130
|
-
function OutputFormat$Companion$fromString$lambda(it) {
|
|
131
|
-
// Inline function 'kotlin.text.lowercase' call
|
|
132
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
133
|
-
return it.x2_1.toLowerCase();
|
|
134
|
-
}
|
|
135
130
|
var OutputFormat_TEXT_instance;
|
|
136
131
|
var OutputFormat_JSON_instance;
|
|
137
|
-
function Companion() {
|
|
138
|
-
}
|
|
139
|
-
protoOf(Companion).r2n = function (value) {
|
|
140
|
-
// Inline function 'kotlin.text.lowercase' call
|
|
141
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
142
|
-
var tmp;
|
|
143
|
-
switch (value.toLowerCase()) {
|
|
144
|
-
case 'text':
|
|
145
|
-
tmp = OutputFormat_TEXT_getInstance();
|
|
146
|
-
break;
|
|
147
|
-
case 'json':
|
|
148
|
-
tmp = OutputFormat_JSON_getInstance();
|
|
149
|
-
break;
|
|
150
|
-
default:
|
|
151
|
-
var tmp_0 = get_entries();
|
|
152
|
-
throw IllegalArgumentException_init_$Create$("Invalid format '" + value + "'. Must be one of: " + joinToString(tmp_0, ', ', VOID, VOID, VOID, VOID, OutputFormat$Companion$fromString$lambda));
|
|
153
|
-
}
|
|
154
|
-
return tmp;
|
|
155
|
-
};
|
|
156
|
-
var Companion_instance_2;
|
|
157
|
-
function Companion_getInstance() {
|
|
158
|
-
return Companion_instance_2;
|
|
159
|
-
}
|
|
160
132
|
function values() {
|
|
161
133
|
return [OutputFormat_TEXT_getInstance(), OutputFormat_JSON_getInstance()];
|
|
162
134
|
}
|
|
163
|
-
function get_entries() {
|
|
164
|
-
if ($ENTRIES == null)
|
|
165
|
-
$ENTRIES = enumEntries(values());
|
|
166
|
-
return $ENTRIES;
|
|
167
|
-
}
|
|
168
135
|
var OutputFormat_entriesInitialized;
|
|
169
136
|
function OutputFormat_initEntries() {
|
|
170
137
|
if (OutputFormat_entriesInitialized)
|
|
@@ -173,17 +140,16 @@
|
|
|
173
140
|
OutputFormat_TEXT_instance = new OutputFormat('TEXT', 0);
|
|
174
141
|
OutputFormat_JSON_instance = new OutputFormat('JSON', 1);
|
|
175
142
|
}
|
|
176
|
-
var $ENTRIES;
|
|
177
143
|
function OutputFormat(name, ordinal) {
|
|
178
144
|
Enum.call(this, name, ordinal);
|
|
179
145
|
}
|
|
180
146
|
function _get_gitRepoArgument__zxde8($this) {
|
|
181
147
|
var tmp = KProperty1;
|
|
182
|
-
return $this.h2o_1.
|
|
148
|
+
return $this.h2o_1.l1m($this, getPropertyCallableRef('gitRepoArgument', 1, tmp, CalculateVersion$_get_gitRepoArgument_$ref_ekksr7_0(), null));
|
|
183
149
|
}
|
|
184
150
|
function _get_gitRepoOption__rk7ta0($this) {
|
|
185
151
|
var tmp = KProperty1;
|
|
186
|
-
return $this.i2o_1.
|
|
152
|
+
return $this.i2o_1.l1m($this, getPropertyCallableRef('gitRepoOption', 1, tmp, CalculateVersion$_get_gitRepoOption_$ref_ms8ohh_0(), null));
|
|
187
153
|
}
|
|
188
154
|
function _get_workingDirectory__eyfbj($this) {
|
|
189
155
|
var tmp0_elvis_lhs = _get_gitRepoArgument__zxde8($this);
|
|
@@ -198,59 +164,43 @@
|
|
|
198
164
|
}
|
|
199
165
|
function _get_implicitPatch__bjk4pa($this) {
|
|
200
166
|
var tmp = KProperty1;
|
|
201
|
-
return $this.j2o_1.
|
|
167
|
+
return $this.j2o_1.l1m($this, getPropertyCallableRef('implicitPatch', 1, tmp, CalculateVersion$_get_implicitPatch_$ref_8lm4hh_0(), null));
|
|
202
168
|
}
|
|
203
169
|
function _get_disableDetached__ys8kbb($this) {
|
|
204
170
|
var tmp = KProperty1;
|
|
205
|
-
return $this.k2o_1.
|
|
171
|
+
return $this.k2o_1.l1m($this, getPropertyCallableRef('disableDetached', 1, tmp, CalculateVersion$_get_disableDetached_$ref_yxb19o_0(), null));
|
|
206
172
|
}
|
|
207
173
|
function _get_forceSnapshot__vb3h7m($this) {
|
|
208
174
|
var tmp = KProperty1;
|
|
209
|
-
return $this.l2o_1.
|
|
175
|
+
return $this.l2o_1.l1m($this, getPropertyCallableRef('forceSnapshot', 1, tmp, CalculateVersion$_get_forceSnapshot_$ref_8rl68v_0(), null));
|
|
210
176
|
}
|
|
211
177
|
function _get_releaseBranch__pqrgbs($this) {
|
|
212
178
|
var tmp = KProperty1;
|
|
213
|
-
return $this.m2o_1.
|
|
214
|
-
}
|
|
215
|
-
function _get_formatString__ciw4gt($this) {
|
|
216
|
-
var tmp = KProperty1;
|
|
217
|
-
return $this.n2o_1.k1m($this, getPropertyCallableRef('formatString', 1, tmp, CalculateVersion$_get_formatString_$ref_f69ypw_0(), null));
|
|
179
|
+
return $this.m2o_1.l1m($this, getPropertyCallableRef('releaseBranch', 1, tmp, CalculateVersion$_get_releaseBranch_$ref_3xh47v_0(), null));
|
|
218
180
|
}
|
|
219
181
|
function _get_format__qlarck($this) {
|
|
220
|
-
var tmp;
|
|
221
|
-
|
|
222
|
-
tmp = Companion_instance_2.r2n(_get_formatString__ciw4gt($this));
|
|
223
|
-
} catch ($p) {
|
|
224
|
-
var tmp_0;
|
|
225
|
-
if ($p instanceof IllegalArgumentException) {
|
|
226
|
-
var e = $p;
|
|
227
|
-
var tmp0_elvis_lhs = e.message;
|
|
228
|
-
throw new CliktError(tmp0_elvis_lhs == null ? 'Invalid format' : tmp0_elvis_lhs);
|
|
229
|
-
} else {
|
|
230
|
-
throw $p;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
return tmp;
|
|
182
|
+
var tmp = KProperty1;
|
|
183
|
+
return $this.n2o_1.l1m($this, getPropertyCallableRef('format', 1, tmp, CalculateVersion$_get_format_$ref_clhcb9_0(), null));
|
|
234
184
|
}
|
|
235
185
|
function _get_majorRegex__5j6ypp($this) {
|
|
236
186
|
var tmp = KProperty1;
|
|
237
|
-
return $this.o2o_1.
|
|
187
|
+
return $this.o2o_1.l1m($this, getPropertyCallableRef('majorRegex', 1, tmp, CalculateVersion$_get_majorRegex_$ref_erugf6_0(), null));
|
|
238
188
|
}
|
|
239
189
|
function _get_minorRegex__20z96h($this) {
|
|
240
190
|
var tmp = KProperty1;
|
|
241
|
-
return $this.p2o_1.
|
|
191
|
+
return $this.p2o_1.l1m($this, getPropertyCallableRef('minorRegex', 1, tmp, CalculateVersion$_get_minorRegex_$ref_u1fzja_0(), null));
|
|
242
192
|
}
|
|
243
193
|
function _get_patchRegex__mtlu2c($this) {
|
|
244
194
|
var tmp = KProperty1;
|
|
245
|
-
return $this.q2o_1.
|
|
195
|
+
return $this.q2o_1.l1m($this, getPropertyCallableRef('patchRegex', 1, tmp, CalculateVersion$_get_patchRegex_$ref_124637_0(), null));
|
|
246
196
|
}
|
|
247
197
|
function _get_noneRegex__1tdbgi($this) {
|
|
248
198
|
var tmp = KProperty1;
|
|
249
|
-
return $this.r2o_1.
|
|
199
|
+
return $this.r2o_1.l1m($this, getPropertyCallableRef('noneRegex', 1, tmp, CalculateVersion$_get_noneRegex_$ref_vcaxfl_0(), null));
|
|
250
200
|
}
|
|
251
201
|
function _get_versionRegex__7su5ss($this) {
|
|
252
202
|
var tmp = KProperty1;
|
|
253
|
-
return $this.s2o_1.
|
|
203
|
+
return $this.s2o_1.l1m($this, getPropertyCallableRef('versionRegex', 1, tmp, CalculateVersion$_get_versionRegex_$ref_f466m5_0(), null));
|
|
254
204
|
}
|
|
255
205
|
function output($this, message, errorMessage) {
|
|
256
206
|
$this.x1b(message);
|
|
@@ -270,7 +220,8 @@
|
|
|
270
220
|
var tmp$ret$2 = item.toString();
|
|
271
221
|
destination.v(tmp$ret$2);
|
|
272
222
|
}
|
|
273
|
-
|
|
223
|
+
var jsonOutput = versionSuccessResponse(new VersionData(version, isSnapshot, destination));
|
|
224
|
+
$this.x1b(jsonOutput);
|
|
274
225
|
}
|
|
275
226
|
function versionRegex($this) {
|
|
276
227
|
var tmp = Regex_init_$Create$(_get_noneRegex__1tdbgi($this), RegexOption_IGNORE_CASE_getInstance());
|
|
@@ -351,14 +302,14 @@
|
|
|
351
302
|
return _get_releaseBranch__pqrgbs(p0);
|
|
352
303
|
};
|
|
353
304
|
}
|
|
354
|
-
function CalculateVersion$
|
|
305
|
+
function CalculateVersion$_get_format_$ref_clhcb9() {
|
|
355
306
|
return function (p0) {
|
|
356
|
-
return
|
|
307
|
+
return _get_format__qlarck(p0);
|
|
357
308
|
};
|
|
358
309
|
}
|
|
359
|
-
function CalculateVersion$
|
|
310
|
+
function CalculateVersion$_get_format_$ref_clhcb9_0() {
|
|
360
311
|
return function (p0) {
|
|
361
|
-
return
|
|
312
|
+
return _get_format__qlarck(p0);
|
|
362
313
|
};
|
|
363
314
|
}
|
|
364
315
|
function CalculateVersion$_get_majorRegex_$ref_erugf6() {
|
|
@@ -408,7 +359,7 @@
|
|
|
408
359
|
// Inline function 'com.github.ajalt.clikt.parameters.options.OptionTransformContext.require' call
|
|
409
360
|
if (!$tmp4_check_this.co(it)) {
|
|
410
361
|
var tmp$ret$3 = $message;
|
|
411
|
-
$this$copy.
|
|
362
|
+
$this$copy.u1l(tmp$ret$3);
|
|
412
363
|
}
|
|
413
364
|
tmp = Unit_instance;
|
|
414
365
|
}
|
|
@@ -431,59 +382,78 @@
|
|
|
431
382
|
var tmp = this;
|
|
432
383
|
var tmp_0 = optional(argument(this, 'git-repo'));
|
|
433
384
|
var tmp_1 = KProperty1;
|
|
434
|
-
tmp.h2o_1 = tmp_0.
|
|
385
|
+
tmp.h2o_1 = tmp_0.r1l(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, CalculateVersion$_get_gitRepoArgument_$ref_ekksr7(), null));
|
|
435
386
|
var tmp_2 = this;
|
|
436
387
|
var tmp_3 = option(this, ['--git-repo'], VOID, VOID, VOID, 'PWD');
|
|
437
388
|
var tmp_4 = KProperty1;
|
|
438
|
-
tmp_2.i2o_1 = tmp_3.
|
|
389
|
+
tmp_2.i2o_1 = tmp_3.v1m(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, CalculateVersion$_get_gitRepoOption_$ref_ms8ohh(), null));
|
|
439
390
|
var tmp_5 = this;
|
|
440
391
|
var tmp_6 = default_0(boolean(option(this, [])), true);
|
|
441
392
|
var tmp_7 = KProperty1;
|
|
442
|
-
tmp_5.j2o_1 = tmp_6.
|
|
393
|
+
tmp_5.j2o_1 = tmp_6.v1m(this, getPropertyCallableRef('implicitPatch', 1, tmp_7, CalculateVersion$_get_implicitPatch_$ref_8lm4hh(), null));
|
|
443
394
|
var tmp_8 = this;
|
|
444
395
|
var tmp_9 = default_0(boolean(option(this, [])), true);
|
|
445
396
|
var tmp_10 = KProperty1;
|
|
446
|
-
tmp_8.k2o_1 = tmp_9.
|
|
397
|
+
tmp_8.k2o_1 = tmp_9.v1m(this, getPropertyCallableRef('disableDetached', 1, tmp_10, CalculateVersion$_get_disableDetached_$ref_yxb19o(), null));
|
|
447
398
|
var tmp_11 = this;
|
|
448
399
|
var tmp_12 = default_0(boolean(option(this, [])), false);
|
|
449
400
|
var tmp_13 = KProperty1;
|
|
450
|
-
tmp_11.l2o_1 = tmp_12.
|
|
401
|
+
tmp_11.l2o_1 = tmp_12.v1m(this, getPropertyCallableRef('forceSnapshot', 1, tmp_13, CalculateVersion$_get_forceSnapshot_$ref_8rl68v(), null));
|
|
451
402
|
var tmp_14 = this;
|
|
452
403
|
var tmp_15 = option(this, []);
|
|
453
404
|
var tmp_16 = KProperty1;
|
|
454
|
-
tmp_14.m2o_1 = tmp_15.
|
|
405
|
+
tmp_14.m2o_1 = tmp_15.v1m(this, getPropertyCallableRef('releaseBranch', 1, tmp_16, CalculateVersion$_get_releaseBranch_$ref_3xh47v(), null));
|
|
455
406
|
var tmp_17 = this;
|
|
456
|
-
|
|
407
|
+
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
408
|
+
var this_0 = option(this, ['--format'], 'Output format: text (default) or json');
|
|
409
|
+
// Inline function 'kotlin.enumValues' call
|
|
410
|
+
// Inline function 'kotlin.collections.associateBy' call
|
|
411
|
+
var this_1 = values();
|
|
412
|
+
var capacity = coerceAtLeast(mapCapacity(this_1.length), 16);
|
|
413
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
414
|
+
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
415
|
+
var inductionVariable = 0;
|
|
416
|
+
var last = this_1.length;
|
|
417
|
+
while (inductionVariable < last) {
|
|
418
|
+
var element = this_1[inductionVariable];
|
|
419
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
420
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
421
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
422
|
+
var tmp$ret$4 = element.x2_1.toLowerCase();
|
|
423
|
+
destination.p2(tmp$ret$4, element);
|
|
424
|
+
}
|
|
425
|
+
var tmp$ret$0 = choice(this_0, destination, VOID, true);
|
|
426
|
+
var tmp_18 = default_0(tmp$ret$0, OutputFormat_TEXT_getInstance());
|
|
457
427
|
var tmp_19 = KProperty1;
|
|
458
|
-
tmp_17.n2o_1 = tmp_18.
|
|
428
|
+
tmp_17.n2o_1 = tmp_18.v1m(this, getPropertyCallableRef('format', 1, tmp_19, CalculateVersion$_get_format_$ref_clhcb9(), null));
|
|
459
429
|
var tmp_20 = this;
|
|
460
430
|
var tmp_21 = default_0(option(this, []), Defaults_getInstance().ao_1.tb_1);
|
|
461
431
|
var tmp_22 = KProperty1;
|
|
462
|
-
tmp_20.o2o_1 = tmp_21.
|
|
432
|
+
tmp_20.o2o_1 = tmp_21.v1m(this, getPropertyCallableRef('majorRegex', 1, tmp_22, CalculateVersion$_get_majorRegex_$ref_erugf6(), null));
|
|
463
433
|
var tmp_23 = this;
|
|
464
434
|
var tmp_24 = default_0(option(this, []), Defaults_getInstance().zn_1.tb_1);
|
|
465
435
|
var tmp_25 = KProperty1;
|
|
466
|
-
tmp_23.p2o_1 = tmp_24.
|
|
436
|
+
tmp_23.p2o_1 = tmp_24.v1m(this, getPropertyCallableRef('minorRegex', 1, tmp_25, CalculateVersion$_get_minorRegex_$ref_u1fzja(), null));
|
|
467
437
|
var tmp_26 = this;
|
|
468
438
|
var tmp_27 = default_0(option(this, []), Defaults_getInstance().yn_1.tb_1);
|
|
469
439
|
var tmp_28 = KProperty1;
|
|
470
|
-
tmp_26.q2o_1 = tmp_27.
|
|
440
|
+
tmp_26.q2o_1 = tmp_27.v1m(this, getPropertyCallableRef('patchRegex', 1, tmp_28, CalculateVersion$_get_patchRegex_$ref_124637(), null));
|
|
471
441
|
var tmp_29 = this;
|
|
472
442
|
var tmp_30 = default_0(option(this, []), Defaults_getInstance().xn_1.tb_1);
|
|
473
443
|
var tmp_31 = KProperty1;
|
|
474
|
-
tmp_29.r2o_1 = tmp_30.
|
|
444
|
+
tmp_29.r2o_1 = tmp_30.v1m(this, getPropertyCallableRef('noneRegex', 1, tmp_31, CalculateVersion$_get_noneRegex_$ref_vcaxfl(), null));
|
|
475
445
|
var tmp_32 = this;
|
|
476
446
|
var tmp0 = option(this, []);
|
|
477
447
|
// Inline function 'com.github.ajalt.clikt.parameters.options.check' call
|
|
478
448
|
var message = "version regex must include groups named 'major', 'minor', 'patch', and 'none'.";
|
|
479
449
|
// Inline function 'com.github.ajalt.clikt.parameters.options.check' call
|
|
480
450
|
// Inline function 'com.github.ajalt.clikt.parameters.options.validate' call
|
|
481
|
-
var tmp_33 = tmp0.
|
|
482
|
-
var tmp_34 = tmp0.
|
|
483
|
-
var tmp_35 = tmp0.
|
|
484
|
-
var tmp_36 = tmp0.
|
|
451
|
+
var tmp_33 = tmp0.m1l();
|
|
452
|
+
var tmp_34 = tmp0.o1m();
|
|
453
|
+
var tmp_35 = tmp0.n1l();
|
|
454
|
+
var tmp_36 = tmp0.p1m(tmp_33, tmp_34, tmp_35, CalculateVersion$versionRegex$delegate$lambda(Companion_instance, message));
|
|
485
455
|
var tmp_37 = KProperty1;
|
|
486
|
-
tmp_32.s2o_1 = tmp_36.
|
|
456
|
+
tmp_32.s2o_1 = tmp_36.v1m(this, getPropertyCallableRef('versionRegex', 1, tmp_37, CalculateVersion$_get_versionRegex_$ref_f466m5(), null));
|
|
487
457
|
}
|
|
488
458
|
protoOf(CalculateVersion).k1d = function () {
|
|
489
459
|
var tmp = new TaggerCore(new GitAdapter(_get_workingDirectory__eyfbj(this)));
|
|
@@ -552,12 +522,12 @@
|
|
|
552
522
|
var _iterator__ex2g4s_0 = this_0.r();
|
|
553
523
|
while (_iterator__ex2g4s_0.s()) {
|
|
554
524
|
var item = _iterator__ex2g4s_0.t();
|
|
555
|
-
var tmp$ret$2 = Companion_instance_0.
|
|
525
|
+
var tmp$ret$2 = Companion_instance_0.n1r(get_jsonPrimitive(item).p2c());
|
|
556
526
|
destination.v(tmp$ret$2);
|
|
557
527
|
}
|
|
558
528
|
return destination;
|
|
559
529
|
}
|
|
560
|
-
return Companion_instance_0.
|
|
530
|
+
return Companion_instance_0.m1r(get_jsonPrimitive(cursor).p2c());
|
|
561
531
|
} catch ($p) {
|
|
562
532
|
if ($p instanceof IllegalArgumentException) {
|
|
563
533
|
var _unused_var__etf5q3 = $p;
|
|
@@ -570,7 +540,7 @@
|
|
|
570
540
|
function parts($this, $receiver) {
|
|
571
541
|
var tmp0_safe_receiver = $receiver.y1d();
|
|
572
542
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : split(tmp0_safe_receiver, ['.']);
|
|
573
|
-
return tmp1_elvis_lhs == null ? listOf(kebabToCamelCase($this, Companion_instance_1.
|
|
543
|
+
return tmp1_elvis_lhs == null ? listOf(kebabToCamelCase($this, Companion_instance_1.o1r($receiver))) : tmp1_elvis_lhs;
|
|
574
544
|
}
|
|
575
545
|
function kebabToCamelCase($this, $receiver) {
|
|
576
546
|
// Inline function 'kotlin.text.toRegex' call
|
|
@@ -596,7 +566,7 @@
|
|
|
596
566
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
597
567
|
var this_2 = serializer(this_1, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
598
568
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
599
|
-
var config = this_0.
|
|
569
|
+
var config = this_0.h2a(tmp$ret$1, fileContents);
|
|
600
570
|
// Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
|
|
601
571
|
var this_3 = Default_getInstance();
|
|
602
572
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -604,7 +574,7 @@
|
|
|
604
574
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
605
575
|
var this_5 = serializer(this_4, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
606
576
|
var tmp$ret$4 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
607
|
-
var configAsElement = this_3.
|
|
577
|
+
var configAsElement = this_3.i2a(tmp$ret$4, config);
|
|
608
578
|
return configAsElement;
|
|
609
579
|
}
|
|
610
580
|
function ConfigFileSource$kebabToCamelCase$lambda(it) {
|
|
@@ -617,7 +587,7 @@
|
|
|
617
587
|
function ConfigFileSource(envvarReader) {
|
|
618
588
|
this.t2o_1 = envvarReader;
|
|
619
589
|
}
|
|
620
|
-
protoOf(ConfigFileSource).
|
|
590
|
+
protoOf(ConfigFileSource).x1m = function (context, option) {
|
|
621
591
|
var tmp0_elvis_lhs = readConfigFileAsJsonElement(this);
|
|
622
592
|
var tmp;
|
|
623
593
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -630,11 +600,11 @@
|
|
|
630
600
|
};
|
|
631
601
|
function _get_file__d6iv67($this) {
|
|
632
602
|
var tmp = KProperty1;
|
|
633
|
-
return $this.j2p_1.
|
|
603
|
+
return $this.j2p_1.l1m($this, getPropertyCallableRef('file', 1, tmp, GenerateSettingsFile$_get_file_$ref_3dvoj2_0(), null));
|
|
634
604
|
}
|
|
635
605
|
function _get_merge__eb7eqv($this) {
|
|
636
606
|
var tmp = KProperty1;
|
|
637
|
-
return $this.k2p_1.
|
|
607
|
+
return $this.k2p_1.l1m($this, getPropertyCallableRef('merge', 1, tmp, GenerateSettingsFile$_get_merge_$ref_3aq3hk_0(), null));
|
|
638
608
|
}
|
|
639
609
|
function mergeJson($this, defaultConfig, originalData) {
|
|
640
610
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
@@ -657,9 +627,9 @@
|
|
|
657
627
|
} else {
|
|
658
628
|
tmp = value;
|
|
659
629
|
}
|
|
660
|
-
builder.
|
|
630
|
+
builder.x2c(key, tmp);
|
|
661
631
|
}
|
|
662
|
-
var mergeData = builder.
|
|
632
|
+
var mergeData = builder.r2b();
|
|
663
633
|
return mergeData;
|
|
664
634
|
}
|
|
665
635
|
function GenerateSettingsFile$_get_file_$ref_3dvoj2() {
|
|
@@ -683,8 +653,8 @@
|
|
|
683
653
|
};
|
|
684
654
|
}
|
|
685
655
|
function GenerateSettingsFile$run$lambda($this$Json) {
|
|
686
|
-
$this$Json.
|
|
687
|
-
$this$Json.
|
|
656
|
+
$this$Json.d2b_1 = true;
|
|
657
|
+
$this$Json.z2a_1 = true;
|
|
688
658
|
return Unit_instance;
|
|
689
659
|
}
|
|
690
660
|
function GenerateSettingsFile() {
|
|
@@ -692,11 +662,11 @@
|
|
|
692
662
|
var tmp = this;
|
|
693
663
|
var tmp_0 = option(this, []);
|
|
694
664
|
var tmp_1 = KProperty1;
|
|
695
|
-
tmp.j2p_1 = tmp_0.
|
|
665
|
+
tmp.j2p_1 = tmp_0.v1m(this, getPropertyCallableRef('file', 1, tmp_1, GenerateSettingsFile$_get_file_$ref_3dvoj2(), null));
|
|
696
666
|
var tmp_2 = this;
|
|
697
667
|
var tmp_3 = boolean(option(this, []));
|
|
698
668
|
var tmp_4 = KProperty1;
|
|
699
|
-
tmp_2.k2p_1 = tmp_3.
|
|
669
|
+
tmp_2.k2p_1 = tmp_3.v1m(this, getPropertyCallableRef('merge', 1, tmp_4, GenerateSettingsFile$_get_merge_$ref_3aq3hk(), null));
|
|
700
670
|
}
|
|
701
671
|
protoOf(GenerateSettingsFile).k1d = function () {
|
|
702
672
|
var prettyJsonFormatter = Json(VOID, GenerateSettingsFile$run$lambda);
|
|
@@ -707,7 +677,7 @@
|
|
|
707
677
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
708
678
|
var this_1 = serializer(this_0, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
709
679
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
710
|
-
var defaultConfig = prettyJsonFormatter.
|
|
680
|
+
var defaultConfig = prettyJsonFormatter.i2a(tmp$ret$1, value);
|
|
711
681
|
// Inline function 'kotlin.text.orEmpty' call
|
|
712
682
|
var tmp0_elvis_lhs = _get_file__d6iv67(this);
|
|
713
683
|
// Inline function 'kotlin.text.ifBlank' call
|
|
@@ -726,7 +696,7 @@
|
|
|
726
696
|
if (!(existingFileData == null)) {
|
|
727
697
|
var tmp_1;
|
|
728
698
|
if (_get_merge__eb7eqv(this) === true) {
|
|
729
|
-
var originalData = prettyJsonFormatter.
|
|
699
|
+
var originalData = prettyJsonFormatter.j2a(existingFileData);
|
|
730
700
|
tmp_1 = mergeJson(this, defaultConfig, originalData);
|
|
731
701
|
} else {
|
|
732
702
|
throw new CliktError('File already exists.');
|
|
@@ -743,7 +713,7 @@
|
|
|
743
713
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
744
714
|
var this_4 = serializer(this_3, createKType(getKClass(JsonElement), arrayOf([]), false));
|
|
745
715
|
var tmp$ret$7 = isInterface(this_4, KSerializer) ? this_4 : THROW_CCE();
|
|
746
|
-
var tmp$ret$6 = prettyJsonFormatter.
|
|
716
|
+
var tmp$ret$6 = prettyJsonFormatter.g2a(tmp$ret$7, outputConfig);
|
|
747
717
|
this.x1b(tmp$ret$6);
|
|
748
718
|
} else {
|
|
749
719
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
@@ -752,19 +722,19 @@
|
|
|
752
722
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
753
723
|
var this_6 = serializer(this_5, createKType(getKClass(JsonElement), arrayOf([]), false));
|
|
754
724
|
var tmp$ret$10 = isInterface(this_6, KSerializer) ? this_6 : THROW_CCE();
|
|
755
|
-
var tmp$ret$9 = prettyJsonFormatter.
|
|
725
|
+
var tmp$ret$9 = prettyJsonFormatter.g2a(tmp$ret$10, outputConfig);
|
|
756
726
|
writeToFile(tmp$ret$9, settingsFile);
|
|
757
727
|
this.x1b('Saved to ' + fileName);
|
|
758
728
|
}
|
|
759
729
|
};
|
|
760
|
-
function
|
|
730
|
+
function Companion() {
|
|
761
731
|
}
|
|
762
|
-
protoOf(
|
|
732
|
+
protoOf(Companion).r2c = function () {
|
|
763
733
|
return $serializer_getInstance();
|
|
764
734
|
};
|
|
765
|
-
var
|
|
766
|
-
function
|
|
767
|
-
return
|
|
735
|
+
var Companion_instance_2;
|
|
736
|
+
function Companion_getInstance() {
|
|
737
|
+
return Companion_instance_2;
|
|
768
738
|
}
|
|
769
739
|
function $serializer() {
|
|
770
740
|
$serializer_instance = this;
|
|
@@ -870,8 +840,8 @@
|
|
|
870
840
|
function VersionData$Companion$$childSerializers$_anonymous__gd9ivc() {
|
|
871
841
|
return new ArrayListSerializer(StringSerializer_getInstance());
|
|
872
842
|
}
|
|
873
|
-
function
|
|
874
|
-
|
|
843
|
+
function Companion_0() {
|
|
844
|
+
Companion_instance_3 = this;
|
|
875
845
|
var tmp = this;
|
|
876
846
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
877
847
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -879,11 +849,11 @@
|
|
|
879
849
|
// Inline function 'kotlin.js.asDynamic' call
|
|
880
850
|
tmp.p2p_1 = [null, null, lazy(tmp_0, VersionData$Companion$$childSerializers$_anonymous__gd9ivc)];
|
|
881
851
|
}
|
|
882
|
-
var
|
|
883
|
-
function
|
|
884
|
-
if (
|
|
885
|
-
new
|
|
886
|
-
return
|
|
852
|
+
var Companion_instance_3;
|
|
853
|
+
function Companion_getInstance_0() {
|
|
854
|
+
if (Companion_instance_3 == null)
|
|
855
|
+
new Companion_0();
|
|
856
|
+
return Companion_instance_3;
|
|
887
857
|
}
|
|
888
858
|
function $serializer_0() {
|
|
889
859
|
$serializer_instance_0 = this;
|
|
@@ -896,7 +866,7 @@
|
|
|
896
866
|
protoOf($serializer_0).r2p = function (encoder, value) {
|
|
897
867
|
var tmp0_desc = this.q2p_1;
|
|
898
868
|
var tmp1_output = encoder.dr(tmp0_desc);
|
|
899
|
-
var tmp2_cached =
|
|
869
|
+
var tmp2_cached = Companion_getInstance_0().p2p_1;
|
|
900
870
|
tmp1_output.rs(tmp0_desc, 0, value.s2p_1);
|
|
901
871
|
tmp1_output.js(tmp0_desc, 1, value.t2p_1);
|
|
902
872
|
if (tmp1_output.zs(tmp0_desc, 2) ? true : !equals(value.u2p_1, emptyList())) {
|
|
@@ -916,7 +886,7 @@
|
|
|
916
886
|
var tmp5_local1 = false;
|
|
917
887
|
var tmp6_local2 = null;
|
|
918
888
|
var tmp7_input = decoder.dr(tmp0_desc);
|
|
919
|
-
var tmp8_cached =
|
|
889
|
+
var tmp8_cached = Companion_getInstance_0().p2p_1;
|
|
920
890
|
if (tmp7_input.tr()) {
|
|
921
891
|
tmp4_local0 = tmp7_input.nr(tmp0_desc, 0);
|
|
922
892
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -954,7 +924,7 @@
|
|
|
954
924
|
return this.q2p_1;
|
|
955
925
|
};
|
|
956
926
|
protoOf($serializer_0).oy = function () {
|
|
957
|
-
var tmp0_cached =
|
|
927
|
+
var tmp0_cached = Companion_getInstance_0().p2p_1;
|
|
958
928
|
// Inline function 'kotlin.arrayOf' call
|
|
959
929
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
960
930
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -982,7 +952,7 @@
|
|
|
982
952
|
return VersionData_init_$Init$(seen0, version, snapshot, snapshotReasons, serializationConstructorMarker, objectCreate(protoOf(VersionData)));
|
|
983
953
|
}
|
|
984
954
|
function VersionData(version, snapshot, snapshotReasons) {
|
|
985
|
-
|
|
955
|
+
Companion_getInstance_0();
|
|
986
956
|
snapshotReasons = snapshotReasons === VOID ? emptyList() : snapshotReasons;
|
|
987
957
|
this.s2p_1 = version;
|
|
988
958
|
this.t2p_1 = snapshot;
|
|
@@ -1010,14 +980,14 @@
|
|
|
1010
980
|
return false;
|
|
1011
981
|
return true;
|
|
1012
982
|
};
|
|
1013
|
-
function
|
|
983
|
+
function Companion_1() {
|
|
1014
984
|
}
|
|
1015
|
-
protoOf(
|
|
985
|
+
protoOf(Companion_1).r2c = function () {
|
|
1016
986
|
return $serializer_getInstance_1();
|
|
1017
987
|
};
|
|
1018
|
-
var
|
|
1019
|
-
function
|
|
1020
|
-
return
|
|
988
|
+
var Companion_instance_4;
|
|
989
|
+
function Companion_getInstance_1() {
|
|
990
|
+
return Companion_instance_4;
|
|
1021
991
|
}
|
|
1022
992
|
function $serializer_1() {
|
|
1023
993
|
$serializer_instance_1 = this;
|
|
@@ -1134,14 +1104,14 @@
|
|
|
1134
1104
|
return false;
|
|
1135
1105
|
return true;
|
|
1136
1106
|
};
|
|
1137
|
-
function
|
|
1107
|
+
function Companion_2() {
|
|
1138
1108
|
}
|
|
1139
|
-
protoOf(
|
|
1109
|
+
protoOf(Companion_2).r2c = function () {
|
|
1140
1110
|
return $serializer_getInstance_2();
|
|
1141
1111
|
};
|
|
1142
|
-
var
|
|
1143
|
-
function
|
|
1144
|
-
return
|
|
1112
|
+
var Companion_instance_5;
|
|
1113
|
+
function Companion_getInstance_2() {
|
|
1114
|
+
return Companion_instance_5;
|
|
1145
1115
|
}
|
|
1146
1116
|
function $serializer_2() {
|
|
1147
1117
|
$serializer_instance_2 = this;
|
|
@@ -1244,11 +1214,11 @@
|
|
|
1244
1214
|
return false;
|
|
1245
1215
|
return true;
|
|
1246
1216
|
};
|
|
1247
|
-
function
|
|
1217
|
+
function Companion_3() {
|
|
1248
1218
|
}
|
|
1249
|
-
var
|
|
1250
|
-
function
|
|
1251
|
-
return
|
|
1219
|
+
var Companion_instance_6;
|
|
1220
|
+
function Companion_getInstance_3() {
|
|
1221
|
+
return Companion_instance_6;
|
|
1252
1222
|
}
|
|
1253
1223
|
function $serializer_3() {
|
|
1254
1224
|
$serializer_instance_3 = this;
|
|
@@ -1337,13 +1307,13 @@
|
|
|
1337
1307
|
return true;
|
|
1338
1308
|
};
|
|
1339
1309
|
function versionSuccessResponse(data) {
|
|
1340
|
-
return Default_getInstance().
|
|
1310
|
+
return Default_getInstance().g2a(Companion_instance_2.r2c(), new VersionSuccessResponse('success', data));
|
|
1341
1311
|
}
|
|
1342
1312
|
function tagSuccessResponse(data) {
|
|
1343
|
-
return Default_getInstance().
|
|
1313
|
+
return Default_getInstance().g2a(Companion_instance_5.r2c(), new TagSuccessResponse('success', data));
|
|
1344
1314
|
}
|
|
1345
1315
|
function errorResponse(message, code) {
|
|
1346
|
-
return Default_getInstance().
|
|
1316
|
+
return Default_getInstance().g2a(Companion_instance_4.r2c(), new ErrorResponse('error', message, code));
|
|
1347
1317
|
}
|
|
1348
1318
|
function main_0(args) {
|
|
1349
1319
|
return main(cli(), platformArgCorrection(args));
|
|
@@ -1356,11 +1326,11 @@
|
|
|
1356
1326
|
}
|
|
1357
1327
|
function _get_gitRepoArgument__zxde8_0($this) {
|
|
1358
1328
|
var tmp = KProperty1;
|
|
1359
|
-
return $this.w2q_1.
|
|
1329
|
+
return $this.w2q_1.l1m($this, getPropertyCallableRef('gitRepoArgument', 1, tmp, Tag$_get_gitRepoArgument_$ref_dketaj_0(), null));
|
|
1360
1330
|
}
|
|
1361
1331
|
function _get_gitRepoOption__rk7ta0_0($this) {
|
|
1362
1332
|
var tmp = KProperty1;
|
|
1363
|
-
return $this.x2q_1.
|
|
1333
|
+
return $this.x2q_1.l1m($this, getPropertyCallableRef('gitRepoOption', 1, tmp, Tag$_get_gitRepoOption_$ref_10iywz_0(), null));
|
|
1364
1334
|
}
|
|
1365
1335
|
function _get_workingDirectory__eyfbj_0($this) {
|
|
1366
1336
|
var tmp0_elvis_lhs = _get_gitRepoArgument__zxde8_0($this);
|
|
@@ -1375,43 +1345,27 @@
|
|
|
1375
1345
|
}
|
|
1376
1346
|
function _get_releaseBranch__pqrgbs_0($this) {
|
|
1377
1347
|
var tmp = KProperty1;
|
|
1378
|
-
return $this.y2q_1.
|
|
1348
|
+
return $this.y2q_1.l1m($this, getPropertyCallableRef('releaseBranch', 1, tmp, Tag$_get_releaseBranch_$ref_rq8rmb_0(), null));
|
|
1379
1349
|
}
|
|
1380
1350
|
function _get_version__2bx7w9($this) {
|
|
1381
1351
|
var tmp = KProperty1;
|
|
1382
|
-
return $this.z2q_1.
|
|
1352
|
+
return $this.z2q_1.l1m($this, getPropertyCallableRef('version', 1, tmp, Tag$_get_version_$ref_p7wb9e_0(), null));
|
|
1383
1353
|
}
|
|
1384
1354
|
function _get_userName__tupjmd($this) {
|
|
1385
1355
|
var tmp = KProperty1;
|
|
1386
|
-
return $this.a2r_1.
|
|
1356
|
+
return $this.a2r_1.l1m($this, getPropertyCallableRef('userName', 1, tmp, Tag$_get_userName_$ref_kslo5u_0(), null));
|
|
1387
1357
|
}
|
|
1388
1358
|
function _get_userEmail__21hfkw($this) {
|
|
1389
1359
|
var tmp = KProperty1;
|
|
1390
|
-
return $this.b2r_1.
|
|
1360
|
+
return $this.b2r_1.l1m($this, getPropertyCallableRef('userEmail', 1, tmp, Tag$_get_userEmail_$ref_vl09cr_0(), null));
|
|
1391
1361
|
}
|
|
1392
1362
|
function _get_warningsAsErrors__7mpwfd($this) {
|
|
1393
1363
|
var tmp = KProperty1;
|
|
1394
|
-
return $this.c2r_1.
|
|
1395
|
-
}
|
|
1396
|
-
function _get_formatString__ciw4gt_0($this) {
|
|
1397
|
-
var tmp = KProperty1;
|
|
1398
|
-
return $this.d2r_1.k1m($this, getPropertyCallableRef('formatString', 1, tmp, Tag$_get_formatString_$ref_izm3wc_0(), null));
|
|
1364
|
+
return $this.c2r_1.l1m($this, getPropertyCallableRef('warningsAsErrors', 1, tmp, Tag$_get_warningsAsErrors_$ref_gj8a6o_0(), null));
|
|
1399
1365
|
}
|
|
1400
1366
|
function _get_format__qlarck_0($this) {
|
|
1401
|
-
var tmp;
|
|
1402
|
-
|
|
1403
|
-
tmp = Companion_instance_2.r2n(_get_formatString__ciw4gt_0($this));
|
|
1404
|
-
} catch ($p) {
|
|
1405
|
-
var tmp_0;
|
|
1406
|
-
if ($p instanceof IllegalArgumentException) {
|
|
1407
|
-
var e = $p;
|
|
1408
|
-
var tmp0_elvis_lhs = e.message;
|
|
1409
|
-
throw new CliktError(tmp0_elvis_lhs == null ? 'Invalid format' : tmp0_elvis_lhs);
|
|
1410
|
-
} else {
|
|
1411
|
-
throw $p;
|
|
1412
|
-
}
|
|
1413
|
-
}
|
|
1414
|
-
return tmp;
|
|
1367
|
+
var tmp = KProperty1;
|
|
1368
|
+
return $this.d2r_1.l1m($this, getPropertyCallableRef('format', 1, tmp, Tag$_get_format_$ref_i96vgt_0(), null));
|
|
1415
1369
|
}
|
|
1416
1370
|
function Tag$lambda($this$context) {
|
|
1417
1371
|
$this$context.r1c([new ConfigFileSource($this$context.n1c_1)]);
|
|
@@ -1487,14 +1441,14 @@
|
|
|
1487
1441
|
return _get_warningsAsErrors__7mpwfd(p0);
|
|
1488
1442
|
};
|
|
1489
1443
|
}
|
|
1490
|
-
function Tag$
|
|
1444
|
+
function Tag$_get_format_$ref_i96vgt() {
|
|
1491
1445
|
return function (p0) {
|
|
1492
|
-
return
|
|
1446
|
+
return _get_format__qlarck_0(p0);
|
|
1493
1447
|
};
|
|
1494
1448
|
}
|
|
1495
|
-
function Tag$
|
|
1449
|
+
function Tag$_get_format_$ref_i96vgt_0() {
|
|
1496
1450
|
return function (p0) {
|
|
1497
|
-
return
|
|
1451
|
+
return _get_format__qlarck_0(p0);
|
|
1498
1452
|
};
|
|
1499
1453
|
}
|
|
1500
1454
|
function Tag() {
|
|
@@ -1503,35 +1457,54 @@
|
|
|
1503
1457
|
var tmp = this;
|
|
1504
1458
|
var tmp_0 = optional(argument(this, 'git-repo'));
|
|
1505
1459
|
var tmp_1 = KProperty1;
|
|
1506
|
-
tmp.w2q_1 = tmp_0.
|
|
1460
|
+
tmp.w2q_1 = tmp_0.r1l(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, Tag$_get_gitRepoArgument_$ref_dketaj(), null));
|
|
1507
1461
|
var tmp_2 = this;
|
|
1508
1462
|
var tmp_3 = option(this, ['--git-repo'], VOID, VOID, VOID, 'PWD');
|
|
1509
1463
|
var tmp_4 = KProperty1;
|
|
1510
|
-
tmp_2.x2q_1 = tmp_3.
|
|
1464
|
+
tmp_2.x2q_1 = tmp_3.v1m(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, Tag$_get_gitRepoOption_$ref_10iywz(), null));
|
|
1511
1465
|
var tmp_5 = this;
|
|
1512
1466
|
var tmp_6 = required(option(this, []));
|
|
1513
1467
|
var tmp_7 = KProperty1;
|
|
1514
|
-
tmp_5.y2q_1 = tmp_6.
|
|
1468
|
+
tmp_5.y2q_1 = tmp_6.v1m(this, getPropertyCallableRef('releaseBranch', 1, tmp_7, Tag$_get_releaseBranch_$ref_rq8rmb(), null));
|
|
1515
1469
|
var tmp_8 = this;
|
|
1516
1470
|
var tmp_9 = required(option(this, []));
|
|
1517
1471
|
var tmp_10 = KProperty1;
|
|
1518
|
-
tmp_8.z2q_1 = tmp_9.
|
|
1472
|
+
tmp_8.z2q_1 = tmp_9.v1m(this, getPropertyCallableRef('version', 1, tmp_10, Tag$_get_version_$ref_p7wb9e(), null));
|
|
1519
1473
|
var tmp_11 = this;
|
|
1520
1474
|
var tmp_12 = option(this, []);
|
|
1521
1475
|
var tmp_13 = KProperty1;
|
|
1522
|
-
tmp_11.a2r_1 = tmp_12.
|
|
1476
|
+
tmp_11.a2r_1 = tmp_12.v1m(this, getPropertyCallableRef('userName', 1, tmp_13, Tag$_get_userName_$ref_kslo5u(), null));
|
|
1523
1477
|
var tmp_14 = this;
|
|
1524
1478
|
var tmp_15 = option(this, []);
|
|
1525
1479
|
var tmp_16 = KProperty1;
|
|
1526
|
-
tmp_14.b2r_1 = tmp_15.
|
|
1480
|
+
tmp_14.b2r_1 = tmp_15.v1m(this, getPropertyCallableRef('userEmail', 1, tmp_16, Tag$_get_userEmail_$ref_vl09cr(), null));
|
|
1527
1481
|
var tmp_17 = this;
|
|
1528
1482
|
var tmp_18 = default_0(boolean(option(this, [])), false);
|
|
1529
1483
|
var tmp_19 = KProperty1;
|
|
1530
|
-
tmp_17.c2r_1 = tmp_18.
|
|
1484
|
+
tmp_17.c2r_1 = tmp_18.v1m(this, getPropertyCallableRef('warningsAsErrors', 1, tmp_19, Tag$_get_warningsAsErrors_$ref_gj8a6o(), null));
|
|
1531
1485
|
var tmp_20 = this;
|
|
1532
|
-
|
|
1486
|
+
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
1487
|
+
var this_0 = option(this, ['--format'], 'Output format: text (default) or json');
|
|
1488
|
+
// Inline function 'kotlin.enumValues' call
|
|
1489
|
+
// Inline function 'kotlin.collections.associateBy' call
|
|
1490
|
+
var this_1 = values();
|
|
1491
|
+
var capacity = coerceAtLeast(mapCapacity(this_1.length), 16);
|
|
1492
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
1493
|
+
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
1494
|
+
var inductionVariable = 0;
|
|
1495
|
+
var last = this_1.length;
|
|
1496
|
+
while (inductionVariable < last) {
|
|
1497
|
+
var element = this_1[inductionVariable];
|
|
1498
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1499
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
1500
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1501
|
+
var tmp$ret$4 = element.x2_1.toLowerCase();
|
|
1502
|
+
destination.p2(tmp$ret$4, element);
|
|
1503
|
+
}
|
|
1504
|
+
var tmp$ret$0 = choice(this_0, destination, VOID, true);
|
|
1505
|
+
var tmp_21 = default_0(tmp$ret$0, OutputFormat_TEXT_getInstance());
|
|
1533
1506
|
var tmp_22 = KProperty1;
|
|
1534
|
-
tmp_20.d2r_1 = tmp_21.
|
|
1507
|
+
tmp_20.d2r_1 = tmp_21.v1m(this, getPropertyCallableRef('format', 1, tmp_22, Tag$_get_format_$ref_i96vgt(), null));
|
|
1535
1508
|
}
|
|
1536
1509
|
protoOf(Tag).k1d = function () {
|
|
1537
1510
|
// Inline function 'kotlin.let' call
|
|
@@ -1574,7 +1547,7 @@
|
|
|
1574
1547
|
};
|
|
1575
1548
|
function _get_quiet__c6dzoj($this) {
|
|
1576
1549
|
var tmp = KProperty1;
|
|
1577
|
-
return $this.t2r_1.
|
|
1550
|
+
return $this.t2r_1.l1m($this, getPropertyCallableRef('quiet', 1, tmp, Tagger$_get_quiet_$ref_s522ri_0(), null));
|
|
1578
1551
|
}
|
|
1579
1552
|
function Tagger$lambda($version, $this) {
|
|
1580
1553
|
return function ($this$eagerOption) {
|
|
@@ -1596,14 +1569,14 @@
|
|
|
1596
1569
|
function Tagger() {
|
|
1597
1570
|
CliktCommand.call(this);
|
|
1598
1571
|
// Inline function 'com.github.ajalt.clikt.parameters.options.versionOption' call
|
|
1599
|
-
var version = Versions_instance.
|
|
1572
|
+
var version = Versions_instance.r2n_1;
|
|
1600
1573
|
var help = 'Show the version and exit';
|
|
1601
1574
|
var names = setOf('--version');
|
|
1602
1575
|
eagerOption(this, names, help, VOID, VOID, VOID, Tagger$lambda(version, this));
|
|
1603
1576
|
var tmp = this;
|
|
1604
1577
|
var tmp_0 = flag(option(this, ['--quiet', '-q']), [], false);
|
|
1605
1578
|
var tmp_1 = KProperty1;
|
|
1606
|
-
tmp.t2r_1 = tmp_0.
|
|
1579
|
+
tmp.t2r_1 = tmp_0.v1m(this, getPropertyCallableRef('quiet', 1, tmp_1, Tagger$_get_quiet_$ref_s522ri(), null));
|
|
1607
1580
|
}
|
|
1608
1581
|
protoOf(Tagger).k1d = function () {
|
|
1609
1582
|
if (!_get_quiet__c6dzoj(this) && this.f19().s1c() == null) {
|
|
@@ -1620,10 +1593,9 @@
|
|
|
1620
1593
|
//region block: init
|
|
1621
1594
|
Versions_instance = new Versions();
|
|
1622
1595
|
Companion_instance_2 = new Companion();
|
|
1623
|
-
|
|
1596
|
+
Companion_instance_4 = new Companion_1();
|
|
1624
1597
|
Companion_instance_5 = new Companion_2();
|
|
1625
1598
|
Companion_instance_6 = new Companion_3();
|
|
1626
|
-
Companion_instance_7 = new Companion_4();
|
|
1627
1599
|
//endregion
|
|
1628
1600
|
mainWrapper();
|
|
1629
1601
|
return _;
|