git-semver-tagger 1.12.1 → 2.0.1
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/clikt-clikt-mordant.js +78 -77
- package/kotlin/clikt-clikt-mordant.js.map +1 -1
- package/kotlin/clikt-clikt.js +1340 -1340
- package/kotlin/colormath-root-colormath.js +433 -433
- package/kotlin/command-line-tools-tagger-cli.js +352 -337
- package/kotlin/command-line-tools-tagger-cli.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +9 -9
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1758 -1758
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1487 -1487
- package/kotlin/mordant-mordant.js +1198 -1198
- package/kotlin/tools-tagger-core.js +109 -97
- package/kotlin/tools-tagger-core.js.map +1 -1
- package/kotlin/tools-tagger-json.js +150 -150
- package/package.json +1 -1
|
@@ -91,6 +91,7 @@
|
|
|
91
91
|
var tag = kotlin_com_zegreatrob_tools_tagger_core.$_$.g;
|
|
92
92
|
var Error_0 = kotlin_com_zegreatrob_tools_tagger_core.$_$.a;
|
|
93
93
|
var Success_getInstance = kotlin_com_zegreatrob_tools_tagger_core.$_$.h;
|
|
94
|
+
var MordantHelpFormatter = kotlin_clikt_clikt_mordant.$_$.b;
|
|
94
95
|
var PrintMessage = kotlin_clikt_clikt.$_$.d;
|
|
95
96
|
var setOf = kotlin_kotlin.$_$.u6;
|
|
96
97
|
var eagerOption = kotlin_clikt_clikt.$_$.m;
|
|
@@ -121,7 +122,7 @@
|
|
|
121
122
|
initMetadataForClass(Tagger, 'Tagger', Tagger, CliktCommand);
|
|
122
123
|
//endregion
|
|
123
124
|
function Versions() {
|
|
124
|
-
this.
|
|
125
|
+
this.i2o_1 = '2.0.1';
|
|
125
126
|
}
|
|
126
127
|
var Versions_instance;
|
|
127
128
|
function Versions_getInstance() {
|
|
@@ -145,11 +146,11 @@
|
|
|
145
146
|
}
|
|
146
147
|
function _get_gitRepoArgument__zxde8($this) {
|
|
147
148
|
var tmp = KProperty1;
|
|
148
|
-
return $this.
|
|
149
|
+
return $this.y2o_1.c1n($this, getPropertyCallableRef('gitRepoArgument', 1, tmp, CalculateVersion$_get_gitRepoArgument_$ref_ekksr7_0(), null));
|
|
149
150
|
}
|
|
150
151
|
function _get_gitRepoOption__rk7ta0($this) {
|
|
151
152
|
var tmp = KProperty1;
|
|
152
|
-
return $this.
|
|
153
|
+
return $this.z2o_1.c1n($this, getPropertyCallableRef('gitRepoOption', 1, tmp, CalculateVersion$_get_gitRepoOption_$ref_ms8ohh_0(), null));
|
|
153
154
|
}
|
|
154
155
|
function _get_workingDirectory__eyfbj($this) {
|
|
155
156
|
var tmp0_elvis_lhs = _get_gitRepoArgument__zxde8($this);
|
|
@@ -164,15 +165,15 @@
|
|
|
164
165
|
}
|
|
165
166
|
function _get_implicitPatch__bjk4pa($this) {
|
|
166
167
|
var tmp = KProperty1;
|
|
167
|
-
return $this.
|
|
168
|
+
return $this.a2p_1.c1n($this, getPropertyCallableRef('implicitPatch', 1, tmp, CalculateVersion$_get_implicitPatch_$ref_8lm4hh_0(), null));
|
|
168
169
|
}
|
|
169
170
|
function _get_disableDetachedDeprecated__wab4kc($this) {
|
|
170
171
|
var tmp = KProperty1;
|
|
171
|
-
return $this.
|
|
172
|
+
return $this.b2p_1.c1n($this, getPropertyCallableRef('disableDetachedDeprecated', 1, tmp, CalculateVersion$_get_disableDetachedDeprecated_$ref_ej45b3_0(), null));
|
|
172
173
|
}
|
|
173
174
|
function _get_allowDetachedHead__iyebhm($this) {
|
|
174
175
|
var tmp = KProperty1;
|
|
175
|
-
return $this.
|
|
176
|
+
return $this.c2p_1.c1n($this, getPropertyCallableRef('allowDetachedHead', 1, tmp, CalculateVersion$_get_allowDetachedHead_$ref_f6r7al_0(), null));
|
|
176
177
|
}
|
|
177
178
|
function _get_disableDetached__ys8kbb($this) {
|
|
178
179
|
var tmp0_safe_receiver = _get_allowDetachedHead__iyebhm($this);
|
|
@@ -189,47 +190,52 @@
|
|
|
189
190
|
}
|
|
190
191
|
function _get_forceSnapshot__vb3h7m($this) {
|
|
191
192
|
var tmp = KProperty1;
|
|
192
|
-
return $this.
|
|
193
|
+
return $this.d2p_1.c1n($this, getPropertyCallableRef('forceSnapshot', 1, tmp, CalculateVersion$_get_forceSnapshot_$ref_8rl68v_0(), null));
|
|
193
194
|
}
|
|
194
195
|
function _get_releaseBranch__pqrgbs($this) {
|
|
195
196
|
var tmp = KProperty1;
|
|
196
|
-
return $this.
|
|
197
|
+
return $this.e2p_1.c1n($this, getPropertyCallableRef('releaseBranch', 1, tmp, CalculateVersion$_get_releaseBranch_$ref_3xh47v_0(), null));
|
|
197
198
|
}
|
|
198
199
|
function _get_format__qlarck($this) {
|
|
199
200
|
var tmp = KProperty1;
|
|
200
|
-
return $this.
|
|
201
|
+
return $this.f2p_1.c1n($this, getPropertyCallableRef('format', 1, tmp, CalculateVersion$_get_format_$ref_clhcb9_0(), null));
|
|
201
202
|
}
|
|
202
203
|
function _get_majorRegex__5j6ypp($this) {
|
|
203
204
|
var tmp = KProperty1;
|
|
204
|
-
return $this.
|
|
205
|
+
return $this.g2p_1.c1n($this, getPropertyCallableRef('majorRegex', 1, tmp, CalculateVersion$_get_majorRegex_$ref_erugf6_0(), null));
|
|
205
206
|
}
|
|
206
207
|
function _get_minorRegex__20z96h($this) {
|
|
207
208
|
var tmp = KProperty1;
|
|
208
|
-
return $this.
|
|
209
|
+
return $this.h2p_1.c1n($this, getPropertyCallableRef('minorRegex', 1, tmp, CalculateVersion$_get_minorRegex_$ref_u1fzja_0(), null));
|
|
209
210
|
}
|
|
210
211
|
function _get_patchRegex__mtlu2c($this) {
|
|
211
212
|
var tmp = KProperty1;
|
|
212
|
-
return $this.
|
|
213
|
+
return $this.i2p_1.c1n($this, getPropertyCallableRef('patchRegex', 1, tmp, CalculateVersion$_get_patchRegex_$ref_124637_0(), null));
|
|
213
214
|
}
|
|
214
215
|
function _get_noneRegex__1tdbgi($this) {
|
|
215
216
|
var tmp = KProperty1;
|
|
216
|
-
return $this.
|
|
217
|
+
return $this.j2p_1.c1n($this, getPropertyCallableRef('noneRegex', 1, tmp, CalculateVersion$_get_noneRegex_$ref_vcaxfl_0(), null));
|
|
217
218
|
}
|
|
218
219
|
function _get_versionRegex__7su5ss($this) {
|
|
219
220
|
var tmp = KProperty1;
|
|
220
|
-
return $this.
|
|
221
|
+
return $this.k2p_1.c1n($this, getPropertyCallableRef('versionRegex', 1, tmp, CalculateVersion$_get_versionRegex_$ref_f466m5_0(), null));
|
|
221
222
|
}
|
|
222
223
|
function output($this, message, errorMessage, warnings) {
|
|
223
|
-
$this.
|
|
224
|
+
$this.o1c(message);
|
|
224
225
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
225
226
|
if (!errorMessage.p()) {
|
|
226
|
-
|
|
227
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
228
|
+
var _iterator__ex2g4s = errorMessage.r();
|
|
229
|
+
while (_iterator__ex2g4s.s()) {
|
|
230
|
+
var element = _iterator__ex2g4s.t();
|
|
231
|
+
$this.o1c(element.x2_1 + ' - ' + element.vm_1, VOID, true);
|
|
232
|
+
}
|
|
227
233
|
}
|
|
228
234
|
// Inline function 'kotlin.collections.forEach' call
|
|
229
|
-
var
|
|
230
|
-
while (
|
|
231
|
-
var
|
|
232
|
-
$this.
|
|
235
|
+
var _iterator__ex2g4s_0 = warnings.r();
|
|
236
|
+
while (_iterator__ex2g4s_0.s()) {
|
|
237
|
+
var element_0 = _iterator__ex2g4s_0.t();
|
|
238
|
+
$this.o1c(element_0, VOID, true);
|
|
233
239
|
}
|
|
234
240
|
}
|
|
235
241
|
function outputJson($this, version, snapshotReasons, warnings) {
|
|
@@ -244,7 +250,7 @@
|
|
|
244
250
|
destination.v(tmp$ret$2);
|
|
245
251
|
}
|
|
246
252
|
var jsonOutput = versionSuccessResponse(new VersionData(version, isSnapshot, destination, warnings));
|
|
247
|
-
$this.
|
|
253
|
+
$this.o1c(jsonOutput);
|
|
248
254
|
}
|
|
249
255
|
function versionRegex($this) {
|
|
250
256
|
var tmp = Regex_init_$Create$(_get_noneRegex__1tdbgi($this), RegexOption_IGNORE_CASE_getInstance());
|
|
@@ -262,7 +268,7 @@
|
|
|
262
268
|
return new VersionRegex(tmp, tmp_0, tmp_1, tmp_2, tmp_3);
|
|
263
269
|
}
|
|
264
270
|
function CalculateVersion$lambda($this$context) {
|
|
265
|
-
$this$context.
|
|
271
|
+
$this$context.i1d([new ConfigFileSource($this$context.e1d_1)]);
|
|
266
272
|
return Unit_instance;
|
|
267
273
|
}
|
|
268
274
|
function CalculateVersion$_get_gitRepoArgument_$ref_ekksr7() {
|
|
@@ -390,9 +396,9 @@
|
|
|
390
396
|
var tmp;
|
|
391
397
|
if (!(it == null)) {
|
|
392
398
|
// Inline function 'com.github.ajalt.clikt.parameters.options.OptionTransformContext.require' call
|
|
393
|
-
if (!$tmp4_check_this.
|
|
399
|
+
if (!$tmp4_check_this.qo(it)) {
|
|
394
400
|
var tmp$ret$3 = $message;
|
|
395
|
-
$this$copy.
|
|
401
|
+
$this$copy.l1m(tmp$ret$3);
|
|
396
402
|
}
|
|
397
403
|
tmp = Unit_instance;
|
|
398
404
|
}
|
|
@@ -415,34 +421,34 @@
|
|
|
415
421
|
var tmp = this;
|
|
416
422
|
var tmp_0 = optional(argument(this, 'git-repo'));
|
|
417
423
|
var tmp_1 = KProperty1;
|
|
418
|
-
tmp.
|
|
424
|
+
tmp.y2o_1 = tmp_0.i1m(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, CalculateVersion$_get_gitRepoArgument_$ref_ekksr7(), null));
|
|
419
425
|
var tmp_2 = this;
|
|
420
426
|
var tmp_3 = option(this, ['--git-repo'], VOID, VOID, VOID, 'PWD');
|
|
421
427
|
var tmp_4 = KProperty1;
|
|
422
|
-
tmp_2.
|
|
428
|
+
tmp_2.z2o_1 = tmp_3.m1n(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, CalculateVersion$_get_gitRepoOption_$ref_ms8ohh(), null));
|
|
423
429
|
var tmp_5 = this;
|
|
424
|
-
var tmp_6 = default_0(boolean(option(this, [])), true);
|
|
430
|
+
var tmp_6 = default_0(boolean(option(this, [], 'Automatically bump patch version when no version-tagged commits exist since last release.')), true);
|
|
425
431
|
var tmp_7 = KProperty1;
|
|
426
|
-
tmp_5.
|
|
432
|
+
tmp_5.a2p_1 = tmp_6.m1n(this, getPropertyCallableRef('implicitPatch', 1, tmp_7, CalculateVersion$_get_implicitPatch_$ref_8lm4hh(), null));
|
|
427
433
|
var tmp_8 = this;
|
|
428
434
|
var tmp_9 = boolean(option(this, ['--disable-detached'], VOID, VOID, true));
|
|
429
435
|
var tmp_10 = KProperty1;
|
|
430
|
-
tmp_8.
|
|
436
|
+
tmp_8.b2p_1 = tmp_9.m1n(this, getPropertyCallableRef('disableDetachedDeprecated', 1, tmp_10, CalculateVersion$_get_disableDetachedDeprecated_$ref_ej45b3(), null));
|
|
431
437
|
var tmp_11 = this;
|
|
432
|
-
var tmp_12 = boolean(option(this, ['--allow-detached-head']));
|
|
438
|
+
var tmp_12 = boolean(option(this, ['--allow-detached-head'], 'Allow version calculation in detached HEAD state. Detached HEAD is blocked by default as it can produce unreliable version calculations.'));
|
|
433
439
|
var tmp_13 = KProperty1;
|
|
434
|
-
tmp_11.
|
|
440
|
+
tmp_11.c2p_1 = tmp_12.m1n(this, getPropertyCallableRef('allowDetachedHead', 1, tmp_13, CalculateVersion$_get_allowDetachedHead_$ref_f6r7al(), null));
|
|
435
441
|
var tmp_14 = this;
|
|
436
|
-
var tmp_15 = default_0(boolean(option(this, [])), false);
|
|
442
|
+
var tmp_15 = default_0(boolean(option(this, [], 'Force -SNAPSHOT suffix on version, overriding normal release conditions. Use for testing or CI workflows that require snapshot versions.')), false);
|
|
437
443
|
var tmp_16 = KProperty1;
|
|
438
|
-
tmp_14.
|
|
444
|
+
tmp_14.d2p_1 = tmp_15.m1n(this, getPropertyCallableRef('forceSnapshot', 1, tmp_16, CalculateVersion$_get_forceSnapshot_$ref_8rl68v(), null));
|
|
439
445
|
var tmp_17 = this;
|
|
440
|
-
var tmp_18 = option(this, []);
|
|
446
|
+
var tmp_18 = option(this, [], 'Specify release branch name. Versions are release versions only on this branch; other branches produce -SNAPSHOT versions.');
|
|
441
447
|
var tmp_19 = KProperty1;
|
|
442
|
-
tmp_17.
|
|
448
|
+
tmp_17.e2p_1 = tmp_18.m1n(this, getPropertyCallableRef('releaseBranch', 1, tmp_19, CalculateVersion$_get_releaseBranch_$ref_3xh47v(), null));
|
|
443
449
|
var tmp_20 = this;
|
|
444
450
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
445
|
-
var this_0 = option(this, ['--format'], '
|
|
451
|
+
var this_0 = option(this, ['--format'], 'Use json for structured data with version, snapshot status, and diagnostic flags.');
|
|
446
452
|
// Inline function 'kotlin.enumValues' call
|
|
447
453
|
// Inline function 'kotlin.collections.associateBy' call
|
|
448
454
|
var this_1 = values();
|
|
@@ -460,39 +466,39 @@
|
|
|
460
466
|
destination.p2(tmp$ret$4, element);
|
|
461
467
|
}
|
|
462
468
|
var tmp$ret$0 = choice(this_0, destination, VOID, true);
|
|
463
|
-
var tmp_21 = default_0(tmp$ret$0, OutputFormat_TEXT_getInstance());
|
|
469
|
+
var tmp_21 = default_0(tmp$ret$0, OutputFormat_TEXT_getInstance(), 'text');
|
|
464
470
|
var tmp_22 = KProperty1;
|
|
465
|
-
tmp_20.
|
|
471
|
+
tmp_20.f2p_1 = tmp_21.m1n(this, getPropertyCallableRef('format', 1, tmp_22, CalculateVersion$_get_format_$ref_clhcb9(), null));
|
|
466
472
|
var tmp_23 = this;
|
|
467
|
-
var tmp_24 = default_0(option(this, []), Defaults_getInstance().
|
|
473
|
+
var tmp_24 = default_0(option(this, []), Defaults_getInstance().oo_1.tb_1);
|
|
468
474
|
var tmp_25 = KProperty1;
|
|
469
|
-
tmp_23.
|
|
475
|
+
tmp_23.g2p_1 = tmp_24.m1n(this, getPropertyCallableRef('majorRegex', 1, tmp_25, CalculateVersion$_get_majorRegex_$ref_erugf6(), null));
|
|
470
476
|
var tmp_26 = this;
|
|
471
|
-
var tmp_27 = default_0(option(this, []), Defaults_getInstance().
|
|
477
|
+
var tmp_27 = default_0(option(this, []), Defaults_getInstance().no_1.tb_1);
|
|
472
478
|
var tmp_28 = KProperty1;
|
|
473
|
-
tmp_26.
|
|
479
|
+
tmp_26.h2p_1 = tmp_27.m1n(this, getPropertyCallableRef('minorRegex', 1, tmp_28, CalculateVersion$_get_minorRegex_$ref_u1fzja(), null));
|
|
474
480
|
var tmp_29 = this;
|
|
475
|
-
var tmp_30 = default_0(option(this, []), Defaults_getInstance().
|
|
481
|
+
var tmp_30 = default_0(option(this, []), Defaults_getInstance().mo_1.tb_1);
|
|
476
482
|
var tmp_31 = KProperty1;
|
|
477
|
-
tmp_29.
|
|
483
|
+
tmp_29.i2p_1 = tmp_30.m1n(this, getPropertyCallableRef('patchRegex', 1, tmp_31, CalculateVersion$_get_patchRegex_$ref_124637(), null));
|
|
478
484
|
var tmp_32 = this;
|
|
479
|
-
var tmp_33 = default_0(option(this, []), Defaults_getInstance().
|
|
485
|
+
var tmp_33 = default_0(option(this, []), Defaults_getInstance().lo_1.tb_1);
|
|
480
486
|
var tmp_34 = KProperty1;
|
|
481
|
-
tmp_32.
|
|
487
|
+
tmp_32.j2p_1 = tmp_33.m1n(this, getPropertyCallableRef('noneRegex', 1, tmp_34, CalculateVersion$_get_noneRegex_$ref_vcaxfl(), null));
|
|
482
488
|
var tmp_35 = this;
|
|
483
489
|
var tmp0 = option(this, []);
|
|
484
490
|
// Inline function 'com.github.ajalt.clikt.parameters.options.check' call
|
|
485
491
|
var message = "version regex must include groups named 'major', 'minor', 'patch', and 'none'.";
|
|
486
492
|
// Inline function 'com.github.ajalt.clikt.parameters.options.check' call
|
|
487
493
|
// Inline function 'com.github.ajalt.clikt.parameters.options.validate' call
|
|
488
|
-
var tmp_36 = tmp0.
|
|
489
|
-
var tmp_37 = tmp0.
|
|
490
|
-
var tmp_38 = tmp0.
|
|
491
|
-
var tmp_39 = tmp0.
|
|
494
|
+
var tmp_36 = tmp0.d1m();
|
|
495
|
+
var tmp_37 = tmp0.f1n();
|
|
496
|
+
var tmp_38 = tmp0.e1m();
|
|
497
|
+
var tmp_39 = tmp0.g1n(tmp_36, tmp_37, tmp_38, CalculateVersion$versionRegex$delegate$lambda(Companion_instance, message));
|
|
492
498
|
var tmp_40 = KProperty1;
|
|
493
|
-
tmp_35.
|
|
499
|
+
tmp_35.k2p_1 = tmp_39.m1n(this, getPropertyCallableRef('versionRegex', 1, tmp_40, CalculateVersion$_get_versionRegex_$ref_f466m5(), null));
|
|
494
500
|
}
|
|
495
|
-
protoOf(CalculateVersion).
|
|
501
|
+
protoOf(CalculateVersion).b1e = function () {
|
|
496
502
|
var tmp = new TaggerCore(new GitAdapter(_get_workingDirectory__eyfbj(this)));
|
|
497
503
|
var tmp_0 = _get_implicitPatch__bjk4pa(this);
|
|
498
504
|
var tmp_1 = _get_disableDetached__ys8kbb(this);
|
|
@@ -504,10 +510,10 @@
|
|
|
504
510
|
if ($this$run instanceof Success) {
|
|
505
511
|
switch (_get_format__qlarck(this).y2_1) {
|
|
506
512
|
case 1:
|
|
507
|
-
outputJson(this, $this$run.
|
|
513
|
+
outputJson(this, $this$run.ro_1, $this$run.so_1, $this$run.to_1);
|
|
508
514
|
break;
|
|
509
515
|
case 0:
|
|
510
|
-
output(this, $this$run.
|
|
516
|
+
output(this, $this$run.ro_1, $this$run.so_1, $this$run.to_1);
|
|
511
517
|
break;
|
|
512
518
|
default:
|
|
513
519
|
noWhenBranchMatchedException();
|
|
@@ -517,7 +523,7 @@
|
|
|
517
523
|
if ($this$run instanceof Failure) {
|
|
518
524
|
switch (_get_format__qlarck(this).y2_1) {
|
|
519
525
|
case 1:
|
|
520
|
-
this.
|
|
526
|
+
this.o1c(errorResponse($this$run.ba(), 'CONFIGURATION_ERROR'));
|
|
521
527
|
throw new CliktError('', VOID, 1, false);
|
|
522
528
|
case 0:
|
|
523
529
|
throw new CliktError($this$run.ba());
|
|
@@ -559,12 +565,12 @@
|
|
|
559
565
|
var _iterator__ex2g4s_0 = this_0.r();
|
|
560
566
|
while (_iterator__ex2g4s_0.s()) {
|
|
561
567
|
var item = _iterator__ex2g4s_0.t();
|
|
562
|
-
var tmp$ret$2 = Companion_instance_0.
|
|
568
|
+
var tmp$ret$2 = Companion_instance_0.e1s(get_jsonPrimitive(item).g2d());
|
|
563
569
|
destination.v(tmp$ret$2);
|
|
564
570
|
}
|
|
565
571
|
return destination;
|
|
566
572
|
}
|
|
567
|
-
return Companion_instance_0.
|
|
573
|
+
return Companion_instance_0.d1s(get_jsonPrimitive(cursor).g2d());
|
|
568
574
|
} catch ($p) {
|
|
569
575
|
if ($p instanceof IllegalArgumentException) {
|
|
570
576
|
var _unused_var__etf5q3 = $p;
|
|
@@ -575,9 +581,9 @@
|
|
|
575
581
|
}
|
|
576
582
|
}
|
|
577
583
|
function parts($this, $receiver) {
|
|
578
|
-
var tmp0_safe_receiver = $receiver.
|
|
584
|
+
var tmp0_safe_receiver = $receiver.p1e();
|
|
579
585
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : split(tmp0_safe_receiver, ['.']);
|
|
580
|
-
return tmp1_elvis_lhs == null ? listOf(kebabToCamelCase($this, Companion_instance_1.
|
|
586
|
+
return tmp1_elvis_lhs == null ? listOf(kebabToCamelCase($this, Companion_instance_1.f1s($receiver))) : tmp1_elvis_lhs;
|
|
581
587
|
}
|
|
582
588
|
function kebabToCamelCase($this, $receiver) {
|
|
583
589
|
// Inline function 'kotlin.text.toRegex' call
|
|
@@ -587,7 +593,7 @@
|
|
|
587
593
|
return pattern.lc($receiver, transform);
|
|
588
594
|
}
|
|
589
595
|
function readConfigFileAsJsonElement($this) {
|
|
590
|
-
var pwd = $this.
|
|
596
|
+
var pwd = $this.l2p_1('PWD');
|
|
591
597
|
var tmp0_elvis_lhs = readFromFile('' + pwd + '/.tagger');
|
|
592
598
|
var tmp;
|
|
593
599
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -599,19 +605,19 @@
|
|
|
599
605
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
600
606
|
var this_0 = Default_getInstance();
|
|
601
607
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
602
|
-
var this_1 = this_0.
|
|
608
|
+
var this_1 = this_0.is();
|
|
603
609
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
604
610
|
var this_2 = serializer(this_1, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
605
611
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
606
|
-
var config = this_0.
|
|
612
|
+
var config = this_0.y2a(tmp$ret$1, fileContents);
|
|
607
613
|
// Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
|
|
608
614
|
var this_3 = Default_getInstance();
|
|
609
615
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
610
|
-
var this_4 = this_3.
|
|
616
|
+
var this_4 = this_3.is();
|
|
611
617
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
612
618
|
var this_5 = serializer(this_4, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
613
619
|
var tmp$ret$4 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
614
|
-
var configAsElement = this_3.
|
|
620
|
+
var configAsElement = this_3.z2a(tmp$ret$4, config);
|
|
615
621
|
return configAsElement;
|
|
616
622
|
}
|
|
617
623
|
function ConfigFileSource$kebabToCamelCase$lambda(it) {
|
|
@@ -622,9 +628,9 @@
|
|
|
622
628
|
return toString(this_0).toUpperCase();
|
|
623
629
|
}
|
|
624
630
|
function ConfigFileSource(envvarReader) {
|
|
625
|
-
this.
|
|
631
|
+
this.l2p_1 = envvarReader;
|
|
626
632
|
}
|
|
627
|
-
protoOf(ConfigFileSource).
|
|
633
|
+
protoOf(ConfigFileSource).o1n = function (context, option) {
|
|
628
634
|
var tmp0_elvis_lhs = readConfigFileAsJsonElement(this);
|
|
629
635
|
var tmp;
|
|
630
636
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -637,11 +643,11 @@
|
|
|
637
643
|
};
|
|
638
644
|
function _get_file__d6iv67($this) {
|
|
639
645
|
var tmp = KProperty1;
|
|
640
|
-
return $this.
|
|
646
|
+
return $this.b2q_1.c1n($this, getPropertyCallableRef('file', 1, tmp, GenerateSettingsFile$_get_file_$ref_3dvoj2_0(), null));
|
|
641
647
|
}
|
|
642
648
|
function _get_merge__eb7eqv($this) {
|
|
643
649
|
var tmp = KProperty1;
|
|
644
|
-
return $this.
|
|
650
|
+
return $this.c2q_1.c1n($this, getPropertyCallableRef('merge', 1, tmp, GenerateSettingsFile$_get_merge_$ref_3aq3hk_0(), null));
|
|
645
651
|
}
|
|
646
652
|
function mergeJson($this, defaultConfig, originalData) {
|
|
647
653
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
@@ -664,9 +670,9 @@
|
|
|
664
670
|
} else {
|
|
665
671
|
tmp = value;
|
|
666
672
|
}
|
|
667
|
-
builder.
|
|
673
|
+
builder.o2d(key, tmp);
|
|
668
674
|
}
|
|
669
|
-
var mergeData = builder.
|
|
675
|
+
var mergeData = builder.i2c();
|
|
670
676
|
return mergeData;
|
|
671
677
|
}
|
|
672
678
|
function GenerateSettingsFile$_get_file_$ref_3dvoj2() {
|
|
@@ -690,8 +696,8 @@
|
|
|
690
696
|
};
|
|
691
697
|
}
|
|
692
698
|
function GenerateSettingsFile$run$lambda($this$Json) {
|
|
693
|
-
$this$Json.
|
|
694
|
-
$this$Json.
|
|
699
|
+
$this$Json.u2b_1 = true;
|
|
700
|
+
$this$Json.q2b_1 = true;
|
|
695
701
|
return Unit_instance;
|
|
696
702
|
}
|
|
697
703
|
function GenerateSettingsFile() {
|
|
@@ -699,22 +705,22 @@
|
|
|
699
705
|
var tmp = this;
|
|
700
706
|
var tmp_0 = option(this, []);
|
|
701
707
|
var tmp_1 = KProperty1;
|
|
702
|
-
tmp.
|
|
708
|
+
tmp.b2q_1 = tmp_0.m1n(this, getPropertyCallableRef('file', 1, tmp_1, GenerateSettingsFile$_get_file_$ref_3dvoj2(), null));
|
|
703
709
|
var tmp_2 = this;
|
|
704
710
|
var tmp_3 = boolean(option(this, []));
|
|
705
711
|
var tmp_4 = KProperty1;
|
|
706
|
-
tmp_2.
|
|
712
|
+
tmp_2.c2q_1 = tmp_3.m1n(this, getPropertyCallableRef('merge', 1, tmp_4, GenerateSettingsFile$_get_merge_$ref_3aq3hk(), null));
|
|
707
713
|
}
|
|
708
|
-
protoOf(GenerateSettingsFile).
|
|
714
|
+
protoOf(GenerateSettingsFile).b1e = function () {
|
|
709
715
|
var prettyJsonFormatter = Json(VOID, GenerateSettingsFile$run$lambda);
|
|
710
716
|
// Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
|
|
711
717
|
var value = get_runtimeDefaultConfig();
|
|
712
718
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
713
|
-
var this_0 = prettyJsonFormatter.
|
|
719
|
+
var this_0 = prettyJsonFormatter.is();
|
|
714
720
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
715
721
|
var this_1 = serializer(this_0, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
716
722
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
717
|
-
var defaultConfig = prettyJsonFormatter.
|
|
723
|
+
var defaultConfig = prettyJsonFormatter.z2a(tmp$ret$1, value);
|
|
718
724
|
// Inline function 'kotlin.text.orEmpty' call
|
|
719
725
|
var tmp0_elvis_lhs = _get_file__d6iv67(this);
|
|
720
726
|
// Inline function 'kotlin.text.ifBlank' call
|
|
@@ -726,14 +732,14 @@
|
|
|
726
732
|
tmp = this_2;
|
|
727
733
|
}
|
|
728
734
|
var fileName = tmp;
|
|
729
|
-
var pwd = this.
|
|
735
|
+
var pwd = this.w19().n1a_1('PWD');
|
|
730
736
|
var settingsFile = '' + pwd + '/' + fileName;
|
|
731
737
|
var existingFileData = readFromFile(settingsFile);
|
|
732
738
|
var tmp_0;
|
|
733
739
|
if (!(existingFileData == null)) {
|
|
734
740
|
var tmp_1;
|
|
735
741
|
if (_get_merge__eb7eqv(this) === true) {
|
|
736
|
-
var originalData = prettyJsonFormatter.
|
|
742
|
+
var originalData = prettyJsonFormatter.a2b(existingFileData);
|
|
737
743
|
tmp_1 = mergeJson(this, defaultConfig, originalData);
|
|
738
744
|
} else {
|
|
739
745
|
throw new CliktError('File already exists.');
|
|
@@ -746,27 +752,27 @@
|
|
|
746
752
|
if (_get_file__d6iv67(this) == null) {
|
|
747
753
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
748
754
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
749
|
-
var this_3 = prettyJsonFormatter.
|
|
755
|
+
var this_3 = prettyJsonFormatter.is();
|
|
750
756
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
751
757
|
var this_4 = serializer(this_3, createKType(getKClass(JsonElement), arrayOf([]), false));
|
|
752
758
|
var tmp$ret$7 = isInterface(this_4, KSerializer) ? this_4 : THROW_CCE();
|
|
753
|
-
var tmp$ret$6 = prettyJsonFormatter.
|
|
754
|
-
this.
|
|
759
|
+
var tmp$ret$6 = prettyJsonFormatter.x2a(tmp$ret$7, outputConfig);
|
|
760
|
+
this.o1c(tmp$ret$6);
|
|
755
761
|
} else {
|
|
756
762
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
757
763
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
758
|
-
var this_5 = prettyJsonFormatter.
|
|
764
|
+
var this_5 = prettyJsonFormatter.is();
|
|
759
765
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
760
766
|
var this_6 = serializer(this_5, createKType(getKClass(JsonElement), arrayOf([]), false));
|
|
761
767
|
var tmp$ret$10 = isInterface(this_6, KSerializer) ? this_6 : THROW_CCE();
|
|
762
|
-
var tmp$ret$9 = prettyJsonFormatter.
|
|
768
|
+
var tmp$ret$9 = prettyJsonFormatter.x2a(tmp$ret$10, outputConfig);
|
|
763
769
|
writeToFile(tmp$ret$9, settingsFile);
|
|
764
|
-
this.
|
|
770
|
+
this.o1c('Saved to ' + fileName);
|
|
765
771
|
}
|
|
766
772
|
};
|
|
767
773
|
function Companion() {
|
|
768
774
|
}
|
|
769
|
-
protoOf(Companion).
|
|
775
|
+
protoOf(Companion).i2d = function () {
|
|
770
776
|
return $serializer_getInstance();
|
|
771
777
|
};
|
|
772
778
|
var Companion_instance_2;
|
|
@@ -776,59 +782,59 @@
|
|
|
776
782
|
function $serializer() {
|
|
777
783
|
$serializer_instance = this;
|
|
778
784
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.VersionSuccessResponse', this, 2);
|
|
779
|
-
tmp0_serialDesc.
|
|
780
|
-
tmp0_serialDesc.
|
|
781
|
-
this.
|
|
782
|
-
}
|
|
783
|
-
protoOf($serializer).
|
|
784
|
-
var tmp0_desc = this.
|
|
785
|
-
var tmp1_output = encoder.
|
|
786
|
-
tmp1_output.
|
|
787
|
-
tmp1_output.
|
|
788
|
-
tmp1_output.
|
|
785
|
+
tmp0_serialDesc.cz('status', false);
|
|
786
|
+
tmp0_serialDesc.cz('data', false);
|
|
787
|
+
this.d2q_1 = tmp0_serialDesc;
|
|
788
|
+
}
|
|
789
|
+
protoOf($serializer).e2q = function (encoder, value) {
|
|
790
|
+
var tmp0_desc = this.d2q_1;
|
|
791
|
+
var tmp1_output = encoder.tr(tmp0_desc);
|
|
792
|
+
tmp1_output.ht(tmp0_desc, 0, value.f2q_1);
|
|
793
|
+
tmp1_output.jt(tmp0_desc, 1, $serializer_getInstance_0(), value.g2q_1);
|
|
794
|
+
tmp1_output.ur(tmp0_desc);
|
|
789
795
|
};
|
|
790
|
-
protoOf($serializer).
|
|
791
|
-
return this.
|
|
796
|
+
protoOf($serializer).xo = function (encoder, value) {
|
|
797
|
+
return this.e2q(encoder, value instanceof VersionSuccessResponse ? value : THROW_CCE());
|
|
792
798
|
};
|
|
793
|
-
protoOf($serializer).
|
|
794
|
-
var tmp0_desc = this.
|
|
799
|
+
protoOf($serializer).yo = function (decoder) {
|
|
800
|
+
var tmp0_desc = this.d2q_1;
|
|
795
801
|
var tmp1_flag = true;
|
|
796
802
|
var tmp2_index = 0;
|
|
797
803
|
var tmp3_bitMask0 = 0;
|
|
798
804
|
var tmp4_local0 = null;
|
|
799
805
|
var tmp5_local1 = null;
|
|
800
|
-
var tmp6_input = decoder.
|
|
801
|
-
if (tmp6_input.
|
|
802
|
-
tmp4_local0 = tmp6_input.
|
|
806
|
+
var tmp6_input = decoder.tr(tmp0_desc);
|
|
807
|
+
if (tmp6_input.js()) {
|
|
808
|
+
tmp4_local0 = tmp6_input.ds(tmp0_desc, 0);
|
|
803
809
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
804
|
-
tmp5_local1 = tmp6_input.
|
|
810
|
+
tmp5_local1 = tmp6_input.fs(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
805
811
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
806
812
|
} else
|
|
807
813
|
while (tmp1_flag) {
|
|
808
|
-
tmp2_index = tmp6_input.
|
|
814
|
+
tmp2_index = tmp6_input.ks(tmp0_desc);
|
|
809
815
|
switch (tmp2_index) {
|
|
810
816
|
case -1:
|
|
811
817
|
tmp1_flag = false;
|
|
812
818
|
break;
|
|
813
819
|
case 0:
|
|
814
|
-
tmp4_local0 = tmp6_input.
|
|
820
|
+
tmp4_local0 = tmp6_input.ds(tmp0_desc, 0);
|
|
815
821
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
816
822
|
break;
|
|
817
823
|
case 1:
|
|
818
|
-
tmp5_local1 = tmp6_input.
|
|
824
|
+
tmp5_local1 = tmp6_input.fs(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
819
825
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
820
826
|
break;
|
|
821
827
|
default:
|
|
822
828
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
823
829
|
}
|
|
824
830
|
}
|
|
825
|
-
tmp6_input.
|
|
831
|
+
tmp6_input.ur(tmp0_desc);
|
|
826
832
|
return VersionSuccessResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
827
833
|
};
|
|
828
|
-
protoOf($serializer).
|
|
829
|
-
return this.
|
|
834
|
+
protoOf($serializer).wo = function () {
|
|
835
|
+
return this.d2q_1;
|
|
830
836
|
};
|
|
831
|
-
protoOf($serializer).
|
|
837
|
+
protoOf($serializer).ez = function () {
|
|
832
838
|
// Inline function 'kotlin.arrayOf' call
|
|
833
839
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
834
840
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -842,25 +848,25 @@
|
|
|
842
848
|
}
|
|
843
849
|
function VersionSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, $this) {
|
|
844
850
|
if (!(3 === (3 & seen0))) {
|
|
845
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
851
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().d2q_1);
|
|
846
852
|
}
|
|
847
|
-
$this.
|
|
848
|
-
$this.
|
|
853
|
+
$this.f2q_1 = status;
|
|
854
|
+
$this.g2q_1 = data;
|
|
849
855
|
return $this;
|
|
850
856
|
}
|
|
851
857
|
function VersionSuccessResponse_init_$Create$(seen0, status, data, serializationConstructorMarker) {
|
|
852
858
|
return VersionSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, objectCreate(protoOf(VersionSuccessResponse)));
|
|
853
859
|
}
|
|
854
860
|
function VersionSuccessResponse(status, data) {
|
|
855
|
-
this.
|
|
856
|
-
this.
|
|
861
|
+
this.f2q_1 = status;
|
|
862
|
+
this.g2q_1 = data;
|
|
857
863
|
}
|
|
858
864
|
protoOf(VersionSuccessResponse).toString = function () {
|
|
859
|
-
return 'VersionSuccessResponse(status=' + this.
|
|
865
|
+
return 'VersionSuccessResponse(status=' + this.f2q_1 + ', data=' + this.g2q_1.toString() + ')';
|
|
860
866
|
};
|
|
861
867
|
protoOf(VersionSuccessResponse).hashCode = function () {
|
|
862
|
-
var result = getStringHashCode(this.
|
|
863
|
-
result = imul(result, 31) + this.
|
|
868
|
+
var result = getStringHashCode(this.f2q_1);
|
|
869
|
+
result = imul(result, 31) + this.g2q_1.hashCode() | 0;
|
|
864
870
|
return result;
|
|
865
871
|
};
|
|
866
872
|
protoOf(VersionSuccessResponse).equals = function (other) {
|
|
@@ -868,9 +874,9 @@
|
|
|
868
874
|
return true;
|
|
869
875
|
if (!(other instanceof VersionSuccessResponse))
|
|
870
876
|
return false;
|
|
871
|
-
if (!(this.
|
|
877
|
+
if (!(this.f2q_1 === other.f2q_1))
|
|
872
878
|
return false;
|
|
873
|
-
if (!this.
|
|
879
|
+
if (!this.g2q_1.equals(other.g2q_1))
|
|
874
880
|
return false;
|
|
875
881
|
return true;
|
|
876
882
|
};
|
|
@@ -889,7 +895,7 @@
|
|
|
889
895
|
// Inline function 'kotlin.arrayOf' call
|
|
890
896
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
891
897
|
// Inline function 'kotlin.js.asDynamic' call
|
|
892
|
-
tmp.
|
|
898
|
+
tmp.h2q_1 = [null, null, tmp_1, lazy(tmp_2, VersionData$Companion$$childSerializers$_anonymous__gd9ivc_0)];
|
|
893
899
|
}
|
|
894
900
|
var Companion_instance_3;
|
|
895
901
|
function Companion_getInstance_0() {
|
|
@@ -900,31 +906,31 @@
|
|
|
900
906
|
function $serializer_0() {
|
|
901
907
|
$serializer_instance_0 = this;
|
|
902
908
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.VersionData', this, 4);
|
|
903
|
-
tmp0_serialDesc.
|
|
904
|
-
tmp0_serialDesc.
|
|
905
|
-
tmp0_serialDesc.
|
|
906
|
-
tmp0_serialDesc.
|
|
907
|
-
this.
|
|
908
|
-
}
|
|
909
|
-
protoOf($serializer_0).
|
|
910
|
-
var tmp0_desc = this.
|
|
911
|
-
var tmp1_output = encoder.
|
|
912
|
-
var tmp2_cached = Companion_getInstance_0().
|
|
913
|
-
tmp1_output.
|
|
914
|
-
tmp1_output.
|
|
915
|
-
if (tmp1_output.
|
|
916
|
-
tmp1_output.
|
|
909
|
+
tmp0_serialDesc.cz('version', false);
|
|
910
|
+
tmp0_serialDesc.cz('snapshot', false);
|
|
911
|
+
tmp0_serialDesc.cz('snapshotReasons', true);
|
|
912
|
+
tmp0_serialDesc.cz('warnings', true);
|
|
913
|
+
this.i2q_1 = tmp0_serialDesc;
|
|
914
|
+
}
|
|
915
|
+
protoOf($serializer_0).j2q = function (encoder, value) {
|
|
916
|
+
var tmp0_desc = this.i2q_1;
|
|
917
|
+
var tmp1_output = encoder.tr(tmp0_desc);
|
|
918
|
+
var tmp2_cached = Companion_getInstance_0().h2q_1;
|
|
919
|
+
tmp1_output.ht(tmp0_desc, 0, value.k2q_1);
|
|
920
|
+
tmp1_output.zs(tmp0_desc, 1, value.l2q_1);
|
|
921
|
+
if (tmp1_output.pt(tmp0_desc, 2) ? true : !equals(value.m2q_1, emptyList())) {
|
|
922
|
+
tmp1_output.jt(tmp0_desc, 2, tmp2_cached[2].m1(), value.m2q_1);
|
|
917
923
|
}
|
|
918
|
-
if (tmp1_output.
|
|
919
|
-
tmp1_output.
|
|
924
|
+
if (tmp1_output.pt(tmp0_desc, 3) ? true : !equals(value.n2q_1, emptyList())) {
|
|
925
|
+
tmp1_output.jt(tmp0_desc, 3, tmp2_cached[3].m1(), value.n2q_1);
|
|
920
926
|
}
|
|
921
|
-
tmp1_output.
|
|
927
|
+
tmp1_output.ur(tmp0_desc);
|
|
922
928
|
};
|
|
923
|
-
protoOf($serializer_0).
|
|
924
|
-
return this.
|
|
929
|
+
protoOf($serializer_0).xo = function (encoder, value) {
|
|
930
|
+
return this.j2q(encoder, value instanceof VersionData ? value : THROW_CCE());
|
|
925
931
|
};
|
|
926
|
-
protoOf($serializer_0).
|
|
927
|
-
var tmp0_desc = this.
|
|
932
|
+
protoOf($serializer_0).yo = function (decoder) {
|
|
933
|
+
var tmp0_desc = this.i2q_1;
|
|
928
934
|
var tmp1_flag = true;
|
|
929
935
|
var tmp2_index = 0;
|
|
930
936
|
var tmp3_bitMask0 = 0;
|
|
@@ -932,52 +938,52 @@
|
|
|
932
938
|
var tmp5_local1 = false;
|
|
933
939
|
var tmp6_local2 = null;
|
|
934
940
|
var tmp7_local3 = null;
|
|
935
|
-
var tmp8_input = decoder.
|
|
936
|
-
var tmp9_cached = Companion_getInstance_0().
|
|
937
|
-
if (tmp8_input.
|
|
938
|
-
tmp4_local0 = tmp8_input.
|
|
941
|
+
var tmp8_input = decoder.tr(tmp0_desc);
|
|
942
|
+
var tmp9_cached = Companion_getInstance_0().h2q_1;
|
|
943
|
+
if (tmp8_input.js()) {
|
|
944
|
+
tmp4_local0 = tmp8_input.ds(tmp0_desc, 0);
|
|
939
945
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
940
|
-
tmp5_local1 = tmp8_input.
|
|
946
|
+
tmp5_local1 = tmp8_input.vr(tmp0_desc, 1);
|
|
941
947
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
942
|
-
tmp6_local2 = tmp8_input.
|
|
948
|
+
tmp6_local2 = tmp8_input.fs(tmp0_desc, 2, tmp9_cached[2].m1(), tmp6_local2);
|
|
943
949
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
944
|
-
tmp7_local3 = tmp8_input.
|
|
950
|
+
tmp7_local3 = tmp8_input.fs(tmp0_desc, 3, tmp9_cached[3].m1(), tmp7_local3);
|
|
945
951
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
946
952
|
} else
|
|
947
953
|
while (tmp1_flag) {
|
|
948
|
-
tmp2_index = tmp8_input.
|
|
954
|
+
tmp2_index = tmp8_input.ks(tmp0_desc);
|
|
949
955
|
switch (tmp2_index) {
|
|
950
956
|
case -1:
|
|
951
957
|
tmp1_flag = false;
|
|
952
958
|
break;
|
|
953
959
|
case 0:
|
|
954
|
-
tmp4_local0 = tmp8_input.
|
|
960
|
+
tmp4_local0 = tmp8_input.ds(tmp0_desc, 0);
|
|
955
961
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
956
962
|
break;
|
|
957
963
|
case 1:
|
|
958
|
-
tmp5_local1 = tmp8_input.
|
|
964
|
+
tmp5_local1 = tmp8_input.vr(tmp0_desc, 1);
|
|
959
965
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
960
966
|
break;
|
|
961
967
|
case 2:
|
|
962
|
-
tmp6_local2 = tmp8_input.
|
|
968
|
+
tmp6_local2 = tmp8_input.fs(tmp0_desc, 2, tmp9_cached[2].m1(), tmp6_local2);
|
|
963
969
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
964
970
|
break;
|
|
965
971
|
case 3:
|
|
966
|
-
tmp7_local3 = tmp8_input.
|
|
972
|
+
tmp7_local3 = tmp8_input.fs(tmp0_desc, 3, tmp9_cached[3].m1(), tmp7_local3);
|
|
967
973
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
968
974
|
break;
|
|
969
975
|
default:
|
|
970
976
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
971
977
|
}
|
|
972
978
|
}
|
|
973
|
-
tmp8_input.
|
|
979
|
+
tmp8_input.ur(tmp0_desc);
|
|
974
980
|
return VersionData_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
975
981
|
};
|
|
976
|
-
protoOf($serializer_0).
|
|
977
|
-
return this.
|
|
982
|
+
protoOf($serializer_0).wo = function () {
|
|
983
|
+
return this.i2q_1;
|
|
978
984
|
};
|
|
979
|
-
protoOf($serializer_0).
|
|
980
|
-
var tmp0_cached = Companion_getInstance_0().
|
|
985
|
+
protoOf($serializer_0).ez = function () {
|
|
986
|
+
var tmp0_cached = Companion_getInstance_0().h2q_1;
|
|
981
987
|
// Inline function 'kotlin.arrayOf' call
|
|
982
988
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
983
989
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -991,18 +997,18 @@
|
|
|
991
997
|
}
|
|
992
998
|
function VersionData_init_$Init$(seen0, version, snapshot, snapshotReasons, warnings, serializationConstructorMarker, $this) {
|
|
993
999
|
if (!(3 === (3 & seen0))) {
|
|
994
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
1000
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().i2q_1);
|
|
995
1001
|
}
|
|
996
|
-
$this.
|
|
997
|
-
$this.
|
|
1002
|
+
$this.k2q_1 = version;
|
|
1003
|
+
$this.l2q_1 = snapshot;
|
|
998
1004
|
if (0 === (seen0 & 4))
|
|
999
|
-
$this.
|
|
1005
|
+
$this.m2q_1 = emptyList();
|
|
1000
1006
|
else
|
|
1001
|
-
$this.
|
|
1007
|
+
$this.m2q_1 = snapshotReasons;
|
|
1002
1008
|
if (0 === (seen0 & 8))
|
|
1003
|
-
$this.
|
|
1009
|
+
$this.n2q_1 = emptyList();
|
|
1004
1010
|
else
|
|
1005
|
-
$this.
|
|
1011
|
+
$this.n2q_1 = warnings;
|
|
1006
1012
|
return $this;
|
|
1007
1013
|
}
|
|
1008
1014
|
function VersionData_init_$Create$(seen0, version, snapshot, snapshotReasons, warnings, serializationConstructorMarker) {
|
|
@@ -1012,19 +1018,19 @@
|
|
|
1012
1018
|
Companion_getInstance_0();
|
|
1013
1019
|
snapshotReasons = snapshotReasons === VOID ? emptyList() : snapshotReasons;
|
|
1014
1020
|
warnings = warnings === VOID ? emptyList() : warnings;
|
|
1015
|
-
this.
|
|
1016
|
-
this.
|
|
1017
|
-
this.
|
|
1018
|
-
this.
|
|
1021
|
+
this.k2q_1 = version;
|
|
1022
|
+
this.l2q_1 = snapshot;
|
|
1023
|
+
this.m2q_1 = snapshotReasons;
|
|
1024
|
+
this.n2q_1 = warnings;
|
|
1019
1025
|
}
|
|
1020
1026
|
protoOf(VersionData).toString = function () {
|
|
1021
|
-
return 'VersionData(version=' + this.
|
|
1027
|
+
return 'VersionData(version=' + this.k2q_1 + ', snapshot=' + this.l2q_1 + ', snapshotReasons=' + toString_0(this.m2q_1) + ', warnings=' + toString_0(this.n2q_1) + ')';
|
|
1022
1028
|
};
|
|
1023
1029
|
protoOf(VersionData).hashCode = function () {
|
|
1024
|
-
var result = getStringHashCode(this.
|
|
1025
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
1026
|
-
result = imul(result, 31) + hashCode(this.
|
|
1027
|
-
result = imul(result, 31) + hashCode(this.
|
|
1030
|
+
var result = getStringHashCode(this.k2q_1);
|
|
1031
|
+
result = imul(result, 31) + getBooleanHashCode(this.l2q_1) | 0;
|
|
1032
|
+
result = imul(result, 31) + hashCode(this.m2q_1) | 0;
|
|
1033
|
+
result = imul(result, 31) + hashCode(this.n2q_1) | 0;
|
|
1028
1034
|
return result;
|
|
1029
1035
|
};
|
|
1030
1036
|
protoOf(VersionData).equals = function (other) {
|
|
@@ -1032,19 +1038,19 @@
|
|
|
1032
1038
|
return true;
|
|
1033
1039
|
if (!(other instanceof VersionData))
|
|
1034
1040
|
return false;
|
|
1035
|
-
if (!(this.
|
|
1041
|
+
if (!(this.k2q_1 === other.k2q_1))
|
|
1036
1042
|
return false;
|
|
1037
|
-
if (!(this.
|
|
1043
|
+
if (!(this.l2q_1 === other.l2q_1))
|
|
1038
1044
|
return false;
|
|
1039
|
-
if (!equals(this.
|
|
1045
|
+
if (!equals(this.m2q_1, other.m2q_1))
|
|
1040
1046
|
return false;
|
|
1041
|
-
if (!equals(this.
|
|
1047
|
+
if (!equals(this.n2q_1, other.n2q_1))
|
|
1042
1048
|
return false;
|
|
1043
1049
|
return true;
|
|
1044
1050
|
};
|
|
1045
1051
|
function Companion_1() {
|
|
1046
1052
|
}
|
|
1047
|
-
protoOf(Companion_1).
|
|
1053
|
+
protoOf(Companion_1).i2d = function () {
|
|
1048
1054
|
return $serializer_getInstance_1();
|
|
1049
1055
|
};
|
|
1050
1056
|
var Companion_instance_4;
|
|
@@ -1054,68 +1060,68 @@
|
|
|
1054
1060
|
function $serializer_1() {
|
|
1055
1061
|
$serializer_instance_1 = this;
|
|
1056
1062
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.ErrorResponse', this, 3);
|
|
1057
|
-
tmp0_serialDesc.
|
|
1058
|
-
tmp0_serialDesc.
|
|
1059
|
-
tmp0_serialDesc.
|
|
1060
|
-
this.
|
|
1061
|
-
}
|
|
1062
|
-
protoOf($serializer_1).
|
|
1063
|
-
var tmp0_desc = this.
|
|
1064
|
-
var tmp1_output = encoder.
|
|
1065
|
-
tmp1_output.
|
|
1066
|
-
tmp1_output.
|
|
1067
|
-
tmp1_output.
|
|
1068
|
-
tmp1_output.
|
|
1063
|
+
tmp0_serialDesc.cz('status', false);
|
|
1064
|
+
tmp0_serialDesc.cz('error', false);
|
|
1065
|
+
tmp0_serialDesc.cz('code', false);
|
|
1066
|
+
this.o2q_1 = tmp0_serialDesc;
|
|
1067
|
+
}
|
|
1068
|
+
protoOf($serializer_1).p2q = function (encoder, value) {
|
|
1069
|
+
var tmp0_desc = this.o2q_1;
|
|
1070
|
+
var tmp1_output = encoder.tr(tmp0_desc);
|
|
1071
|
+
tmp1_output.ht(tmp0_desc, 0, value.q2q_1);
|
|
1072
|
+
tmp1_output.ht(tmp0_desc, 1, value.r2q_1);
|
|
1073
|
+
tmp1_output.ht(tmp0_desc, 2, value.s2q_1);
|
|
1074
|
+
tmp1_output.ur(tmp0_desc);
|
|
1069
1075
|
};
|
|
1070
|
-
protoOf($serializer_1).
|
|
1071
|
-
return this.
|
|
1076
|
+
protoOf($serializer_1).xo = function (encoder, value) {
|
|
1077
|
+
return this.p2q(encoder, value instanceof ErrorResponse ? value : THROW_CCE());
|
|
1072
1078
|
};
|
|
1073
|
-
protoOf($serializer_1).
|
|
1074
|
-
var tmp0_desc = this.
|
|
1079
|
+
protoOf($serializer_1).yo = function (decoder) {
|
|
1080
|
+
var tmp0_desc = this.o2q_1;
|
|
1075
1081
|
var tmp1_flag = true;
|
|
1076
1082
|
var tmp2_index = 0;
|
|
1077
1083
|
var tmp3_bitMask0 = 0;
|
|
1078
1084
|
var tmp4_local0 = null;
|
|
1079
1085
|
var tmp5_local1 = null;
|
|
1080
1086
|
var tmp6_local2 = null;
|
|
1081
|
-
var tmp7_input = decoder.
|
|
1082
|
-
if (tmp7_input.
|
|
1083
|
-
tmp4_local0 = tmp7_input.
|
|
1087
|
+
var tmp7_input = decoder.tr(tmp0_desc);
|
|
1088
|
+
if (tmp7_input.js()) {
|
|
1089
|
+
tmp4_local0 = tmp7_input.ds(tmp0_desc, 0);
|
|
1084
1090
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1085
|
-
tmp5_local1 = tmp7_input.
|
|
1091
|
+
tmp5_local1 = tmp7_input.ds(tmp0_desc, 1);
|
|
1086
1092
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1087
|
-
tmp6_local2 = tmp7_input.
|
|
1093
|
+
tmp6_local2 = tmp7_input.ds(tmp0_desc, 2);
|
|
1088
1094
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1089
1095
|
} else
|
|
1090
1096
|
while (tmp1_flag) {
|
|
1091
|
-
tmp2_index = tmp7_input.
|
|
1097
|
+
tmp2_index = tmp7_input.ks(tmp0_desc);
|
|
1092
1098
|
switch (tmp2_index) {
|
|
1093
1099
|
case -1:
|
|
1094
1100
|
tmp1_flag = false;
|
|
1095
1101
|
break;
|
|
1096
1102
|
case 0:
|
|
1097
|
-
tmp4_local0 = tmp7_input.
|
|
1103
|
+
tmp4_local0 = tmp7_input.ds(tmp0_desc, 0);
|
|
1098
1104
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1099
1105
|
break;
|
|
1100
1106
|
case 1:
|
|
1101
|
-
tmp5_local1 = tmp7_input.
|
|
1107
|
+
tmp5_local1 = tmp7_input.ds(tmp0_desc, 1);
|
|
1102
1108
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1103
1109
|
break;
|
|
1104
1110
|
case 2:
|
|
1105
|
-
tmp6_local2 = tmp7_input.
|
|
1111
|
+
tmp6_local2 = tmp7_input.ds(tmp0_desc, 2);
|
|
1106
1112
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1107
1113
|
break;
|
|
1108
1114
|
default:
|
|
1109
1115
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1110
1116
|
}
|
|
1111
1117
|
}
|
|
1112
|
-
tmp7_input.
|
|
1118
|
+
tmp7_input.ur(tmp0_desc);
|
|
1113
1119
|
return ErrorResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1114
1120
|
};
|
|
1115
|
-
protoOf($serializer_1).
|
|
1116
|
-
return this.
|
|
1121
|
+
protoOf($serializer_1).wo = function () {
|
|
1122
|
+
return this.o2q_1;
|
|
1117
1123
|
};
|
|
1118
|
-
protoOf($serializer_1).
|
|
1124
|
+
protoOf($serializer_1).ez = function () {
|
|
1119
1125
|
// Inline function 'kotlin.arrayOf' call
|
|
1120
1126
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1121
1127
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1129,28 +1135,28 @@
|
|
|
1129
1135
|
}
|
|
1130
1136
|
function ErrorResponse_init_$Init$(seen0, status, error, code, serializationConstructorMarker, $this) {
|
|
1131
1137
|
if (!(7 === (7 & seen0))) {
|
|
1132
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_1().
|
|
1138
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_1().o2q_1);
|
|
1133
1139
|
}
|
|
1134
|
-
$this.
|
|
1135
|
-
$this.
|
|
1136
|
-
$this.
|
|
1140
|
+
$this.q2q_1 = status;
|
|
1141
|
+
$this.r2q_1 = error;
|
|
1142
|
+
$this.s2q_1 = code;
|
|
1137
1143
|
return $this;
|
|
1138
1144
|
}
|
|
1139
1145
|
function ErrorResponse_init_$Create$(seen0, status, error, code, serializationConstructorMarker) {
|
|
1140
1146
|
return ErrorResponse_init_$Init$(seen0, status, error, code, serializationConstructorMarker, objectCreate(protoOf(ErrorResponse)));
|
|
1141
1147
|
}
|
|
1142
1148
|
function ErrorResponse(status, error, code) {
|
|
1143
|
-
this.
|
|
1144
|
-
this.
|
|
1145
|
-
this.
|
|
1149
|
+
this.q2q_1 = status;
|
|
1150
|
+
this.r2q_1 = error;
|
|
1151
|
+
this.s2q_1 = code;
|
|
1146
1152
|
}
|
|
1147
1153
|
protoOf(ErrorResponse).toString = function () {
|
|
1148
|
-
return 'ErrorResponse(status=' + this.
|
|
1154
|
+
return 'ErrorResponse(status=' + this.q2q_1 + ', error=' + this.r2q_1 + ', code=' + this.s2q_1 + ')';
|
|
1149
1155
|
};
|
|
1150
1156
|
protoOf(ErrorResponse).hashCode = function () {
|
|
1151
|
-
var result = getStringHashCode(this.
|
|
1152
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1153
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1157
|
+
var result = getStringHashCode(this.q2q_1);
|
|
1158
|
+
result = imul(result, 31) + getStringHashCode(this.r2q_1) | 0;
|
|
1159
|
+
result = imul(result, 31) + getStringHashCode(this.s2q_1) | 0;
|
|
1154
1160
|
return result;
|
|
1155
1161
|
};
|
|
1156
1162
|
protoOf(ErrorResponse).equals = function (other) {
|
|
@@ -1158,17 +1164,17 @@
|
|
|
1158
1164
|
return true;
|
|
1159
1165
|
if (!(other instanceof ErrorResponse))
|
|
1160
1166
|
return false;
|
|
1161
|
-
if (!(this.
|
|
1167
|
+
if (!(this.q2q_1 === other.q2q_1))
|
|
1162
1168
|
return false;
|
|
1163
|
-
if (!(this.
|
|
1169
|
+
if (!(this.r2q_1 === other.r2q_1))
|
|
1164
1170
|
return false;
|
|
1165
|
-
if (!(this.
|
|
1171
|
+
if (!(this.s2q_1 === other.s2q_1))
|
|
1166
1172
|
return false;
|
|
1167
1173
|
return true;
|
|
1168
1174
|
};
|
|
1169
1175
|
function Companion_2() {
|
|
1170
1176
|
}
|
|
1171
|
-
protoOf(Companion_2).
|
|
1177
|
+
protoOf(Companion_2).i2d = function () {
|
|
1172
1178
|
return $serializer_getInstance_2();
|
|
1173
1179
|
};
|
|
1174
1180
|
var Companion_instance_5;
|
|
@@ -1178,59 +1184,59 @@
|
|
|
1178
1184
|
function $serializer_2() {
|
|
1179
1185
|
$serializer_instance_2 = this;
|
|
1180
1186
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.TagSuccessResponse', this, 2);
|
|
1181
|
-
tmp0_serialDesc.
|
|
1182
|
-
tmp0_serialDesc.
|
|
1183
|
-
this.
|
|
1184
|
-
}
|
|
1185
|
-
protoOf($serializer_2).
|
|
1186
|
-
var tmp0_desc = this.
|
|
1187
|
-
var tmp1_output = encoder.
|
|
1188
|
-
tmp1_output.
|
|
1189
|
-
tmp1_output.
|
|
1190
|
-
tmp1_output.
|
|
1187
|
+
tmp0_serialDesc.cz('status', false);
|
|
1188
|
+
tmp0_serialDesc.cz('data', false);
|
|
1189
|
+
this.t2q_1 = tmp0_serialDesc;
|
|
1190
|
+
}
|
|
1191
|
+
protoOf($serializer_2).u2q = function (encoder, value) {
|
|
1192
|
+
var tmp0_desc = this.t2q_1;
|
|
1193
|
+
var tmp1_output = encoder.tr(tmp0_desc);
|
|
1194
|
+
tmp1_output.ht(tmp0_desc, 0, value.v2q_1);
|
|
1195
|
+
tmp1_output.jt(tmp0_desc, 1, $serializer_getInstance_3(), value.w2q_1);
|
|
1196
|
+
tmp1_output.ur(tmp0_desc);
|
|
1191
1197
|
};
|
|
1192
|
-
protoOf($serializer_2).
|
|
1193
|
-
return this.
|
|
1198
|
+
protoOf($serializer_2).xo = function (encoder, value) {
|
|
1199
|
+
return this.u2q(encoder, value instanceof TagSuccessResponse ? value : THROW_CCE());
|
|
1194
1200
|
};
|
|
1195
|
-
protoOf($serializer_2).
|
|
1196
|
-
var tmp0_desc = this.
|
|
1201
|
+
protoOf($serializer_2).yo = function (decoder) {
|
|
1202
|
+
var tmp0_desc = this.t2q_1;
|
|
1197
1203
|
var tmp1_flag = true;
|
|
1198
1204
|
var tmp2_index = 0;
|
|
1199
1205
|
var tmp3_bitMask0 = 0;
|
|
1200
1206
|
var tmp4_local0 = null;
|
|
1201
1207
|
var tmp5_local1 = null;
|
|
1202
|
-
var tmp6_input = decoder.
|
|
1203
|
-
if (tmp6_input.
|
|
1204
|
-
tmp4_local0 = tmp6_input.
|
|
1208
|
+
var tmp6_input = decoder.tr(tmp0_desc);
|
|
1209
|
+
if (tmp6_input.js()) {
|
|
1210
|
+
tmp4_local0 = tmp6_input.ds(tmp0_desc, 0);
|
|
1205
1211
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1206
|
-
tmp5_local1 = tmp6_input.
|
|
1212
|
+
tmp5_local1 = tmp6_input.fs(tmp0_desc, 1, $serializer_getInstance_3(), tmp5_local1);
|
|
1207
1213
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1208
1214
|
} else
|
|
1209
1215
|
while (tmp1_flag) {
|
|
1210
|
-
tmp2_index = tmp6_input.
|
|
1216
|
+
tmp2_index = tmp6_input.ks(tmp0_desc);
|
|
1211
1217
|
switch (tmp2_index) {
|
|
1212
1218
|
case -1:
|
|
1213
1219
|
tmp1_flag = false;
|
|
1214
1220
|
break;
|
|
1215
1221
|
case 0:
|
|
1216
|
-
tmp4_local0 = tmp6_input.
|
|
1222
|
+
tmp4_local0 = tmp6_input.ds(tmp0_desc, 0);
|
|
1217
1223
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1218
1224
|
break;
|
|
1219
1225
|
case 1:
|
|
1220
|
-
tmp5_local1 = tmp6_input.
|
|
1226
|
+
tmp5_local1 = tmp6_input.fs(tmp0_desc, 1, $serializer_getInstance_3(), tmp5_local1);
|
|
1221
1227
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1222
1228
|
break;
|
|
1223
1229
|
default:
|
|
1224
1230
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1225
1231
|
}
|
|
1226
1232
|
}
|
|
1227
|
-
tmp6_input.
|
|
1233
|
+
tmp6_input.ur(tmp0_desc);
|
|
1228
1234
|
return TagSuccessResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1229
1235
|
};
|
|
1230
|
-
protoOf($serializer_2).
|
|
1231
|
-
return this.
|
|
1236
|
+
protoOf($serializer_2).wo = function () {
|
|
1237
|
+
return this.t2q_1;
|
|
1232
1238
|
};
|
|
1233
|
-
protoOf($serializer_2).
|
|
1239
|
+
protoOf($serializer_2).ez = function () {
|
|
1234
1240
|
// Inline function 'kotlin.arrayOf' call
|
|
1235
1241
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1236
1242
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1244,25 +1250,25 @@
|
|
|
1244
1250
|
}
|
|
1245
1251
|
function TagSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, $this) {
|
|
1246
1252
|
if (!(3 === (3 & seen0))) {
|
|
1247
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1253
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().t2q_1);
|
|
1248
1254
|
}
|
|
1249
|
-
$this.
|
|
1250
|
-
$this.
|
|
1255
|
+
$this.v2q_1 = status;
|
|
1256
|
+
$this.w2q_1 = data;
|
|
1251
1257
|
return $this;
|
|
1252
1258
|
}
|
|
1253
1259
|
function TagSuccessResponse_init_$Create$(seen0, status, data, serializationConstructorMarker) {
|
|
1254
1260
|
return TagSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, objectCreate(protoOf(TagSuccessResponse)));
|
|
1255
1261
|
}
|
|
1256
1262
|
function TagSuccessResponse(status, data) {
|
|
1257
|
-
this.
|
|
1258
|
-
this.
|
|
1263
|
+
this.v2q_1 = status;
|
|
1264
|
+
this.w2q_1 = data;
|
|
1259
1265
|
}
|
|
1260
1266
|
protoOf(TagSuccessResponse).toString = function () {
|
|
1261
|
-
return 'TagSuccessResponse(status=' + this.
|
|
1267
|
+
return 'TagSuccessResponse(status=' + this.v2q_1 + ', data=' + this.w2q_1.toString() + ')';
|
|
1262
1268
|
};
|
|
1263
1269
|
protoOf(TagSuccessResponse).hashCode = function () {
|
|
1264
|
-
var result = getStringHashCode(this.
|
|
1265
|
-
result = imul(result, 31) + this.
|
|
1270
|
+
var result = getStringHashCode(this.v2q_1);
|
|
1271
|
+
result = imul(result, 31) + this.w2q_1.hashCode() | 0;
|
|
1266
1272
|
return result;
|
|
1267
1273
|
};
|
|
1268
1274
|
protoOf(TagSuccessResponse).equals = function (other) {
|
|
@@ -1270,9 +1276,9 @@
|
|
|
1270
1276
|
return true;
|
|
1271
1277
|
if (!(other instanceof TagSuccessResponse))
|
|
1272
1278
|
return false;
|
|
1273
|
-
if (!(this.
|
|
1279
|
+
if (!(this.v2q_1 === other.v2q_1))
|
|
1274
1280
|
return false;
|
|
1275
|
-
if (!this.
|
|
1281
|
+
if (!this.w2q_1.equals(other.w2q_1))
|
|
1276
1282
|
return false;
|
|
1277
1283
|
return true;
|
|
1278
1284
|
};
|
|
@@ -1285,50 +1291,50 @@
|
|
|
1285
1291
|
function $serializer_3() {
|
|
1286
1292
|
$serializer_instance_3 = this;
|
|
1287
1293
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.TagData', this, 1);
|
|
1288
|
-
tmp0_serialDesc.
|
|
1289
|
-
this.
|
|
1290
|
-
}
|
|
1291
|
-
protoOf($serializer_3).
|
|
1292
|
-
var tmp0_desc = this.
|
|
1293
|
-
var tmp1_output = encoder.
|
|
1294
|
-
tmp1_output.
|
|
1295
|
-
tmp1_output.
|
|
1294
|
+
tmp0_serialDesc.cz('tag', false);
|
|
1295
|
+
this.x2q_1 = tmp0_serialDesc;
|
|
1296
|
+
}
|
|
1297
|
+
protoOf($serializer_3).y2q = function (encoder, value) {
|
|
1298
|
+
var tmp0_desc = this.x2q_1;
|
|
1299
|
+
var tmp1_output = encoder.tr(tmp0_desc);
|
|
1300
|
+
tmp1_output.ht(tmp0_desc, 0, value.z2q_1);
|
|
1301
|
+
tmp1_output.ur(tmp0_desc);
|
|
1296
1302
|
};
|
|
1297
|
-
protoOf($serializer_3).
|
|
1298
|
-
return this.
|
|
1303
|
+
protoOf($serializer_3).xo = function (encoder, value) {
|
|
1304
|
+
return this.y2q(encoder, value instanceof TagData ? value : THROW_CCE());
|
|
1299
1305
|
};
|
|
1300
|
-
protoOf($serializer_3).
|
|
1301
|
-
var tmp0_desc = this.
|
|
1306
|
+
protoOf($serializer_3).yo = function (decoder) {
|
|
1307
|
+
var tmp0_desc = this.x2q_1;
|
|
1302
1308
|
var tmp1_flag = true;
|
|
1303
1309
|
var tmp2_index = 0;
|
|
1304
1310
|
var tmp3_bitMask0 = 0;
|
|
1305
1311
|
var tmp4_local0 = null;
|
|
1306
|
-
var tmp5_input = decoder.
|
|
1307
|
-
if (tmp5_input.
|
|
1308
|
-
tmp4_local0 = tmp5_input.
|
|
1312
|
+
var tmp5_input = decoder.tr(tmp0_desc);
|
|
1313
|
+
if (tmp5_input.js()) {
|
|
1314
|
+
tmp4_local0 = tmp5_input.ds(tmp0_desc, 0);
|
|
1309
1315
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1310
1316
|
} else
|
|
1311
1317
|
while (tmp1_flag) {
|
|
1312
|
-
tmp2_index = tmp5_input.
|
|
1318
|
+
tmp2_index = tmp5_input.ks(tmp0_desc);
|
|
1313
1319
|
switch (tmp2_index) {
|
|
1314
1320
|
case -1:
|
|
1315
1321
|
tmp1_flag = false;
|
|
1316
1322
|
break;
|
|
1317
1323
|
case 0:
|
|
1318
|
-
tmp4_local0 = tmp5_input.
|
|
1324
|
+
tmp4_local0 = tmp5_input.ds(tmp0_desc, 0);
|
|
1319
1325
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1320
1326
|
break;
|
|
1321
1327
|
default:
|
|
1322
1328
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1323
1329
|
}
|
|
1324
1330
|
}
|
|
1325
|
-
tmp5_input.
|
|
1331
|
+
tmp5_input.ur(tmp0_desc);
|
|
1326
1332
|
return TagData_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
1327
1333
|
};
|
|
1328
|
-
protoOf($serializer_3).
|
|
1329
|
-
return this.
|
|
1334
|
+
protoOf($serializer_3).wo = function () {
|
|
1335
|
+
return this.x2q_1;
|
|
1330
1336
|
};
|
|
1331
|
-
protoOf($serializer_3).
|
|
1337
|
+
protoOf($serializer_3).ez = function () {
|
|
1332
1338
|
// Inline function 'kotlin.arrayOf' call
|
|
1333
1339
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1334
1340
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1342,40 +1348,40 @@
|
|
|
1342
1348
|
}
|
|
1343
1349
|
function TagData_init_$Init$(seen0, tag, serializationConstructorMarker, $this) {
|
|
1344
1350
|
if (!(1 === (1 & seen0))) {
|
|
1345
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_3().
|
|
1351
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_3().x2q_1);
|
|
1346
1352
|
}
|
|
1347
|
-
$this.
|
|
1353
|
+
$this.z2q_1 = tag;
|
|
1348
1354
|
return $this;
|
|
1349
1355
|
}
|
|
1350
1356
|
function TagData_init_$Create$(seen0, tag, serializationConstructorMarker) {
|
|
1351
1357
|
return TagData_init_$Init$(seen0, tag, serializationConstructorMarker, objectCreate(protoOf(TagData)));
|
|
1352
1358
|
}
|
|
1353
1359
|
function TagData(tag) {
|
|
1354
|
-
this.
|
|
1360
|
+
this.z2q_1 = tag;
|
|
1355
1361
|
}
|
|
1356
1362
|
protoOf(TagData).toString = function () {
|
|
1357
|
-
return 'TagData(tag=' + this.
|
|
1363
|
+
return 'TagData(tag=' + this.z2q_1 + ')';
|
|
1358
1364
|
};
|
|
1359
1365
|
protoOf(TagData).hashCode = function () {
|
|
1360
|
-
return getStringHashCode(this.
|
|
1366
|
+
return getStringHashCode(this.z2q_1);
|
|
1361
1367
|
};
|
|
1362
1368
|
protoOf(TagData).equals = function (other) {
|
|
1363
1369
|
if (this === other)
|
|
1364
1370
|
return true;
|
|
1365
1371
|
if (!(other instanceof TagData))
|
|
1366
1372
|
return false;
|
|
1367
|
-
if (!(this.
|
|
1373
|
+
if (!(this.z2q_1 === other.z2q_1))
|
|
1368
1374
|
return false;
|
|
1369
1375
|
return true;
|
|
1370
1376
|
};
|
|
1371
1377
|
function versionSuccessResponse(data) {
|
|
1372
|
-
return Default_getInstance().
|
|
1378
|
+
return Default_getInstance().x2a(Companion_instance_2.i2d(), new VersionSuccessResponse('success', data));
|
|
1373
1379
|
}
|
|
1374
1380
|
function tagSuccessResponse(data) {
|
|
1375
|
-
return Default_getInstance().
|
|
1381
|
+
return Default_getInstance().x2a(Companion_instance_5.i2d(), new TagSuccessResponse('success', data));
|
|
1376
1382
|
}
|
|
1377
1383
|
function errorResponse(message, code) {
|
|
1378
|
-
return Default_getInstance().
|
|
1384
|
+
return Default_getInstance().x2a(Companion_instance_4.i2d(), new ErrorResponse('error', message, code));
|
|
1379
1385
|
}
|
|
1380
1386
|
function main_0(args) {
|
|
1381
1387
|
return main(cli(), platformArgCorrection(args));
|
|
@@ -1388,11 +1394,11 @@
|
|
|
1388
1394
|
}
|
|
1389
1395
|
function _get_gitRepoArgument__zxde8_0($this) {
|
|
1390
1396
|
var tmp = KProperty1;
|
|
1391
|
-
return $this.
|
|
1397
|
+
return $this.p2r_1.c1n($this, getPropertyCallableRef('gitRepoArgument', 1, tmp, Tag$_get_gitRepoArgument_$ref_dketaj_0(), null));
|
|
1392
1398
|
}
|
|
1393
1399
|
function _get_gitRepoOption__rk7ta0_0($this) {
|
|
1394
1400
|
var tmp = KProperty1;
|
|
1395
|
-
return $this.
|
|
1401
|
+
return $this.q2r_1.c1n($this, getPropertyCallableRef('gitRepoOption', 1, tmp, Tag$_get_gitRepoOption_$ref_10iywz_0(), null));
|
|
1396
1402
|
}
|
|
1397
1403
|
function _get_workingDirectory__eyfbj_0($this) {
|
|
1398
1404
|
var tmp0_elvis_lhs = _get_gitRepoArgument__zxde8_0($this);
|
|
@@ -1407,38 +1413,38 @@
|
|
|
1407
1413
|
}
|
|
1408
1414
|
function _get_releaseBranch__pqrgbs_0($this) {
|
|
1409
1415
|
var tmp = KProperty1;
|
|
1410
|
-
return $this.
|
|
1416
|
+
return $this.r2r_1.c1n($this, getPropertyCallableRef('releaseBranch', 1, tmp, Tag$_get_releaseBranch_$ref_rq8rmb_0(), null));
|
|
1411
1417
|
}
|
|
1412
1418
|
function _get_version__2bx7w9($this) {
|
|
1413
1419
|
var tmp = KProperty1;
|
|
1414
|
-
return $this.
|
|
1420
|
+
return $this.s2r_1.c1n($this, getPropertyCallableRef('version', 1, tmp, Tag$_get_version_$ref_p7wb9e_0(), null));
|
|
1415
1421
|
}
|
|
1416
1422
|
function _get_userName__tupjmd($this) {
|
|
1417
1423
|
var tmp = KProperty1;
|
|
1418
|
-
return $this.
|
|
1424
|
+
return $this.t2r_1.c1n($this, getPropertyCallableRef('userName', 1, tmp, Tag$_get_userName_$ref_kslo5u_0(), null));
|
|
1419
1425
|
}
|
|
1420
1426
|
function _get_userEmail__21hfkw($this) {
|
|
1421
1427
|
var tmp = KProperty1;
|
|
1422
|
-
return $this.
|
|
1428
|
+
return $this.u2r_1.c1n($this, getPropertyCallableRef('userEmail', 1, tmp, Tag$_get_userEmail_$ref_vl09cr_0(), null));
|
|
1423
1429
|
}
|
|
1424
1430
|
function _get_allowDetachedHead__iyebhm_0($this) {
|
|
1425
1431
|
var tmp = KProperty1;
|
|
1426
|
-
return $this.
|
|
1432
|
+
return $this.v2r_1.c1n($this, getPropertyCallableRef('allowDetachedHead', 1, tmp, Tag$_get_allowDetachedHead_$ref_qujqxn_0(), null));
|
|
1427
1433
|
}
|
|
1428
1434
|
function _get_dryRun__18z7px($this) {
|
|
1429
1435
|
var tmp = KProperty1;
|
|
1430
|
-
return $this.
|
|
1436
|
+
return $this.w2r_1.c1n($this, getPropertyCallableRef('dryRun', 1, tmp, Tag$_get_dryRun_$ref_agy9vo_0(), null));
|
|
1431
1437
|
}
|
|
1432
1438
|
function _get_warningsAsErrors__7mpwfd($this) {
|
|
1433
1439
|
var tmp = KProperty1;
|
|
1434
|
-
return $this.
|
|
1440
|
+
return $this.x2r_1.c1n($this, getPropertyCallableRef('warningsAsErrors', 1, tmp, Tag$_get_warningsAsErrors_$ref_gj8a6o_0(), null));
|
|
1435
1441
|
}
|
|
1436
1442
|
function _get_format__qlarck_0($this) {
|
|
1437
1443
|
var tmp = KProperty1;
|
|
1438
|
-
return $this.
|
|
1444
|
+
return $this.y2r_1.c1n($this, getPropertyCallableRef('format', 1, tmp, Tag$_get_format_$ref_i96vgt_0(), null));
|
|
1439
1445
|
}
|
|
1440
1446
|
function Tag$lambda($this$context) {
|
|
1441
|
-
$this$context.
|
|
1447
|
+
$this$context.i1d([new ConfigFileSource($this$context.e1d_1)]);
|
|
1442
1448
|
return Unit_instance;
|
|
1443
1449
|
}
|
|
1444
1450
|
function Tag$_get_gitRepoArgument_$ref_dketaj() {
|
|
@@ -1547,42 +1553,42 @@
|
|
|
1547
1553
|
var tmp = this;
|
|
1548
1554
|
var tmp_0 = optional(argument(this, 'git-repo'));
|
|
1549
1555
|
var tmp_1 = KProperty1;
|
|
1550
|
-
tmp.
|
|
1556
|
+
tmp.p2r_1 = tmp_0.i1m(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, Tag$_get_gitRepoArgument_$ref_dketaj(), null));
|
|
1551
1557
|
var tmp_2 = this;
|
|
1552
1558
|
var tmp_3 = option(this, ['--git-repo'], VOID, VOID, VOID, 'PWD');
|
|
1553
1559
|
var tmp_4 = KProperty1;
|
|
1554
|
-
tmp_2.
|
|
1560
|
+
tmp_2.q2r_1 = tmp_3.m1n(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, Tag$_get_gitRepoOption_$ref_10iywz(), null));
|
|
1555
1561
|
var tmp_5 = this;
|
|
1556
1562
|
var tmp_6 = required(option(this, []));
|
|
1557
1563
|
var tmp_7 = KProperty1;
|
|
1558
|
-
tmp_5.
|
|
1564
|
+
tmp_5.r2r_1 = tmp_6.m1n(this, getPropertyCallableRef('releaseBranch', 1, tmp_7, Tag$_get_releaseBranch_$ref_rq8rmb(), null));
|
|
1559
1565
|
var tmp_8 = this;
|
|
1560
1566
|
var tmp_9 = required(option(this, ['--version'], 'Version to tag (required)'));
|
|
1561
1567
|
var tmp_10 = KProperty1;
|
|
1562
|
-
tmp_8.
|
|
1568
|
+
tmp_8.s2r_1 = tmp_9.m1n(this, getPropertyCallableRef('version', 1, tmp_10, Tag$_get_version_$ref_p7wb9e(), null));
|
|
1563
1569
|
var tmp_11 = this;
|
|
1564
1570
|
var tmp_12 = option(this, []);
|
|
1565
1571
|
var tmp_13 = KProperty1;
|
|
1566
|
-
tmp_11.
|
|
1572
|
+
tmp_11.t2r_1 = tmp_12.m1n(this, getPropertyCallableRef('userName', 1, tmp_13, Tag$_get_userName_$ref_kslo5u(), null));
|
|
1567
1573
|
var tmp_14 = this;
|
|
1568
1574
|
var tmp_15 = option(this, []);
|
|
1569
1575
|
var tmp_16 = KProperty1;
|
|
1570
|
-
tmp_14.
|
|
1576
|
+
tmp_14.u2r_1 = tmp_15.m1n(this, getPropertyCallableRef('userEmail', 1, tmp_16, Tag$_get_userEmail_$ref_vl09cr(), null));
|
|
1571
1577
|
var tmp_17 = this;
|
|
1572
1578
|
var tmp_18 = default_0(boolean(option(this, ['--allow-detached-head'])), false);
|
|
1573
1579
|
var tmp_19 = KProperty1;
|
|
1574
|
-
tmp_17.
|
|
1580
|
+
tmp_17.v2r_1 = tmp_18.m1n(this, getPropertyCallableRef('allowDetachedHead', 1, tmp_19, Tag$_get_allowDetachedHead_$ref_qujqxn(), null));
|
|
1575
1581
|
var tmp_20 = this;
|
|
1576
1582
|
var tmp_21 = default_0(boolean(option(this, ['--dry-run'])), false);
|
|
1577
1583
|
var tmp_22 = KProperty1;
|
|
1578
|
-
tmp_20.
|
|
1584
|
+
tmp_20.w2r_1 = tmp_21.m1n(this, getPropertyCallableRef('dryRun', 1, tmp_22, Tag$_get_dryRun_$ref_agy9vo(), null));
|
|
1579
1585
|
var tmp_23 = this;
|
|
1580
1586
|
var tmp_24 = default_0(boolean(option(this, [])), false);
|
|
1581
1587
|
var tmp_25 = KProperty1;
|
|
1582
|
-
tmp_23.
|
|
1588
|
+
tmp_23.x2r_1 = tmp_24.m1n(this, getPropertyCallableRef('warningsAsErrors', 1, tmp_25, Tag$_get_warningsAsErrors_$ref_gj8a6o(), null));
|
|
1583
1589
|
var tmp_26 = this;
|
|
1584
1590
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
1585
|
-
var this_0 = option(this, ['--format'], 'Output format
|
|
1591
|
+
var this_0 = option(this, ['--format'], 'Output format for result');
|
|
1586
1592
|
// Inline function 'kotlin.enumValues' call
|
|
1587
1593
|
// Inline function 'kotlin.collections.associateBy' call
|
|
1588
1594
|
var this_1 = values();
|
|
@@ -1600,28 +1606,28 @@
|
|
|
1600
1606
|
destination.p2(tmp$ret$4, element);
|
|
1601
1607
|
}
|
|
1602
1608
|
var tmp$ret$0 = choice(this_0, destination, VOID, true);
|
|
1603
|
-
var tmp_27 = default_0(tmp$ret$0, OutputFormat_TEXT_getInstance());
|
|
1609
|
+
var tmp_27 = default_0(tmp$ret$0, OutputFormat_TEXT_getInstance(), 'text');
|
|
1604
1610
|
var tmp_28 = KProperty1;
|
|
1605
|
-
tmp_26.
|
|
1611
|
+
tmp_26.y2r_1 = tmp_27.m1n(this, getPropertyCallableRef('format', 1, tmp_28, Tag$_get_format_$ref_i96vgt(), null));
|
|
1606
1612
|
}
|
|
1607
|
-
protoOf(Tag).
|
|
1613
|
+
protoOf(Tag).b1e = function () {
|
|
1608
1614
|
var gitAdapter = new GitAdapter(_get_workingDirectory__eyfbj_0(this));
|
|
1609
1615
|
if (_get_dryRun__18z7px(this)) {
|
|
1610
1616
|
var headCommit = gitAdapter.kl();
|
|
1611
1617
|
var headBranch = gitAdapter.ql().vl_1;
|
|
1612
|
-
this.
|
|
1613
|
-
this.
|
|
1614
|
-
this.
|
|
1618
|
+
this.o1c("Would create annotated tag '" + _get_version__2bx7w9(this) + "' at " + headCommit + " on branch '" + headBranch + "'.");
|
|
1619
|
+
this.o1c("Would push to remote 'origin'.");
|
|
1620
|
+
this.o1c('(no changes made)');
|
|
1615
1621
|
} else {
|
|
1616
1622
|
// Inline function 'kotlin.let' call
|
|
1617
1623
|
var it = tag(new TaggerCore(gitAdapter), _get_version__2bx7w9(this), _get_releaseBranch__pqrgbs_0(this), _get_userName__tupjmd(this), _get_userEmail__21hfkw(this), _get_allowDetachedHead__iyebhm_0(this));
|
|
1618
1624
|
if (equals(it, Success_getInstance())) {
|
|
1619
1625
|
switch (_get_format__qlarck_0(this).y2_1) {
|
|
1620
1626
|
case 1:
|
|
1621
|
-
this.
|
|
1627
|
+
this.o1c(tagSuccessResponse(new TagData(_get_version__2bx7w9(this))));
|
|
1622
1628
|
break;
|
|
1623
1629
|
case 0:
|
|
1624
|
-
this.
|
|
1630
|
+
this.o1c('Success!');
|
|
1625
1631
|
break;
|
|
1626
1632
|
default:
|
|
1627
1633
|
noWhenBranchMatchedException();
|
|
@@ -1631,14 +1637,14 @@
|
|
|
1631
1637
|
if (it instanceof Error_0) {
|
|
1632
1638
|
switch (_get_format__qlarck_0(this).y2_1) {
|
|
1633
1639
|
case 1:
|
|
1634
|
-
this.
|
|
1640
|
+
this.o1c(errorResponse(it.ko_1, 'TAG_ERROR'));
|
|
1635
1641
|
var tmp3_statusCode = _get_warningsAsErrors__7mpwfd(this) ? 1 : 0;
|
|
1636
1642
|
throw new CliktError('', VOID, tmp3_statusCode, false);
|
|
1637
1643
|
case 0:
|
|
1638
1644
|
if (_get_warningsAsErrors__7mpwfd(this)) {
|
|
1639
|
-
throw new CliktError(it.
|
|
1645
|
+
throw new CliktError(it.ko_1);
|
|
1640
1646
|
} else {
|
|
1641
|
-
this.
|
|
1647
|
+
this.o1c(it.ko_1, VOID, true);
|
|
1642
1648
|
}
|
|
1643
1649
|
|
|
1644
1650
|
break;
|
|
@@ -1654,12 +1660,20 @@
|
|
|
1654
1660
|
};
|
|
1655
1661
|
function _get_quiet__c6dzoj($this) {
|
|
1656
1662
|
var tmp = KProperty1;
|
|
1657
|
-
return $this.
|
|
1663
|
+
return $this.o2s_1.c1n($this, getPropertyCallableRef('quiet', 1, tmp, Tagger$_get_quiet_$ref_s522ri_0(), null));
|
|
1664
|
+
}
|
|
1665
|
+
function Tagger$lambda($this$context) {
|
|
1666
|
+
var tmp = $this$context;
|
|
1667
|
+
tmp.w1c_1 = Tagger$lambda$lambda;
|
|
1668
|
+
return Unit_instance;
|
|
1669
|
+
}
|
|
1670
|
+
function Tagger$lambda$lambda(it) {
|
|
1671
|
+
return new MordantHelpFormatter(it, VOID, true);
|
|
1658
1672
|
}
|
|
1659
|
-
function Tagger$
|
|
1673
|
+
function Tagger$lambda_0($version, $this) {
|
|
1660
1674
|
return function ($this$eagerOption) {
|
|
1661
1675
|
var it = $version;
|
|
1662
|
-
var tmp$ret$0 = $this.
|
|
1676
|
+
var tmp$ret$0 = $this.h19_1 + ' version ' + it;
|
|
1663
1677
|
throw new PrintMessage(tmp$ret$0);
|
|
1664
1678
|
};
|
|
1665
1679
|
}
|
|
@@ -1675,30 +1689,31 @@
|
|
|
1675
1689
|
}
|
|
1676
1690
|
function Tagger() {
|
|
1677
1691
|
CliktCommand.call(this);
|
|
1692
|
+
context(this, Tagger$lambda);
|
|
1678
1693
|
// Inline function 'com.github.ajalt.clikt.parameters.options.versionOption' call
|
|
1679
|
-
var version = Versions_instance.
|
|
1694
|
+
var version = Versions_instance.i2o_1;
|
|
1680
1695
|
var help = 'Show the version and exit';
|
|
1681
1696
|
var names = setOf('--version');
|
|
1682
|
-
eagerOption(this, names, help, VOID, VOID, VOID, Tagger$
|
|
1697
|
+
eagerOption(this, names, help, VOID, VOID, VOID, Tagger$lambda_0(version, this));
|
|
1683
1698
|
var tmp = this;
|
|
1684
1699
|
var tmp_0 = flag(option(this, ['--quiet', '-q'], 'Suppress welcome message. Version goes to stdout, diagnostics to stderr (safe for: VERSION=$(tagger -q ...))'), [], false);
|
|
1685
1700
|
var tmp_1 = KProperty1;
|
|
1686
|
-
tmp.
|
|
1701
|
+
tmp.o2s_1 = tmp_0.m1n(this, getPropertyCallableRef('quiet', 1, tmp_1, Tagger$_get_quiet_$ref_s522ri(), null));
|
|
1687
1702
|
}
|
|
1688
|
-
protoOf(Tagger).
|
|
1703
|
+
protoOf(Tagger).g1b = function (context) {
|
|
1689
1704
|
return "Output:\n Text format writes version to stdout, diagnostics to stderr.\n Command substitution captures only stdout: VERSION=$(tagger -q calculate-version ...)\n\n -SNAPSHOT suffix indicates unmet conditions for release.\n Snapshot versions should not be used in releases or tags.\n After 'tagger tag', subsequent calculate-version returns the bare version.\n\n Snapshot reasons (on stderr) describe conditions that must be resolved:\n DIRTY - uncommitted changes in working directory\n AHEAD - local branch ahead of remote\n BEHIND - local branch behind remote\n NOT_RELEASE_BRANCH - not on configured release branch\n NO_NEW_VERSION - no new commits since last tag\n FORCED - --force-snapshot=true was used\n\nAutomation & AI Agents:\n Use --format=json for structured data with machine-readable fields:\n - 'snapshot' boolean indicating tagging readiness\n - 'snapshotReasons' array listing specific conditions\n - 'version' string for consistent parsing\n\n Example: tagger calculate-version --format=json\n\n See subcommand help for details: tagger calculate-version --help";
|
|
1690
1705
|
};
|
|
1691
|
-
protoOf(Tagger).
|
|
1692
|
-
if (!_get_quiet__c6dzoj(this) && this.
|
|
1693
|
-
this.
|
|
1706
|
+
protoOf(Tagger).b1e = function () {
|
|
1707
|
+
if (!_get_quiet__c6dzoj(this) && this.w19().j1d() == null) {
|
|
1708
|
+
this.o1c('Welcome to Tagger CLI.');
|
|
1694
1709
|
}
|
|
1695
1710
|
};
|
|
1696
1711
|
//region block: post-declaration
|
|
1697
|
-
protoOf($serializer).
|
|
1698
|
-
protoOf($serializer_0).
|
|
1699
|
-
protoOf($serializer_1).
|
|
1700
|
-
protoOf($serializer_2).
|
|
1701
|
-
protoOf($serializer_3).
|
|
1712
|
+
protoOf($serializer).fz = typeParametersSerializers;
|
|
1713
|
+
protoOf($serializer_0).fz = typeParametersSerializers;
|
|
1714
|
+
protoOf($serializer_1).fz = typeParametersSerializers;
|
|
1715
|
+
protoOf($serializer_2).fz = typeParametersSerializers;
|
|
1716
|
+
protoOf($serializer_3).fz = typeParametersSerializers;
|
|
1702
1717
|
//endregion
|
|
1703
1718
|
//region block: init
|
|
1704
1719
|
Versions_instance = new Versions();
|