git-semver-tagger 2.2.1 → 2.2.3
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.
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
var KProperty1 = kotlin_kotlin.$_$.xa;
|
|
12
12
|
var getPropertyCallableRef = kotlin_kotlin.$_$.c9;
|
|
13
13
|
var CliktError = kotlin_clikt_clikt.$_$.a;
|
|
14
|
+
var listOf = kotlin_kotlin.$_$.f6;
|
|
15
|
+
var emptyList = kotlin_kotlin.$_$.j5;
|
|
14
16
|
var endsWith = kotlin_kotlin.$_$.sb;
|
|
15
17
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.t4;
|
|
16
18
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.y;
|
|
@@ -35,8 +37,8 @@
|
|
|
35
37
|
var calculateNextVersion = kotlin_com_zegreatrob_tools_tagger_core.$_$.f;
|
|
36
38
|
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ze;
|
|
37
39
|
var Failure = kotlin_com_zegreatrob_tools_tagger_core.$_$.d;
|
|
40
|
+
var plus = kotlin_kotlin.$_$.q6;
|
|
38
41
|
var Success = kotlin_com_zegreatrob_tools_tagger_core.$_$.e;
|
|
39
|
-
var emptyList = kotlin_kotlin.$_$.j5;
|
|
40
42
|
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.e;
|
|
41
43
|
var Companion_instance_0 = kotlin_clikt_clikt.$_$.u;
|
|
42
44
|
var get_jsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i;
|
|
@@ -44,7 +46,6 @@
|
|
|
44
46
|
var IllegalArgumentException = kotlin_kotlin.$_$.xd;
|
|
45
47
|
var split = kotlin_kotlin.$_$.oc;
|
|
46
48
|
var Companion_instance_1 = kotlin_clikt_clikt.$_$.t;
|
|
47
|
-
var listOf = kotlin_kotlin.$_$.f6;
|
|
48
49
|
var Regex_init_$Create$_0 = kotlin_kotlin.$_$.m1;
|
|
49
50
|
var readFromFile = kotlin_com_zegreatrob_tools_cli_tools.$_$.b;
|
|
50
51
|
var Default_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
@@ -124,7 +125,7 @@
|
|
|
124
125
|
initMetadataForClass(Tagger, 'Tagger', Tagger, CliktCommand);
|
|
125
126
|
//endregion
|
|
126
127
|
function Versions() {
|
|
127
|
-
this.i2o_1 = '2.2.
|
|
128
|
+
this.i2o_1 = '2.2.3';
|
|
128
129
|
}
|
|
129
130
|
var Versions_instance;
|
|
130
131
|
function Versions_getInstance() {
|
|
@@ -208,25 +209,40 @@
|
|
|
208
209
|
var tmp = KProperty1;
|
|
209
210
|
return $this.f2p_1.c1n($this, getPropertyCallableRef('format', 1, tmp, CalculateVersion$_get_format_$ref_clhcb9_0(), null));
|
|
210
211
|
}
|
|
212
|
+
function _get_warningsAsErrors__7mpwfd($this) {
|
|
213
|
+
var tmp = KProperty1;
|
|
214
|
+
return $this.g2p_1.c1n($this, getPropertyCallableRef('warningsAsErrors', 1, tmp, CalculateVersion$_get_warningsAsErrors_$ref_ncq8fs_0(), null));
|
|
215
|
+
}
|
|
211
216
|
function _get_majorRegex__5j6ypp($this) {
|
|
212
217
|
var tmp = KProperty1;
|
|
213
|
-
return $this.
|
|
218
|
+
return $this.h2p_1.c1n($this, getPropertyCallableRef('majorRegex', 1, tmp, CalculateVersion$_get_majorRegex_$ref_erugf6_0(), null));
|
|
214
219
|
}
|
|
215
220
|
function _get_minorRegex__20z96h($this) {
|
|
216
221
|
var tmp = KProperty1;
|
|
217
|
-
return $this.
|
|
222
|
+
return $this.i2p_1.c1n($this, getPropertyCallableRef('minorRegex', 1, tmp, CalculateVersion$_get_minorRegex_$ref_u1fzja_0(), null));
|
|
218
223
|
}
|
|
219
224
|
function _get_patchRegex__mtlu2c($this) {
|
|
220
225
|
var tmp = KProperty1;
|
|
221
|
-
return $this.
|
|
226
|
+
return $this.j2p_1.c1n($this, getPropertyCallableRef('patchRegex', 1, tmp, CalculateVersion$_get_patchRegex_$ref_124637_0(), null));
|
|
222
227
|
}
|
|
223
228
|
function _get_noneRegex__1tdbgi($this) {
|
|
224
229
|
var tmp = KProperty1;
|
|
225
|
-
return $this.
|
|
230
|
+
return $this.k2p_1.c1n($this, getPropertyCallableRef('noneRegex', 1, tmp, CalculateVersion$_get_noneRegex_$ref_vcaxfl_0(), null));
|
|
226
231
|
}
|
|
227
232
|
function _get_versionRegex__7su5ss($this) {
|
|
228
233
|
var tmp = KProperty1;
|
|
229
|
-
return $this.
|
|
234
|
+
return $this.l2p_1.c1n($this, getPropertyCallableRef('versionRegex', 1, tmp, CalculateVersion$_get_versionRegex_$ref_f466m5_0(), null));
|
|
235
|
+
}
|
|
236
|
+
function disableDetachedDeprecationWarning($this) {
|
|
237
|
+
var tmp;
|
|
238
|
+
if (_get_disableDetachedDeprecated__wab4kc($this) == null) {
|
|
239
|
+
tmp = null;
|
|
240
|
+
} else {
|
|
241
|
+
// Inline function 'kotlin.let' call
|
|
242
|
+
tmp = listOf('\u26A0\uFE0F --disable-detached is deprecated and may be removed in the next major version. Use --allow-detached-head instead.');
|
|
243
|
+
}
|
|
244
|
+
var tmp1_elvis_lhs = tmp;
|
|
245
|
+
return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
230
246
|
}
|
|
231
247
|
function output($this, message, errorMessage, warnings) {
|
|
232
248
|
$this.o1c(message);
|
|
@@ -362,6 +378,16 @@
|
|
|
362
378
|
return _get_format__qlarck(p0);
|
|
363
379
|
};
|
|
364
380
|
}
|
|
381
|
+
function CalculateVersion$_get_warningsAsErrors_$ref_ncq8fs() {
|
|
382
|
+
return function (p0) {
|
|
383
|
+
return _get_warningsAsErrors__7mpwfd(p0);
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
function CalculateVersion$_get_warningsAsErrors_$ref_ncq8fs_0() {
|
|
387
|
+
return function (p0) {
|
|
388
|
+
return _get_warningsAsErrors__7mpwfd(p0);
|
|
389
|
+
};
|
|
390
|
+
}
|
|
365
391
|
function CalculateVersion$_get_majorRegex_$ref_erugf6() {
|
|
366
392
|
return function (p0) {
|
|
367
393
|
return _get_majorRegex__5j6ypp(p0);
|
|
@@ -426,6 +452,15 @@
|
|
|
426
452
|
return _get_versionRegex__7su5ss(p0);
|
|
427
453
|
};
|
|
428
454
|
}
|
|
455
|
+
function run$outputDeprecationWarnings(deprecationWarnings, this$0) {
|
|
456
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
457
|
+
var _iterator__ex2g4s = deprecationWarnings.r();
|
|
458
|
+
while (_iterator__ex2g4s.s()) {
|
|
459
|
+
var element = _iterator__ex2g4s.t();
|
|
460
|
+
this$0.o1c(element, VOID, true);
|
|
461
|
+
}
|
|
462
|
+
return Unit_instance;
|
|
463
|
+
}
|
|
429
464
|
function CalculateVersion() {
|
|
430
465
|
CliktCommand.call(this);
|
|
431
466
|
context(this, CalculateVersion$lambda);
|
|
@@ -481,38 +516,43 @@
|
|
|
481
516
|
var tmp_22 = KProperty1;
|
|
482
517
|
tmp_20.f2p_1 = tmp_21.m1n(this, getPropertyCallableRef('format', 1, tmp_22, CalculateVersion$_get_format_$ref_clhcb9(), null));
|
|
483
518
|
var tmp_23 = this;
|
|
484
|
-
var tmp_24 = default_0(option(this, []),
|
|
519
|
+
var tmp_24 = default_0(boolean(option(this, [])), false);
|
|
485
520
|
var tmp_25 = KProperty1;
|
|
486
|
-
tmp_23.g2p_1 = tmp_24.m1n(this, getPropertyCallableRef('
|
|
521
|
+
tmp_23.g2p_1 = tmp_24.m1n(this, getPropertyCallableRef('warningsAsErrors', 1, tmp_25, CalculateVersion$_get_warningsAsErrors_$ref_ncq8fs(), null));
|
|
487
522
|
var tmp_26 = this;
|
|
488
|
-
var tmp_27 = default_0(option(this, []), Defaults_getInstance().
|
|
523
|
+
var tmp_27 = default_0(option(this, []), Defaults_getInstance().oo_1.tb_1);
|
|
489
524
|
var tmp_28 = KProperty1;
|
|
490
|
-
tmp_26.h2p_1 = tmp_27.m1n(this, getPropertyCallableRef('
|
|
525
|
+
tmp_26.h2p_1 = tmp_27.m1n(this, getPropertyCallableRef('majorRegex', 1, tmp_28, CalculateVersion$_get_majorRegex_$ref_erugf6(), null));
|
|
491
526
|
var tmp_29 = this;
|
|
492
|
-
var tmp_30 = default_0(option(this, []), Defaults_getInstance().
|
|
527
|
+
var tmp_30 = default_0(option(this, []), Defaults_getInstance().no_1.tb_1);
|
|
493
528
|
var tmp_31 = KProperty1;
|
|
494
|
-
tmp_29.i2p_1 = tmp_30.m1n(this, getPropertyCallableRef('
|
|
529
|
+
tmp_29.i2p_1 = tmp_30.m1n(this, getPropertyCallableRef('minorRegex', 1, tmp_31, CalculateVersion$_get_minorRegex_$ref_u1fzja(), null));
|
|
495
530
|
var tmp_32 = this;
|
|
496
|
-
var tmp_33 = default_0(option(this, []), Defaults_getInstance().
|
|
531
|
+
var tmp_33 = default_0(option(this, []), Defaults_getInstance().mo_1.tb_1);
|
|
497
532
|
var tmp_34 = KProperty1;
|
|
498
|
-
tmp_32.j2p_1 = tmp_33.m1n(this, getPropertyCallableRef('
|
|
533
|
+
tmp_32.j2p_1 = tmp_33.m1n(this, getPropertyCallableRef('patchRegex', 1, tmp_34, CalculateVersion$_get_patchRegex_$ref_124637(), null));
|
|
499
534
|
var tmp_35 = this;
|
|
535
|
+
var tmp_36 = default_0(option(this, []), Defaults_getInstance().lo_1.tb_1);
|
|
536
|
+
var tmp_37 = KProperty1;
|
|
537
|
+
tmp_35.k2p_1 = tmp_36.m1n(this, getPropertyCallableRef('noneRegex', 1, tmp_37, CalculateVersion$_get_noneRegex_$ref_vcaxfl(), null));
|
|
538
|
+
var tmp_38 = this;
|
|
500
539
|
var tmp0 = option(this, []);
|
|
501
540
|
// Inline function 'com.github.ajalt.clikt.parameters.options.check' call
|
|
502
541
|
var message = "version regex must include groups named 'major', 'minor', 'patch', and 'none'.";
|
|
503
542
|
// Inline function 'com.github.ajalt.clikt.parameters.options.check' call
|
|
504
543
|
// Inline function 'com.github.ajalt.clikt.parameters.options.validate' call
|
|
505
|
-
var
|
|
506
|
-
var
|
|
507
|
-
var
|
|
508
|
-
var
|
|
509
|
-
var
|
|
510
|
-
|
|
544
|
+
var tmp_39 = tmp0.d1m();
|
|
545
|
+
var tmp_40 = tmp0.f1n();
|
|
546
|
+
var tmp_41 = tmp0.e1m();
|
|
547
|
+
var tmp_42 = tmp0.g1n(tmp_39, tmp_40, tmp_41, CalculateVersion$versionRegex$delegate$lambda(Companion_instance, message));
|
|
548
|
+
var tmp_43 = KProperty1;
|
|
549
|
+
tmp_38.l2p_1 = tmp_42.m1n(this, getPropertyCallableRef('versionRegex', 1, tmp_43, CalculateVersion$_get_versionRegex_$ref_f466m5(), null));
|
|
511
550
|
}
|
|
512
551
|
protoOf(CalculateVersion).g1b = function (context) {
|
|
513
552
|
return protoOf(CliktCommand).g1b.call(this, context) + '\n\n' + configFileHelpSuffix();
|
|
514
553
|
};
|
|
515
554
|
protoOf(CalculateVersion).b1e = function () {
|
|
555
|
+
var deprecationWarnings = disableDetachedDeprecationWarning(this);
|
|
516
556
|
var tmp = new TaggerCore(new GitAdapter(_get_workingDirectory__eyfbj(this)));
|
|
517
557
|
var tmp_0 = _get_implicitPatch__bjk4pa(this);
|
|
518
558
|
var tmp_1 = _get_allowDetachedHead__iyebhm(this);
|
|
@@ -522,24 +562,37 @@
|
|
|
522
562
|
// Inline function 'kotlin.run' call
|
|
523
563
|
var $this$run = calculateNextVersion(tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs);
|
|
524
564
|
if ($this$run instanceof Success) {
|
|
565
|
+
var allWarnings = plus($this$run.to_1, deprecationWarnings);
|
|
525
566
|
switch (_get_format__qlarck(this).y2_1) {
|
|
526
567
|
case 1:
|
|
527
|
-
outputJson(this, $this$run.ro_1, $this$run.so_1,
|
|
568
|
+
outputJson(this, $this$run.ro_1, $this$run.so_1, allWarnings);
|
|
528
569
|
break;
|
|
529
570
|
case 0:
|
|
530
|
-
output(this, $this$run.ro_1, $this$run.so_1,
|
|
571
|
+
output(this, $this$run.ro_1, $this$run.so_1, allWarnings);
|
|
531
572
|
break;
|
|
532
573
|
default:
|
|
533
574
|
noWhenBranchMatchedException();
|
|
534
575
|
break;
|
|
535
576
|
}
|
|
577
|
+
var tmp_4;
|
|
578
|
+
if (_get_warningsAsErrors__7mpwfd(this)) {
|
|
579
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
580
|
+
tmp_4 = !allWarnings.p();
|
|
581
|
+
} else {
|
|
582
|
+
tmp_4 = false;
|
|
583
|
+
}
|
|
584
|
+
if (tmp_4) {
|
|
585
|
+
throw new CliktError('', VOID, 1, false);
|
|
586
|
+
}
|
|
536
587
|
} else {
|
|
537
588
|
if ($this$run instanceof Failure) {
|
|
538
589
|
switch (_get_format__qlarck(this).y2_1) {
|
|
539
590
|
case 1:
|
|
591
|
+
run$outputDeprecationWarnings(deprecationWarnings, this);
|
|
540
592
|
this.o1c(errorResponse($this$run.ba(), 'CONFIGURATION_ERROR'));
|
|
541
593
|
throw new CliktError('', VOID, 1, false);
|
|
542
594
|
case 0:
|
|
595
|
+
run$outputDeprecationWarnings(deprecationWarnings, this);
|
|
543
596
|
throw new CliktError($this$run.ba());
|
|
544
597
|
default:
|
|
545
598
|
noWhenBranchMatchedException();
|
|
@@ -607,7 +660,7 @@
|
|
|
607
660
|
return pattern.lc($receiver, transform);
|
|
608
661
|
}
|
|
609
662
|
function readConfigFileAsJsonElement($this) {
|
|
610
|
-
var pwd = $this.
|
|
663
|
+
var pwd = $this.m2p_1('PWD');
|
|
611
664
|
var tmp0_elvis_lhs = readFromFile('' + pwd + '/.tagger');
|
|
612
665
|
var tmp;
|
|
613
666
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -642,7 +695,7 @@
|
|
|
642
695
|
return toString(this_0).toUpperCase();
|
|
643
696
|
}
|
|
644
697
|
function ConfigFileSource(envvarReader) {
|
|
645
|
-
this.
|
|
698
|
+
this.m2p_1 = envvarReader;
|
|
646
699
|
}
|
|
647
700
|
protoOf(ConfigFileSource).o1n = function (context, option) {
|
|
648
701
|
var tmp0_elvis_lhs = readConfigFileAsJsonElement(this);
|
|
@@ -657,11 +710,11 @@
|
|
|
657
710
|
};
|
|
658
711
|
function _get_file__d6iv67($this) {
|
|
659
712
|
var tmp = KProperty1;
|
|
660
|
-
return $this.
|
|
713
|
+
return $this.c2q_1.c1n($this, getPropertyCallableRef('file', 1, tmp, GenerateSettingsFile$_get_file_$ref_3dvoj2_0(), null));
|
|
661
714
|
}
|
|
662
715
|
function _get_merge__eb7eqv($this) {
|
|
663
716
|
var tmp = KProperty1;
|
|
664
|
-
return $this.
|
|
717
|
+
return $this.d2q_1.c1n($this, getPropertyCallableRef('merge', 1, tmp, GenerateSettingsFile$_get_merge_$ref_3aq3hk_0(), null));
|
|
665
718
|
}
|
|
666
719
|
function mergeJson($this, defaultConfig, originalData) {
|
|
667
720
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
@@ -719,11 +772,11 @@
|
|
|
719
772
|
var tmp = this;
|
|
720
773
|
var tmp_0 = optionalValue(option(this, [], "Save configuration to specified file. Use --file to save to .tagger in current directory. --file='' is also supported."), '.tagger');
|
|
721
774
|
var tmp_1 = KProperty1;
|
|
722
|
-
tmp.
|
|
775
|
+
tmp.c2q_1 = tmp_0.m1n(this, getPropertyCallableRef('file', 1, tmp_1, GenerateSettingsFile$_get_file_$ref_3dvoj2(), null));
|
|
723
776
|
var tmp_2 = this;
|
|
724
777
|
var tmp_3 = boolean(option(this, [], 'Merge with existing file, preserving current values and adding missing defaults.'));
|
|
725
778
|
var tmp_4 = KProperty1;
|
|
726
|
-
tmp_2.
|
|
779
|
+
tmp_2.d2q_1 = tmp_3.m1n(this, getPropertyCallableRef('merge', 1, tmp_4, GenerateSettingsFile$_get_merge_$ref_3aq3hk(), null));
|
|
727
780
|
}
|
|
728
781
|
protoOf(GenerateSettingsFile).g1b = function (context) {
|
|
729
782
|
return 'Generate a .tagger configuration file with default settings. Without --file, prints to stdout.';
|
|
@@ -802,20 +855,20 @@
|
|
|
802
855
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.VersionSuccessResponse', this, 2);
|
|
803
856
|
tmp0_serialDesc.cz('status', false);
|
|
804
857
|
tmp0_serialDesc.cz('data', false);
|
|
805
|
-
this.
|
|
858
|
+
this.e2q_1 = tmp0_serialDesc;
|
|
806
859
|
}
|
|
807
|
-
protoOf($serializer).
|
|
808
|
-
var tmp0_desc = this.
|
|
860
|
+
protoOf($serializer).f2q = function (encoder, value) {
|
|
861
|
+
var tmp0_desc = this.e2q_1;
|
|
809
862
|
var tmp1_output = encoder.tr(tmp0_desc);
|
|
810
|
-
tmp1_output.ht(tmp0_desc, 0, value.
|
|
811
|
-
tmp1_output.jt(tmp0_desc, 1, $serializer_getInstance_0(), value.
|
|
863
|
+
tmp1_output.ht(tmp0_desc, 0, value.g2q_1);
|
|
864
|
+
tmp1_output.jt(tmp0_desc, 1, $serializer_getInstance_0(), value.h2q_1);
|
|
812
865
|
tmp1_output.ur(tmp0_desc);
|
|
813
866
|
};
|
|
814
867
|
protoOf($serializer).xo = function (encoder, value) {
|
|
815
|
-
return this.
|
|
868
|
+
return this.f2q(encoder, value instanceof VersionSuccessResponse ? value : THROW_CCE());
|
|
816
869
|
};
|
|
817
870
|
protoOf($serializer).yo = function (decoder) {
|
|
818
|
-
var tmp0_desc = this.
|
|
871
|
+
var tmp0_desc = this.e2q_1;
|
|
819
872
|
var tmp1_flag = true;
|
|
820
873
|
var tmp2_index = 0;
|
|
821
874
|
var tmp3_bitMask0 = 0;
|
|
@@ -850,7 +903,7 @@
|
|
|
850
903
|
return VersionSuccessResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
851
904
|
};
|
|
852
905
|
protoOf($serializer).wo = function () {
|
|
853
|
-
return this.
|
|
906
|
+
return this.e2q_1;
|
|
854
907
|
};
|
|
855
908
|
protoOf($serializer).ez = function () {
|
|
856
909
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -866,25 +919,25 @@
|
|
|
866
919
|
}
|
|
867
920
|
function VersionSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, $this) {
|
|
868
921
|
if (!(3 === (3 & seen0))) {
|
|
869
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
922
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().e2q_1);
|
|
870
923
|
}
|
|
871
|
-
$this.
|
|
872
|
-
$this.
|
|
924
|
+
$this.g2q_1 = status;
|
|
925
|
+
$this.h2q_1 = data;
|
|
873
926
|
return $this;
|
|
874
927
|
}
|
|
875
928
|
function VersionSuccessResponse_init_$Create$(seen0, status, data, serializationConstructorMarker) {
|
|
876
929
|
return VersionSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, objectCreate(protoOf(VersionSuccessResponse)));
|
|
877
930
|
}
|
|
878
931
|
function VersionSuccessResponse(status, data) {
|
|
879
|
-
this.
|
|
880
|
-
this.
|
|
932
|
+
this.g2q_1 = status;
|
|
933
|
+
this.h2q_1 = data;
|
|
881
934
|
}
|
|
882
935
|
protoOf(VersionSuccessResponse).toString = function () {
|
|
883
|
-
return 'VersionSuccessResponse(status=' + this.
|
|
936
|
+
return 'VersionSuccessResponse(status=' + this.g2q_1 + ', data=' + this.h2q_1.toString() + ')';
|
|
884
937
|
};
|
|
885
938
|
protoOf(VersionSuccessResponse).hashCode = function () {
|
|
886
|
-
var result = getStringHashCode(this.
|
|
887
|
-
result = imul(result, 31) + this.
|
|
939
|
+
var result = getStringHashCode(this.g2q_1);
|
|
940
|
+
result = imul(result, 31) + this.h2q_1.hashCode() | 0;
|
|
888
941
|
return result;
|
|
889
942
|
};
|
|
890
943
|
protoOf(VersionSuccessResponse).equals = function (other) {
|
|
@@ -892,9 +945,9 @@
|
|
|
892
945
|
return true;
|
|
893
946
|
if (!(other instanceof VersionSuccessResponse))
|
|
894
947
|
return false;
|
|
895
|
-
if (!(this.
|
|
948
|
+
if (!(this.g2q_1 === other.g2q_1))
|
|
896
949
|
return false;
|
|
897
|
-
if (!this.
|
|
950
|
+
if (!this.h2q_1.equals(other.h2q_1))
|
|
898
951
|
return false;
|
|
899
952
|
return true;
|
|
900
953
|
};
|
|
@@ -913,7 +966,7 @@
|
|
|
913
966
|
// Inline function 'kotlin.arrayOf' call
|
|
914
967
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
915
968
|
// Inline function 'kotlin.js.asDynamic' call
|
|
916
|
-
tmp.
|
|
969
|
+
tmp.i2q_1 = [null, null, tmp_1, lazy(tmp_2, VersionData$Companion$$childSerializers$_anonymous__gd9ivc_0)];
|
|
917
970
|
}
|
|
918
971
|
var Companion_instance_3;
|
|
919
972
|
function Companion_getInstance_0() {
|
|
@@ -928,27 +981,27 @@
|
|
|
928
981
|
tmp0_serialDesc.cz('snapshot', false);
|
|
929
982
|
tmp0_serialDesc.cz('snapshotReasons', true);
|
|
930
983
|
tmp0_serialDesc.cz('warnings', true);
|
|
931
|
-
this.
|
|
984
|
+
this.j2q_1 = tmp0_serialDesc;
|
|
932
985
|
}
|
|
933
|
-
protoOf($serializer_0).
|
|
934
|
-
var tmp0_desc = this.
|
|
986
|
+
protoOf($serializer_0).k2q = function (encoder, value) {
|
|
987
|
+
var tmp0_desc = this.j2q_1;
|
|
935
988
|
var tmp1_output = encoder.tr(tmp0_desc);
|
|
936
|
-
var tmp2_cached = Companion_getInstance_0().
|
|
937
|
-
tmp1_output.ht(tmp0_desc, 0, value.
|
|
938
|
-
tmp1_output.zs(tmp0_desc, 1, value.
|
|
939
|
-
if (tmp1_output.pt(tmp0_desc, 2) ? true : !equals(value.
|
|
940
|
-
tmp1_output.jt(tmp0_desc, 2, tmp2_cached[2].m1(), value.
|
|
989
|
+
var tmp2_cached = Companion_getInstance_0().i2q_1;
|
|
990
|
+
tmp1_output.ht(tmp0_desc, 0, value.l2q_1);
|
|
991
|
+
tmp1_output.zs(tmp0_desc, 1, value.m2q_1);
|
|
992
|
+
if (tmp1_output.pt(tmp0_desc, 2) ? true : !equals(value.n2q_1, emptyList())) {
|
|
993
|
+
tmp1_output.jt(tmp0_desc, 2, tmp2_cached[2].m1(), value.n2q_1);
|
|
941
994
|
}
|
|
942
|
-
if (tmp1_output.pt(tmp0_desc, 3) ? true : !equals(value.
|
|
943
|
-
tmp1_output.jt(tmp0_desc, 3, tmp2_cached[3].m1(), value.
|
|
995
|
+
if (tmp1_output.pt(tmp0_desc, 3) ? true : !equals(value.o2q_1, emptyList())) {
|
|
996
|
+
tmp1_output.jt(tmp0_desc, 3, tmp2_cached[3].m1(), value.o2q_1);
|
|
944
997
|
}
|
|
945
998
|
tmp1_output.ur(tmp0_desc);
|
|
946
999
|
};
|
|
947
1000
|
protoOf($serializer_0).xo = function (encoder, value) {
|
|
948
|
-
return this.
|
|
1001
|
+
return this.k2q(encoder, value instanceof VersionData ? value : THROW_CCE());
|
|
949
1002
|
};
|
|
950
1003
|
protoOf($serializer_0).yo = function (decoder) {
|
|
951
|
-
var tmp0_desc = this.
|
|
1004
|
+
var tmp0_desc = this.j2q_1;
|
|
952
1005
|
var tmp1_flag = true;
|
|
953
1006
|
var tmp2_index = 0;
|
|
954
1007
|
var tmp3_bitMask0 = 0;
|
|
@@ -957,7 +1010,7 @@
|
|
|
957
1010
|
var tmp6_local2 = null;
|
|
958
1011
|
var tmp7_local3 = null;
|
|
959
1012
|
var tmp8_input = decoder.tr(tmp0_desc);
|
|
960
|
-
var tmp9_cached = Companion_getInstance_0().
|
|
1013
|
+
var tmp9_cached = Companion_getInstance_0().i2q_1;
|
|
961
1014
|
if (tmp8_input.js()) {
|
|
962
1015
|
tmp4_local0 = tmp8_input.ds(tmp0_desc, 0);
|
|
963
1016
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -998,10 +1051,10 @@
|
|
|
998
1051
|
return VersionData_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
999
1052
|
};
|
|
1000
1053
|
protoOf($serializer_0).wo = function () {
|
|
1001
|
-
return this.
|
|
1054
|
+
return this.j2q_1;
|
|
1002
1055
|
};
|
|
1003
1056
|
protoOf($serializer_0).ez = function () {
|
|
1004
|
-
var tmp0_cached = Companion_getInstance_0().
|
|
1057
|
+
var tmp0_cached = Companion_getInstance_0().i2q_1;
|
|
1005
1058
|
// Inline function 'kotlin.arrayOf' call
|
|
1006
1059
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1007
1060
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1015,18 +1068,18 @@
|
|
|
1015
1068
|
}
|
|
1016
1069
|
function VersionData_init_$Init$(seen0, version, snapshot, snapshotReasons, warnings, serializationConstructorMarker, $this) {
|
|
1017
1070
|
if (!(3 === (3 & seen0))) {
|
|
1018
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
1071
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().j2q_1);
|
|
1019
1072
|
}
|
|
1020
|
-
$this.
|
|
1021
|
-
$this.
|
|
1073
|
+
$this.l2q_1 = version;
|
|
1074
|
+
$this.m2q_1 = snapshot;
|
|
1022
1075
|
if (0 === (seen0 & 4))
|
|
1023
|
-
$this.
|
|
1076
|
+
$this.n2q_1 = emptyList();
|
|
1024
1077
|
else
|
|
1025
|
-
$this.
|
|
1078
|
+
$this.n2q_1 = snapshotReasons;
|
|
1026
1079
|
if (0 === (seen0 & 8))
|
|
1027
|
-
$this.
|
|
1080
|
+
$this.o2q_1 = emptyList();
|
|
1028
1081
|
else
|
|
1029
|
-
$this.
|
|
1082
|
+
$this.o2q_1 = warnings;
|
|
1030
1083
|
return $this;
|
|
1031
1084
|
}
|
|
1032
1085
|
function VersionData_init_$Create$(seen0, version, snapshot, snapshotReasons, warnings, serializationConstructorMarker) {
|
|
@@ -1036,19 +1089,19 @@
|
|
|
1036
1089
|
Companion_getInstance_0();
|
|
1037
1090
|
snapshotReasons = snapshotReasons === VOID ? emptyList() : snapshotReasons;
|
|
1038
1091
|
warnings = warnings === VOID ? emptyList() : warnings;
|
|
1039
|
-
this.
|
|
1040
|
-
this.
|
|
1041
|
-
this.
|
|
1042
|
-
this.
|
|
1092
|
+
this.l2q_1 = version;
|
|
1093
|
+
this.m2q_1 = snapshot;
|
|
1094
|
+
this.n2q_1 = snapshotReasons;
|
|
1095
|
+
this.o2q_1 = warnings;
|
|
1043
1096
|
}
|
|
1044
1097
|
protoOf(VersionData).toString = function () {
|
|
1045
|
-
return 'VersionData(version=' + this.
|
|
1098
|
+
return 'VersionData(version=' + this.l2q_1 + ', snapshot=' + this.m2q_1 + ', snapshotReasons=' + toString_0(this.n2q_1) + ', warnings=' + toString_0(this.o2q_1) + ')';
|
|
1046
1099
|
};
|
|
1047
1100
|
protoOf(VersionData).hashCode = function () {
|
|
1048
|
-
var result = getStringHashCode(this.
|
|
1049
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
1050
|
-
result = imul(result, 31) + hashCode(this.m2q_1) | 0;
|
|
1101
|
+
var result = getStringHashCode(this.l2q_1);
|
|
1102
|
+
result = imul(result, 31) + getBooleanHashCode(this.m2q_1) | 0;
|
|
1051
1103
|
result = imul(result, 31) + hashCode(this.n2q_1) | 0;
|
|
1104
|
+
result = imul(result, 31) + hashCode(this.o2q_1) | 0;
|
|
1052
1105
|
return result;
|
|
1053
1106
|
};
|
|
1054
1107
|
protoOf(VersionData).equals = function (other) {
|
|
@@ -1056,14 +1109,14 @@
|
|
|
1056
1109
|
return true;
|
|
1057
1110
|
if (!(other instanceof VersionData))
|
|
1058
1111
|
return false;
|
|
1059
|
-
if (!(this.k2q_1 === other.k2q_1))
|
|
1060
|
-
return false;
|
|
1061
1112
|
if (!(this.l2q_1 === other.l2q_1))
|
|
1062
1113
|
return false;
|
|
1063
|
-
if (!
|
|
1114
|
+
if (!(this.m2q_1 === other.m2q_1))
|
|
1064
1115
|
return false;
|
|
1065
1116
|
if (!equals(this.n2q_1, other.n2q_1))
|
|
1066
1117
|
return false;
|
|
1118
|
+
if (!equals(this.o2q_1, other.o2q_1))
|
|
1119
|
+
return false;
|
|
1067
1120
|
return true;
|
|
1068
1121
|
};
|
|
1069
1122
|
function Companion_1() {
|
|
@@ -1081,21 +1134,21 @@
|
|
|
1081
1134
|
tmp0_serialDesc.cz('status', false);
|
|
1082
1135
|
tmp0_serialDesc.cz('error', false);
|
|
1083
1136
|
tmp0_serialDesc.cz('code', false);
|
|
1084
|
-
this.
|
|
1137
|
+
this.p2q_1 = tmp0_serialDesc;
|
|
1085
1138
|
}
|
|
1086
|
-
protoOf($serializer_1).
|
|
1087
|
-
var tmp0_desc = this.
|
|
1139
|
+
protoOf($serializer_1).q2q = function (encoder, value) {
|
|
1140
|
+
var tmp0_desc = this.p2q_1;
|
|
1088
1141
|
var tmp1_output = encoder.tr(tmp0_desc);
|
|
1089
|
-
tmp1_output.ht(tmp0_desc, 0, value.
|
|
1090
|
-
tmp1_output.ht(tmp0_desc, 1, value.
|
|
1091
|
-
tmp1_output.ht(tmp0_desc, 2, value.
|
|
1142
|
+
tmp1_output.ht(tmp0_desc, 0, value.r2q_1);
|
|
1143
|
+
tmp1_output.ht(tmp0_desc, 1, value.s2q_1);
|
|
1144
|
+
tmp1_output.ht(tmp0_desc, 2, value.t2q_1);
|
|
1092
1145
|
tmp1_output.ur(tmp0_desc);
|
|
1093
1146
|
};
|
|
1094
1147
|
protoOf($serializer_1).xo = function (encoder, value) {
|
|
1095
|
-
return this.
|
|
1148
|
+
return this.q2q(encoder, value instanceof ErrorResponse ? value : THROW_CCE());
|
|
1096
1149
|
};
|
|
1097
1150
|
protoOf($serializer_1).yo = function (decoder) {
|
|
1098
|
-
var tmp0_desc = this.
|
|
1151
|
+
var tmp0_desc = this.p2q_1;
|
|
1099
1152
|
var tmp1_flag = true;
|
|
1100
1153
|
var tmp2_index = 0;
|
|
1101
1154
|
var tmp3_bitMask0 = 0;
|
|
@@ -1137,7 +1190,7 @@
|
|
|
1137
1190
|
return ErrorResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1138
1191
|
};
|
|
1139
1192
|
protoOf($serializer_1).wo = function () {
|
|
1140
|
-
return this.
|
|
1193
|
+
return this.p2q_1;
|
|
1141
1194
|
};
|
|
1142
1195
|
protoOf($serializer_1).ez = function () {
|
|
1143
1196
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1153,28 +1206,28 @@
|
|
|
1153
1206
|
}
|
|
1154
1207
|
function ErrorResponse_init_$Init$(seen0, status, error, code, serializationConstructorMarker, $this) {
|
|
1155
1208
|
if (!(7 === (7 & seen0))) {
|
|
1156
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_1().
|
|
1209
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_1().p2q_1);
|
|
1157
1210
|
}
|
|
1158
|
-
$this.
|
|
1159
|
-
$this.
|
|
1160
|
-
$this.
|
|
1211
|
+
$this.r2q_1 = status;
|
|
1212
|
+
$this.s2q_1 = error;
|
|
1213
|
+
$this.t2q_1 = code;
|
|
1161
1214
|
return $this;
|
|
1162
1215
|
}
|
|
1163
1216
|
function ErrorResponse_init_$Create$(seen0, status, error, code, serializationConstructorMarker) {
|
|
1164
1217
|
return ErrorResponse_init_$Init$(seen0, status, error, code, serializationConstructorMarker, objectCreate(protoOf(ErrorResponse)));
|
|
1165
1218
|
}
|
|
1166
1219
|
function ErrorResponse(status, error, code) {
|
|
1167
|
-
this.
|
|
1168
|
-
this.
|
|
1169
|
-
this.
|
|
1220
|
+
this.r2q_1 = status;
|
|
1221
|
+
this.s2q_1 = error;
|
|
1222
|
+
this.t2q_1 = code;
|
|
1170
1223
|
}
|
|
1171
1224
|
protoOf(ErrorResponse).toString = function () {
|
|
1172
|
-
return 'ErrorResponse(status=' + this.
|
|
1225
|
+
return 'ErrorResponse(status=' + this.r2q_1 + ', error=' + this.s2q_1 + ', code=' + this.t2q_1 + ')';
|
|
1173
1226
|
};
|
|
1174
1227
|
protoOf(ErrorResponse).hashCode = function () {
|
|
1175
|
-
var result = getStringHashCode(this.
|
|
1176
|
-
result = imul(result, 31) + getStringHashCode(this.r2q_1) | 0;
|
|
1228
|
+
var result = getStringHashCode(this.r2q_1);
|
|
1177
1229
|
result = imul(result, 31) + getStringHashCode(this.s2q_1) | 0;
|
|
1230
|
+
result = imul(result, 31) + getStringHashCode(this.t2q_1) | 0;
|
|
1178
1231
|
return result;
|
|
1179
1232
|
};
|
|
1180
1233
|
protoOf(ErrorResponse).equals = function (other) {
|
|
@@ -1182,12 +1235,12 @@
|
|
|
1182
1235
|
return true;
|
|
1183
1236
|
if (!(other instanceof ErrorResponse))
|
|
1184
1237
|
return false;
|
|
1185
|
-
if (!(this.q2q_1 === other.q2q_1))
|
|
1186
|
-
return false;
|
|
1187
1238
|
if (!(this.r2q_1 === other.r2q_1))
|
|
1188
1239
|
return false;
|
|
1189
1240
|
if (!(this.s2q_1 === other.s2q_1))
|
|
1190
1241
|
return false;
|
|
1242
|
+
if (!(this.t2q_1 === other.t2q_1))
|
|
1243
|
+
return false;
|
|
1191
1244
|
return true;
|
|
1192
1245
|
};
|
|
1193
1246
|
function Companion_2() {
|
|
@@ -1204,20 +1257,20 @@
|
|
|
1204
1257
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.TagSuccessResponse', this, 2);
|
|
1205
1258
|
tmp0_serialDesc.cz('status', false);
|
|
1206
1259
|
tmp0_serialDesc.cz('data', false);
|
|
1207
|
-
this.
|
|
1260
|
+
this.u2q_1 = tmp0_serialDesc;
|
|
1208
1261
|
}
|
|
1209
|
-
protoOf($serializer_2).
|
|
1210
|
-
var tmp0_desc = this.
|
|
1262
|
+
protoOf($serializer_2).v2q = function (encoder, value) {
|
|
1263
|
+
var tmp0_desc = this.u2q_1;
|
|
1211
1264
|
var tmp1_output = encoder.tr(tmp0_desc);
|
|
1212
|
-
tmp1_output.ht(tmp0_desc, 0, value.
|
|
1213
|
-
tmp1_output.jt(tmp0_desc, 1, $serializer_getInstance_3(), value.
|
|
1265
|
+
tmp1_output.ht(tmp0_desc, 0, value.w2q_1);
|
|
1266
|
+
tmp1_output.jt(tmp0_desc, 1, $serializer_getInstance_3(), value.x2q_1);
|
|
1214
1267
|
tmp1_output.ur(tmp0_desc);
|
|
1215
1268
|
};
|
|
1216
1269
|
protoOf($serializer_2).xo = function (encoder, value) {
|
|
1217
|
-
return this.
|
|
1270
|
+
return this.v2q(encoder, value instanceof TagSuccessResponse ? value : THROW_CCE());
|
|
1218
1271
|
};
|
|
1219
1272
|
protoOf($serializer_2).yo = function (decoder) {
|
|
1220
|
-
var tmp0_desc = this.
|
|
1273
|
+
var tmp0_desc = this.u2q_1;
|
|
1221
1274
|
var tmp1_flag = true;
|
|
1222
1275
|
var tmp2_index = 0;
|
|
1223
1276
|
var tmp3_bitMask0 = 0;
|
|
@@ -1252,7 +1305,7 @@
|
|
|
1252
1305
|
return TagSuccessResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1253
1306
|
};
|
|
1254
1307
|
protoOf($serializer_2).wo = function () {
|
|
1255
|
-
return this.
|
|
1308
|
+
return this.u2q_1;
|
|
1256
1309
|
};
|
|
1257
1310
|
protoOf($serializer_2).ez = function () {
|
|
1258
1311
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1268,25 +1321,25 @@
|
|
|
1268
1321
|
}
|
|
1269
1322
|
function TagSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, $this) {
|
|
1270
1323
|
if (!(3 === (3 & seen0))) {
|
|
1271
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1324
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().u2q_1);
|
|
1272
1325
|
}
|
|
1273
|
-
$this.
|
|
1274
|
-
$this.
|
|
1326
|
+
$this.w2q_1 = status;
|
|
1327
|
+
$this.x2q_1 = data;
|
|
1275
1328
|
return $this;
|
|
1276
1329
|
}
|
|
1277
1330
|
function TagSuccessResponse_init_$Create$(seen0, status, data, serializationConstructorMarker) {
|
|
1278
1331
|
return TagSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, objectCreate(protoOf(TagSuccessResponse)));
|
|
1279
1332
|
}
|
|
1280
1333
|
function TagSuccessResponse(status, data) {
|
|
1281
|
-
this.
|
|
1282
|
-
this.
|
|
1334
|
+
this.w2q_1 = status;
|
|
1335
|
+
this.x2q_1 = data;
|
|
1283
1336
|
}
|
|
1284
1337
|
protoOf(TagSuccessResponse).toString = function () {
|
|
1285
|
-
return 'TagSuccessResponse(status=' + this.
|
|
1338
|
+
return 'TagSuccessResponse(status=' + this.w2q_1 + ', data=' + this.x2q_1.toString() + ')';
|
|
1286
1339
|
};
|
|
1287
1340
|
protoOf(TagSuccessResponse).hashCode = function () {
|
|
1288
|
-
var result = getStringHashCode(this.
|
|
1289
|
-
result = imul(result, 31) + this.
|
|
1341
|
+
var result = getStringHashCode(this.w2q_1);
|
|
1342
|
+
result = imul(result, 31) + this.x2q_1.hashCode() | 0;
|
|
1290
1343
|
return result;
|
|
1291
1344
|
};
|
|
1292
1345
|
protoOf(TagSuccessResponse).equals = function (other) {
|
|
@@ -1294,9 +1347,9 @@
|
|
|
1294
1347
|
return true;
|
|
1295
1348
|
if (!(other instanceof TagSuccessResponse))
|
|
1296
1349
|
return false;
|
|
1297
|
-
if (!(this.
|
|
1350
|
+
if (!(this.w2q_1 === other.w2q_1))
|
|
1298
1351
|
return false;
|
|
1299
|
-
if (!this.
|
|
1352
|
+
if (!this.x2q_1.equals(other.x2q_1))
|
|
1300
1353
|
return false;
|
|
1301
1354
|
return true;
|
|
1302
1355
|
};
|
|
@@ -1310,19 +1363,19 @@
|
|
|
1310
1363
|
$serializer_instance_3 = this;
|
|
1311
1364
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.TagData', this, 1);
|
|
1312
1365
|
tmp0_serialDesc.cz('tag', false);
|
|
1313
|
-
this.
|
|
1366
|
+
this.y2q_1 = tmp0_serialDesc;
|
|
1314
1367
|
}
|
|
1315
|
-
protoOf($serializer_3).
|
|
1316
|
-
var tmp0_desc = this.
|
|
1368
|
+
protoOf($serializer_3).z2q = function (encoder, value) {
|
|
1369
|
+
var tmp0_desc = this.y2q_1;
|
|
1317
1370
|
var tmp1_output = encoder.tr(tmp0_desc);
|
|
1318
|
-
tmp1_output.ht(tmp0_desc, 0, value.
|
|
1371
|
+
tmp1_output.ht(tmp0_desc, 0, value.a2r_1);
|
|
1319
1372
|
tmp1_output.ur(tmp0_desc);
|
|
1320
1373
|
};
|
|
1321
1374
|
protoOf($serializer_3).xo = function (encoder, value) {
|
|
1322
|
-
return this.
|
|
1375
|
+
return this.z2q(encoder, value instanceof TagData ? value : THROW_CCE());
|
|
1323
1376
|
};
|
|
1324
1377
|
protoOf($serializer_3).yo = function (decoder) {
|
|
1325
|
-
var tmp0_desc = this.
|
|
1378
|
+
var tmp0_desc = this.y2q_1;
|
|
1326
1379
|
var tmp1_flag = true;
|
|
1327
1380
|
var tmp2_index = 0;
|
|
1328
1381
|
var tmp3_bitMask0 = 0;
|
|
@@ -1350,7 +1403,7 @@
|
|
|
1350
1403
|
return TagData_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
1351
1404
|
};
|
|
1352
1405
|
protoOf($serializer_3).wo = function () {
|
|
1353
|
-
return this.
|
|
1406
|
+
return this.y2q_1;
|
|
1354
1407
|
};
|
|
1355
1408
|
protoOf($serializer_3).ez = function () {
|
|
1356
1409
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1366,29 +1419,29 @@
|
|
|
1366
1419
|
}
|
|
1367
1420
|
function TagData_init_$Init$(seen0, tag, serializationConstructorMarker, $this) {
|
|
1368
1421
|
if (!(1 === (1 & seen0))) {
|
|
1369
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_3().
|
|
1422
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_3().y2q_1);
|
|
1370
1423
|
}
|
|
1371
|
-
$this.
|
|
1424
|
+
$this.a2r_1 = tag;
|
|
1372
1425
|
return $this;
|
|
1373
1426
|
}
|
|
1374
1427
|
function TagData_init_$Create$(seen0, tag, serializationConstructorMarker) {
|
|
1375
1428
|
return TagData_init_$Init$(seen0, tag, serializationConstructorMarker, objectCreate(protoOf(TagData)));
|
|
1376
1429
|
}
|
|
1377
1430
|
function TagData(tag) {
|
|
1378
|
-
this.
|
|
1431
|
+
this.a2r_1 = tag;
|
|
1379
1432
|
}
|
|
1380
1433
|
protoOf(TagData).toString = function () {
|
|
1381
|
-
return 'TagData(tag=' + this.
|
|
1434
|
+
return 'TagData(tag=' + this.a2r_1 + ')';
|
|
1382
1435
|
};
|
|
1383
1436
|
protoOf(TagData).hashCode = function () {
|
|
1384
|
-
return getStringHashCode(this.
|
|
1437
|
+
return getStringHashCode(this.a2r_1);
|
|
1385
1438
|
};
|
|
1386
1439
|
protoOf(TagData).equals = function (other) {
|
|
1387
1440
|
if (this === other)
|
|
1388
1441
|
return true;
|
|
1389
1442
|
if (!(other instanceof TagData))
|
|
1390
1443
|
return false;
|
|
1391
|
-
if (!(this.
|
|
1444
|
+
if (!(this.a2r_1 === other.a2r_1))
|
|
1392
1445
|
return false;
|
|
1393
1446
|
return true;
|
|
1394
1447
|
};
|
|
@@ -1415,11 +1468,11 @@
|
|
|
1415
1468
|
}
|
|
1416
1469
|
function _get_gitRepoArgument__zxde8_0($this) {
|
|
1417
1470
|
var tmp = KProperty1;
|
|
1418
|
-
return $this.
|
|
1471
|
+
return $this.q2r_1.c1n($this, getPropertyCallableRef('gitRepoArgument', 1, tmp, Tag$_get_gitRepoArgument_$ref_dketaj_0(), null));
|
|
1419
1472
|
}
|
|
1420
1473
|
function _get_gitRepoOption__rk7ta0_0($this) {
|
|
1421
1474
|
var tmp = KProperty1;
|
|
1422
|
-
return $this.
|
|
1475
|
+
return $this.r2r_1.c1n($this, getPropertyCallableRef('gitRepoOption', 1, tmp, Tag$_get_gitRepoOption_$ref_10iywz_0(), null));
|
|
1423
1476
|
}
|
|
1424
1477
|
function _get_workingDirectory__eyfbj_0($this) {
|
|
1425
1478
|
var tmp0_elvis_lhs = _get_gitRepoArgument__zxde8_0($this);
|
|
@@ -1434,35 +1487,35 @@
|
|
|
1434
1487
|
}
|
|
1435
1488
|
function _get_releaseBranch__pqrgbs_0($this) {
|
|
1436
1489
|
var tmp = KProperty1;
|
|
1437
|
-
return $this.
|
|
1490
|
+
return $this.s2r_1.c1n($this, getPropertyCallableRef('releaseBranch', 1, tmp, Tag$_get_releaseBranch_$ref_rq8rmb_0(), null));
|
|
1438
1491
|
}
|
|
1439
1492
|
function _get_version__2bx7w9($this) {
|
|
1440
1493
|
var tmp = KProperty1;
|
|
1441
|
-
return $this.
|
|
1494
|
+
return $this.t2r_1.c1n($this, getPropertyCallableRef('version', 1, tmp, Tag$_get_version_$ref_p7wb9e_0(), null));
|
|
1442
1495
|
}
|
|
1443
1496
|
function _get_userName__tupjmd($this) {
|
|
1444
1497
|
var tmp = KProperty1;
|
|
1445
|
-
return $this.
|
|
1498
|
+
return $this.u2r_1.c1n($this, getPropertyCallableRef('userName', 1, tmp, Tag$_get_userName_$ref_kslo5u_0(), null));
|
|
1446
1499
|
}
|
|
1447
1500
|
function _get_userEmail__21hfkw($this) {
|
|
1448
1501
|
var tmp = KProperty1;
|
|
1449
|
-
return $this.
|
|
1502
|
+
return $this.v2r_1.c1n($this, getPropertyCallableRef('userEmail', 1, tmp, Tag$_get_userEmail_$ref_vl09cr_0(), null));
|
|
1450
1503
|
}
|
|
1451
1504
|
function _get_allowDetachedHead__iyebhm_0($this) {
|
|
1452
1505
|
var tmp = KProperty1;
|
|
1453
|
-
return $this.
|
|
1506
|
+
return $this.w2r_1.c1n($this, getPropertyCallableRef('allowDetachedHead', 1, tmp, Tag$_get_allowDetachedHead_$ref_qujqxn_0(), null));
|
|
1454
1507
|
}
|
|
1455
1508
|
function _get_dryRun__18z7px($this) {
|
|
1456
1509
|
var tmp = KProperty1;
|
|
1457
|
-
return $this.
|
|
1510
|
+
return $this.x2r_1.c1n($this, getPropertyCallableRef('dryRun', 1, tmp, Tag$_get_dryRun_$ref_agy9vo_0(), null));
|
|
1458
1511
|
}
|
|
1459
|
-
function
|
|
1512
|
+
function _get_warningsAsErrors__7mpwfd_0($this) {
|
|
1460
1513
|
var tmp = KProperty1;
|
|
1461
|
-
return $this.
|
|
1514
|
+
return $this.y2r_1.c1n($this, getPropertyCallableRef('warningsAsErrors', 1, tmp, Tag$_get_warningsAsErrors_$ref_gj8a6o_0(), null));
|
|
1462
1515
|
}
|
|
1463
1516
|
function _get_format__qlarck_0($this) {
|
|
1464
1517
|
var tmp = KProperty1;
|
|
1465
|
-
return $this.
|
|
1518
|
+
return $this.z2r_1.c1n($this, getPropertyCallableRef('format', 1, tmp, Tag$_get_format_$ref_i96vgt_0(), null));
|
|
1466
1519
|
}
|
|
1467
1520
|
function Tag$lambda($this$context) {
|
|
1468
1521
|
$this$context.i1d([new ConfigFileSource($this$context.e1d_1)]);
|
|
@@ -1550,12 +1603,12 @@
|
|
|
1550
1603
|
}
|
|
1551
1604
|
function Tag$_get_warningsAsErrors_$ref_gj8a6o() {
|
|
1552
1605
|
return function (p0) {
|
|
1553
|
-
return
|
|
1606
|
+
return _get_warningsAsErrors__7mpwfd_0(p0);
|
|
1554
1607
|
};
|
|
1555
1608
|
}
|
|
1556
1609
|
function Tag$_get_warningsAsErrors_$ref_gj8a6o_0() {
|
|
1557
1610
|
return function (p0) {
|
|
1558
|
-
return
|
|
1611
|
+
return _get_warningsAsErrors__7mpwfd_0(p0);
|
|
1559
1612
|
};
|
|
1560
1613
|
}
|
|
1561
1614
|
function Tag$_get_format_$ref_i96vgt() {
|
|
@@ -1574,39 +1627,39 @@
|
|
|
1574
1627
|
var tmp = this;
|
|
1575
1628
|
var tmp_0 = optional(argument(this, 'git-repo'));
|
|
1576
1629
|
var tmp_1 = KProperty1;
|
|
1577
|
-
tmp.
|
|
1630
|
+
tmp.q2r_1 = tmp_0.i1m(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, Tag$_get_gitRepoArgument_$ref_dketaj(), null));
|
|
1578
1631
|
var tmp_2 = this;
|
|
1579
1632
|
var tmp_3 = option(this, ['--git-repo'], VOID, VOID, VOID, 'PWD');
|
|
1580
1633
|
var tmp_4 = KProperty1;
|
|
1581
|
-
tmp_2.
|
|
1634
|
+
tmp_2.r2r_1 = tmp_3.m1n(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, Tag$_get_gitRepoOption_$ref_10iywz(), null));
|
|
1582
1635
|
var tmp_5 = this;
|
|
1583
|
-
var tmp_6 = required(option(this, []));
|
|
1636
|
+
var tmp_6 = required(option(this, [], 'Release branch name. Required unless provided in .tagger config file.'));
|
|
1584
1637
|
var tmp_7 = KProperty1;
|
|
1585
|
-
tmp_5.
|
|
1638
|
+
tmp_5.s2r_1 = tmp_6.m1n(this, getPropertyCallableRef('releaseBranch', 1, tmp_7, Tag$_get_releaseBranch_$ref_rq8rmb(), null));
|
|
1586
1639
|
var tmp_8 = this;
|
|
1587
1640
|
var tmp_9 = required(option(this, ['--version'], 'Version to tag (required)'));
|
|
1588
1641
|
var tmp_10 = KProperty1;
|
|
1589
|
-
tmp_8.
|
|
1642
|
+
tmp_8.t2r_1 = tmp_9.m1n(this, getPropertyCallableRef('version', 1, tmp_10, Tag$_get_version_$ref_p7wb9e(), null));
|
|
1590
1643
|
var tmp_11 = this;
|
|
1591
1644
|
var tmp_12 = option(this, []);
|
|
1592
1645
|
var tmp_13 = KProperty1;
|
|
1593
|
-
tmp_11.
|
|
1646
|
+
tmp_11.u2r_1 = tmp_12.m1n(this, getPropertyCallableRef('userName', 1, tmp_13, Tag$_get_userName_$ref_kslo5u(), null));
|
|
1594
1647
|
var tmp_14 = this;
|
|
1595
1648
|
var tmp_15 = option(this, []);
|
|
1596
1649
|
var tmp_16 = KProperty1;
|
|
1597
|
-
tmp_14.
|
|
1650
|
+
tmp_14.v2r_1 = tmp_15.m1n(this, getPropertyCallableRef('userEmail', 1, tmp_16, Tag$_get_userEmail_$ref_vl09cr(), null));
|
|
1598
1651
|
var tmp_17 = this;
|
|
1599
1652
|
var tmp_18 = default_0(boolean(option(this, ['--allow-detached-head'])), false);
|
|
1600
1653
|
var tmp_19 = KProperty1;
|
|
1601
|
-
tmp_17.
|
|
1654
|
+
tmp_17.w2r_1 = tmp_18.m1n(this, getPropertyCallableRef('allowDetachedHead', 1, tmp_19, Tag$_get_allowDetachedHead_$ref_qujqxn(), null));
|
|
1602
1655
|
var tmp_20 = this;
|
|
1603
1656
|
var tmp_21 = default_0(boolean(option(this, ['--dry-run'])), false);
|
|
1604
1657
|
var tmp_22 = KProperty1;
|
|
1605
|
-
tmp_20.
|
|
1658
|
+
tmp_20.x2r_1 = tmp_21.m1n(this, getPropertyCallableRef('dryRun', 1, tmp_22, Tag$_get_dryRun_$ref_agy9vo(), null));
|
|
1606
1659
|
var tmp_23 = this;
|
|
1607
1660
|
var tmp_24 = default_0(boolean(option(this, [])), false);
|
|
1608
1661
|
var tmp_25 = KProperty1;
|
|
1609
|
-
tmp_23.
|
|
1662
|
+
tmp_23.y2r_1 = tmp_24.m1n(this, getPropertyCallableRef('warningsAsErrors', 1, tmp_25, Tag$_get_warningsAsErrors_$ref_gj8a6o(), null));
|
|
1610
1663
|
var tmp_26 = this;
|
|
1611
1664
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
1612
1665
|
var this_0 = option(this, ['--format'], 'Output format for result');
|
|
@@ -1629,7 +1682,7 @@
|
|
|
1629
1682
|
var tmp$ret$0 = choice(this_0, destination, VOID, true);
|
|
1630
1683
|
var tmp_27 = default_0(tmp$ret$0, OutputFormat_TEXT_getInstance(), 'text');
|
|
1631
1684
|
var tmp_28 = KProperty1;
|
|
1632
|
-
tmp_26.
|
|
1685
|
+
tmp_26.z2r_1 = tmp_27.m1n(this, getPropertyCallableRef('format', 1, tmp_28, Tag$_get_format_$ref_i96vgt(), null));
|
|
1633
1686
|
}
|
|
1634
1687
|
protoOf(Tag).g1b = function (context) {
|
|
1635
1688
|
return protoOf(CliktCommand).g1b.call(this, context) + '\n\n' + configFileHelpSuffix();
|
|
@@ -1662,10 +1715,10 @@
|
|
|
1662
1715
|
switch (_get_format__qlarck_0(this).y2_1) {
|
|
1663
1716
|
case 1:
|
|
1664
1717
|
this.o1c(errorResponse(it.ko_1, 'TAG_ERROR'));
|
|
1665
|
-
var tmp3_statusCode =
|
|
1718
|
+
var tmp3_statusCode = _get_warningsAsErrors__7mpwfd_0(this) ? 1 : 0;
|
|
1666
1719
|
throw new CliktError('', VOID, tmp3_statusCode, false);
|
|
1667
1720
|
case 0:
|
|
1668
|
-
if (
|
|
1721
|
+
if (_get_warningsAsErrors__7mpwfd_0(this)) {
|
|
1669
1722
|
throw new CliktError(it.ko_1);
|
|
1670
1723
|
} else {
|
|
1671
1724
|
this.o1c(it.ko_1, VOID, true);
|
|
@@ -1693,7 +1746,7 @@
|
|
|
1693
1746
|
}
|
|
1694
1747
|
function _get_quiet__c6dzoj($this) {
|
|
1695
1748
|
var tmp = KProperty1;
|
|
1696
|
-
return $this.
|
|
1749
|
+
return $this.p2s_1.c1n($this, getPropertyCallableRef('quiet', 1, tmp, Tagger$_get_quiet_$ref_s522ri_0(), null));
|
|
1697
1750
|
}
|
|
1698
1751
|
function Tagger$lambda($this$context) {
|
|
1699
1752
|
var tmp = $this$context;
|
|
@@ -1731,7 +1784,7 @@
|
|
|
1731
1784
|
var tmp = this;
|
|
1732
1785
|
var tmp_0 = flag(option(this, ['--quiet', '-q'], 'Suppress welcome message. Version goes to stdout, diagnostics to stderr (safe for: VERSION=$(tagger -q ...))'), [], false);
|
|
1733
1786
|
var tmp_1 = KProperty1;
|
|
1734
|
-
tmp.
|
|
1787
|
+
tmp.p2s_1 = tmp_0.m1n(this, getPropertyCallableRef('quiet', 1, tmp_1, Tagger$_get_quiet_$ref_s522ri(), null));
|
|
1735
1788
|
}
|
|
1736
1789
|
protoOf(Tagger).g1b = function (context) {
|
|
1737
1790
|
return trimIndent('\n ' + configurationSection(this) + '\n\n ' + outputSection(this) + '\n\n ' + automationSection(this) + '\n ');
|