git-semver-tagger 1.9.26 → 1.9.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -0
- package/kotlin/clikt-clikt-mordant.js +80 -80
- package/kotlin/clikt-clikt.js +1375 -1375
- package/kotlin/colormath-root-colormath.js +439 -439
- package/kotlin/command-line-tools-tagger-cli.js +311 -311
- package/kotlin/kotlin-kotlin-stdlib.js +108 -80
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1787 -1787
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1520 -1520
- package/kotlin/mordant-mordant.js +1215 -1215
- package/kotlin/tools-cli-tools.js +1 -1
- package/kotlin/tools-git-adapter.js +150 -37
- package/kotlin/tools-git-adapter.js.map +1 -1
- package/kotlin/tools-tagger-core.js +198 -124
- package/kotlin/tools-tagger-core.js.map +1 -1
- package/kotlin/tools-tagger-json.js +141 -141
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
var protoOf = kotlin_kotlin.$_$.da;
|
|
6
6
|
var initMetadataForObject = kotlin_kotlin.$_$.k9;
|
|
7
7
|
var Unit_instance = kotlin_kotlin.$_$.v;
|
|
8
|
-
var Enum = kotlin_kotlin.$_$.
|
|
8
|
+
var Enum = kotlin_kotlin.$_$.vd;
|
|
9
9
|
var initMetadataForClass = kotlin_kotlin.$_$.f9;
|
|
10
10
|
var VOID = kotlin_kotlin.$_$.c;
|
|
11
11
|
var KProperty1 = kotlin_kotlin.$_$.xa;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
var GitAdapter = kotlin_com_zegreatrob_tools_git_adapter.$_$.a;
|
|
34
34
|
var TaggerCore = kotlin_com_zegreatrob_tools_tagger_core.$_$.b;
|
|
35
35
|
var calculateNextVersion = kotlin_com_zegreatrob_tools_tagger_core.$_$.f;
|
|
36
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
36
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ze;
|
|
37
37
|
var Failure = kotlin_com_zegreatrob_tools_tagger_core.$_$.d;
|
|
38
38
|
var Success = kotlin_com_zegreatrob_tools_tagger_core.$_$.e;
|
|
39
39
|
var emptyList = kotlin_kotlin.$_$.j5;
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
var Companion_instance_0 = kotlin_clikt_clikt.$_$.t;
|
|
42
42
|
var get_jsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i;
|
|
43
43
|
var JsonArray = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
44
|
-
var IllegalArgumentException = kotlin_kotlin.$_$.
|
|
45
|
-
var split = kotlin_kotlin.$_$.
|
|
44
|
+
var IllegalArgumentException = kotlin_kotlin.$_$.xd;
|
|
45
|
+
var split = kotlin_kotlin.$_$.oc;
|
|
46
46
|
var Companion_instance_1 = kotlin_clikt_clikt.$_$.s;
|
|
47
47
|
var listOf = kotlin_kotlin.$_$.f6;
|
|
48
48
|
var Regex_init_$Create$_0 = kotlin_kotlin.$_$.m1;
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
var Default_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
51
51
|
var TaggerConfig = kotlin_com_zegreatrob_tools_tagger_json.$_$.a;
|
|
52
52
|
var getKClass = kotlin_kotlin.$_$.ua;
|
|
53
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
53
|
+
var arrayOf = kotlin_kotlin.$_$.pe;
|
|
54
54
|
var createKType = kotlin_kotlin.$_$.sa;
|
|
55
55
|
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i2;
|
|
56
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
56
|
+
var THROW_CCE = kotlin_kotlin.$_$.de;
|
|
57
57
|
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2;
|
|
58
58
|
var isInterface = kotlin_kotlin.$_$.t9;
|
|
59
59
|
var last = kotlin_kotlin.$_$.dc;
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
var getStringHashCode = kotlin_kotlin.$_$.d9;
|
|
78
78
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l1;
|
|
79
79
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.x;
|
|
80
|
-
var lazy = kotlin_kotlin.$_$.
|
|
80
|
+
var lazy = kotlin_kotlin.$_$.xe;
|
|
81
81
|
var equals = kotlin_kotlin.$_$.z8;
|
|
82
82
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i;
|
|
83
83
|
var toString_0 = kotlin_kotlin.$_$.fa;
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
initMetadataForClass(Tagger, 'Tagger', Tagger, CliktCommand);
|
|
122
122
|
//endregion
|
|
123
123
|
function Versions() {
|
|
124
|
-
this.
|
|
124
|
+
this.y2n_1 = '1.9.27';
|
|
125
125
|
}
|
|
126
126
|
var Versions_instance;
|
|
127
127
|
function Versions_getInstance() {
|
|
@@ -145,11 +145,11 @@
|
|
|
145
145
|
}
|
|
146
146
|
function _get_gitRepoArgument__zxde8($this) {
|
|
147
147
|
var tmp = KProperty1;
|
|
148
|
-
return $this.
|
|
148
|
+
return $this.o2o_1.s1m($this, getPropertyCallableRef('gitRepoArgument', 1, tmp, CalculateVersion$_get_gitRepoArgument_$ref_ekksr7_0(), null));
|
|
149
149
|
}
|
|
150
150
|
function _get_gitRepoOption__rk7ta0($this) {
|
|
151
151
|
var tmp = KProperty1;
|
|
152
|
-
return $this.
|
|
152
|
+
return $this.p2o_1.s1m($this, getPropertyCallableRef('gitRepoOption', 1, tmp, CalculateVersion$_get_gitRepoOption_$ref_ms8ohh_0(), null));
|
|
153
153
|
}
|
|
154
154
|
function _get_workingDirectory__eyfbj($this) {
|
|
155
155
|
var tmp0_elvis_lhs = _get_gitRepoArgument__zxde8($this);
|
|
@@ -164,49 +164,49 @@
|
|
|
164
164
|
}
|
|
165
165
|
function _get_implicitPatch__bjk4pa($this) {
|
|
166
166
|
var tmp = KProperty1;
|
|
167
|
-
return $this.
|
|
167
|
+
return $this.q2o_1.s1m($this, getPropertyCallableRef('implicitPatch', 1, tmp, CalculateVersion$_get_implicitPatch_$ref_8lm4hh_0(), null));
|
|
168
168
|
}
|
|
169
169
|
function _get_disableDetached__ys8kbb($this) {
|
|
170
170
|
var tmp = KProperty1;
|
|
171
|
-
return $this.
|
|
171
|
+
return $this.r2o_1.s1m($this, getPropertyCallableRef('disableDetached', 1, tmp, CalculateVersion$_get_disableDetached_$ref_yxb19o_0(), null));
|
|
172
172
|
}
|
|
173
173
|
function _get_forceSnapshot__vb3h7m($this) {
|
|
174
174
|
var tmp = KProperty1;
|
|
175
|
-
return $this.
|
|
175
|
+
return $this.s2o_1.s1m($this, getPropertyCallableRef('forceSnapshot', 1, tmp, CalculateVersion$_get_forceSnapshot_$ref_8rl68v_0(), null));
|
|
176
176
|
}
|
|
177
177
|
function _get_releaseBranch__pqrgbs($this) {
|
|
178
178
|
var tmp = KProperty1;
|
|
179
|
-
return $this.
|
|
179
|
+
return $this.t2o_1.s1m($this, getPropertyCallableRef('releaseBranch', 1, tmp, CalculateVersion$_get_releaseBranch_$ref_3xh47v_0(), null));
|
|
180
180
|
}
|
|
181
181
|
function _get_format__qlarck($this) {
|
|
182
182
|
var tmp = KProperty1;
|
|
183
|
-
return $this.
|
|
183
|
+
return $this.u2o_1.s1m($this, getPropertyCallableRef('format', 1, tmp, CalculateVersion$_get_format_$ref_clhcb9_0(), null));
|
|
184
184
|
}
|
|
185
185
|
function _get_majorRegex__5j6ypp($this) {
|
|
186
186
|
var tmp = KProperty1;
|
|
187
|
-
return $this.
|
|
187
|
+
return $this.v2o_1.s1m($this, getPropertyCallableRef('majorRegex', 1, tmp, CalculateVersion$_get_majorRegex_$ref_erugf6_0(), null));
|
|
188
188
|
}
|
|
189
189
|
function _get_minorRegex__20z96h($this) {
|
|
190
190
|
var tmp = KProperty1;
|
|
191
|
-
return $this.
|
|
191
|
+
return $this.w2o_1.s1m($this, getPropertyCallableRef('minorRegex', 1, tmp, CalculateVersion$_get_minorRegex_$ref_u1fzja_0(), null));
|
|
192
192
|
}
|
|
193
193
|
function _get_patchRegex__mtlu2c($this) {
|
|
194
194
|
var tmp = KProperty1;
|
|
195
|
-
return $this.
|
|
195
|
+
return $this.x2o_1.s1m($this, getPropertyCallableRef('patchRegex', 1, tmp, CalculateVersion$_get_patchRegex_$ref_124637_0(), null));
|
|
196
196
|
}
|
|
197
197
|
function _get_noneRegex__1tdbgi($this) {
|
|
198
198
|
var tmp = KProperty1;
|
|
199
|
-
return $this.
|
|
199
|
+
return $this.y2o_1.s1m($this, getPropertyCallableRef('noneRegex', 1, tmp, CalculateVersion$_get_noneRegex_$ref_vcaxfl_0(), null));
|
|
200
200
|
}
|
|
201
201
|
function _get_versionRegex__7su5ss($this) {
|
|
202
202
|
var tmp = KProperty1;
|
|
203
|
-
return $this.
|
|
203
|
+
return $this.z2o_1.s1m($this, getPropertyCallableRef('versionRegex', 1, tmp, CalculateVersion$_get_versionRegex_$ref_f466m5_0(), null));
|
|
204
204
|
}
|
|
205
205
|
function output($this, message, errorMessage) {
|
|
206
|
-
$this.
|
|
206
|
+
$this.e1c(message);
|
|
207
207
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
208
208
|
if (!errorMessage.p()) {
|
|
209
|
-
$this.
|
|
209
|
+
$this.e1c(errorMessage, VOID, true);
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
function outputJson($this, version, snapshotReasons) {
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
destination.v(tmp$ret$2);
|
|
222
222
|
}
|
|
223
223
|
var jsonOutput = versionSuccessResponse(new VersionData(version, isSnapshot, destination));
|
|
224
|
-
$this.
|
|
224
|
+
$this.e1c(jsonOutput);
|
|
225
225
|
}
|
|
226
226
|
function versionRegex($this) {
|
|
227
227
|
var tmp = Regex_init_$Create$(_get_noneRegex__1tdbgi($this), RegexOption_IGNORE_CASE_getInstance());
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
return new VersionRegex(tmp, tmp_0, tmp_1, tmp_2, tmp_3);
|
|
240
240
|
}
|
|
241
241
|
function CalculateVersion$lambda($this$context) {
|
|
242
|
-
$this$context.
|
|
242
|
+
$this$context.y1c([new ConfigFileSource($this$context.u1c_1)]);
|
|
243
243
|
return Unit_instance;
|
|
244
244
|
}
|
|
245
245
|
function CalculateVersion$_get_gitRepoArgument_$ref_ekksr7() {
|
|
@@ -357,9 +357,9 @@
|
|
|
357
357
|
var tmp;
|
|
358
358
|
if (!(it == null)) {
|
|
359
359
|
// Inline function 'com.github.ajalt.clikt.parameters.options.OptionTransformContext.require' call
|
|
360
|
-
if (!$tmp4_check_this.
|
|
360
|
+
if (!$tmp4_check_this.io(it)) {
|
|
361
361
|
var tmp$ret$3 = $message;
|
|
362
|
-
$this$copy.
|
|
362
|
+
$this$copy.b1m(tmp$ret$3);
|
|
363
363
|
}
|
|
364
364
|
tmp = Unit_instance;
|
|
365
365
|
}
|
|
@@ -382,27 +382,27 @@
|
|
|
382
382
|
var tmp = this;
|
|
383
383
|
var tmp_0 = optional(argument(this, 'git-repo'));
|
|
384
384
|
var tmp_1 = KProperty1;
|
|
385
|
-
tmp.
|
|
385
|
+
tmp.o2o_1 = tmp_0.y1l(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, CalculateVersion$_get_gitRepoArgument_$ref_ekksr7(), null));
|
|
386
386
|
var tmp_2 = this;
|
|
387
387
|
var tmp_3 = option(this, ['--git-repo'], VOID, VOID, VOID, 'PWD');
|
|
388
388
|
var tmp_4 = KProperty1;
|
|
389
|
-
tmp_2.
|
|
389
|
+
tmp_2.p2o_1 = tmp_3.c1n(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, CalculateVersion$_get_gitRepoOption_$ref_ms8ohh(), null));
|
|
390
390
|
var tmp_5 = this;
|
|
391
391
|
var tmp_6 = default_0(boolean(option(this, [])), true);
|
|
392
392
|
var tmp_7 = KProperty1;
|
|
393
|
-
tmp_5.
|
|
393
|
+
tmp_5.q2o_1 = tmp_6.c1n(this, getPropertyCallableRef('implicitPatch', 1, tmp_7, CalculateVersion$_get_implicitPatch_$ref_8lm4hh(), null));
|
|
394
394
|
var tmp_8 = this;
|
|
395
395
|
var tmp_9 = default_0(boolean(option(this, [])), true);
|
|
396
396
|
var tmp_10 = KProperty1;
|
|
397
|
-
tmp_8.
|
|
397
|
+
tmp_8.r2o_1 = tmp_9.c1n(this, getPropertyCallableRef('disableDetached', 1, tmp_10, CalculateVersion$_get_disableDetached_$ref_yxb19o(), null));
|
|
398
398
|
var tmp_11 = this;
|
|
399
399
|
var tmp_12 = default_0(boolean(option(this, [])), false);
|
|
400
400
|
var tmp_13 = KProperty1;
|
|
401
|
-
tmp_11.
|
|
401
|
+
tmp_11.s2o_1 = tmp_12.c1n(this, getPropertyCallableRef('forceSnapshot', 1, tmp_13, CalculateVersion$_get_forceSnapshot_$ref_8rl68v(), null));
|
|
402
402
|
var tmp_14 = this;
|
|
403
403
|
var tmp_15 = option(this, []);
|
|
404
404
|
var tmp_16 = KProperty1;
|
|
405
|
-
tmp_14.
|
|
405
|
+
tmp_14.t2o_1 = tmp_15.c1n(this, getPropertyCallableRef('releaseBranch', 1, tmp_16, CalculateVersion$_get_releaseBranch_$ref_3xh47v(), null));
|
|
406
406
|
var tmp_17 = this;
|
|
407
407
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
408
408
|
var this_0 = option(this, ['--format'], 'Output format (default: text). Use json for structured data with version, snapshot status, and diagnostic flags.');
|
|
@@ -425,37 +425,37 @@
|
|
|
425
425
|
var tmp$ret$0 = choice(this_0, destination, VOID, true);
|
|
426
426
|
var tmp_18 = default_0(tmp$ret$0, OutputFormat_TEXT_getInstance());
|
|
427
427
|
var tmp_19 = KProperty1;
|
|
428
|
-
tmp_17.
|
|
428
|
+
tmp_17.u2o_1 = tmp_18.c1n(this, getPropertyCallableRef('format', 1, tmp_19, CalculateVersion$_get_format_$ref_clhcb9(), null));
|
|
429
429
|
var tmp_20 = this;
|
|
430
|
-
var tmp_21 = default_0(option(this, []), Defaults_getInstance().
|
|
430
|
+
var tmp_21 = default_0(option(this, []), Defaults_getInstance().go_1.tb_1);
|
|
431
431
|
var tmp_22 = KProperty1;
|
|
432
|
-
tmp_20.
|
|
432
|
+
tmp_20.v2o_1 = tmp_21.c1n(this, getPropertyCallableRef('majorRegex', 1, tmp_22, CalculateVersion$_get_majorRegex_$ref_erugf6(), null));
|
|
433
433
|
var tmp_23 = this;
|
|
434
|
-
var tmp_24 = default_0(option(this, []), Defaults_getInstance().
|
|
434
|
+
var tmp_24 = default_0(option(this, []), Defaults_getInstance().fo_1.tb_1);
|
|
435
435
|
var tmp_25 = KProperty1;
|
|
436
|
-
tmp_23.
|
|
436
|
+
tmp_23.w2o_1 = tmp_24.c1n(this, getPropertyCallableRef('minorRegex', 1, tmp_25, CalculateVersion$_get_minorRegex_$ref_u1fzja(), null));
|
|
437
437
|
var tmp_26 = this;
|
|
438
|
-
var tmp_27 = default_0(option(this, []), Defaults_getInstance().
|
|
438
|
+
var tmp_27 = default_0(option(this, []), Defaults_getInstance().eo_1.tb_1);
|
|
439
439
|
var tmp_28 = KProperty1;
|
|
440
|
-
tmp_26.
|
|
440
|
+
tmp_26.x2o_1 = tmp_27.c1n(this, getPropertyCallableRef('patchRegex', 1, tmp_28, CalculateVersion$_get_patchRegex_$ref_124637(), null));
|
|
441
441
|
var tmp_29 = this;
|
|
442
|
-
var tmp_30 = default_0(option(this, []), Defaults_getInstance().
|
|
442
|
+
var tmp_30 = default_0(option(this, []), Defaults_getInstance().do_1.tb_1);
|
|
443
443
|
var tmp_31 = KProperty1;
|
|
444
|
-
tmp_29.
|
|
444
|
+
tmp_29.y2o_1 = tmp_30.c1n(this, getPropertyCallableRef('noneRegex', 1, tmp_31, CalculateVersion$_get_noneRegex_$ref_vcaxfl(), null));
|
|
445
445
|
var tmp_32 = this;
|
|
446
446
|
var tmp0 = option(this, []);
|
|
447
447
|
// Inline function 'com.github.ajalt.clikt.parameters.options.check' call
|
|
448
448
|
var message = "version regex must include groups named 'major', 'minor', 'patch', and 'none'.";
|
|
449
449
|
// Inline function 'com.github.ajalt.clikt.parameters.options.check' call
|
|
450
450
|
// Inline function 'com.github.ajalt.clikt.parameters.options.validate' call
|
|
451
|
-
var tmp_33 = tmp0.
|
|
452
|
-
var tmp_34 = tmp0.
|
|
453
|
-
var tmp_35 = tmp0.
|
|
454
|
-
var tmp_36 = tmp0.
|
|
451
|
+
var tmp_33 = tmp0.t1l();
|
|
452
|
+
var tmp_34 = tmp0.v1m();
|
|
453
|
+
var tmp_35 = tmp0.u1l();
|
|
454
|
+
var tmp_36 = tmp0.w1m(tmp_33, tmp_34, tmp_35, CalculateVersion$versionRegex$delegate$lambda(Companion_instance, message));
|
|
455
455
|
var tmp_37 = KProperty1;
|
|
456
|
-
tmp_32.
|
|
456
|
+
tmp_32.z2o_1 = tmp_36.c1n(this, getPropertyCallableRef('versionRegex', 1, tmp_37, CalculateVersion$_get_versionRegex_$ref_f466m5(), null));
|
|
457
457
|
}
|
|
458
|
-
protoOf(CalculateVersion).
|
|
458
|
+
protoOf(CalculateVersion).r1d = function () {
|
|
459
459
|
var tmp = new TaggerCore(new GitAdapter(_get_workingDirectory__eyfbj(this)));
|
|
460
460
|
var tmp_0 = _get_implicitPatch__bjk4pa(this);
|
|
461
461
|
var tmp_1 = _get_disableDetached__ys8kbb(this);
|
|
@@ -467,10 +467,10 @@
|
|
|
467
467
|
if ($this$run instanceof Success) {
|
|
468
468
|
switch (_get_format__qlarck(this).y2_1) {
|
|
469
469
|
case 1:
|
|
470
|
-
outputJson(this, $this$run.
|
|
470
|
+
outputJson(this, $this$run.jo_1, $this$run.ko_1);
|
|
471
471
|
break;
|
|
472
472
|
case 0:
|
|
473
|
-
output(this, $this$run.
|
|
473
|
+
output(this, $this$run.jo_1, $this$run.ko_1);
|
|
474
474
|
break;
|
|
475
475
|
default:
|
|
476
476
|
noWhenBranchMatchedException();
|
|
@@ -480,7 +480,7 @@
|
|
|
480
480
|
if ($this$run instanceof Failure) {
|
|
481
481
|
switch (_get_format__qlarck(this).y2_1) {
|
|
482
482
|
case 1:
|
|
483
|
-
this.
|
|
483
|
+
this.e1c(errorResponse($this$run.ba(), 'CONFIGURATION_ERROR'));
|
|
484
484
|
throw new CliktError('', VOID, 1, false);
|
|
485
485
|
case 0:
|
|
486
486
|
throw new CliktError($this$run.ba());
|
|
@@ -522,12 +522,12 @@
|
|
|
522
522
|
var _iterator__ex2g4s_0 = this_0.r();
|
|
523
523
|
while (_iterator__ex2g4s_0.s()) {
|
|
524
524
|
var item = _iterator__ex2g4s_0.t();
|
|
525
|
-
var tmp$ret$2 = Companion_instance_0.
|
|
525
|
+
var tmp$ret$2 = Companion_instance_0.u1r(get_jsonPrimitive(item).w2c());
|
|
526
526
|
destination.v(tmp$ret$2);
|
|
527
527
|
}
|
|
528
528
|
return destination;
|
|
529
529
|
}
|
|
530
|
-
return Companion_instance_0.
|
|
530
|
+
return Companion_instance_0.t1r(get_jsonPrimitive(cursor).w2c());
|
|
531
531
|
} catch ($p) {
|
|
532
532
|
if ($p instanceof IllegalArgumentException) {
|
|
533
533
|
var _unused_var__etf5q3 = $p;
|
|
@@ -538,9 +538,9 @@
|
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
540
|
function parts($this, $receiver) {
|
|
541
|
-
var tmp0_safe_receiver = $receiver.
|
|
541
|
+
var tmp0_safe_receiver = $receiver.f1e();
|
|
542
542
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : split(tmp0_safe_receiver, ['.']);
|
|
543
|
-
return tmp1_elvis_lhs == null ? listOf(kebabToCamelCase($this, Companion_instance_1.
|
|
543
|
+
return tmp1_elvis_lhs == null ? listOf(kebabToCamelCase($this, Companion_instance_1.v1r($receiver))) : tmp1_elvis_lhs;
|
|
544
544
|
}
|
|
545
545
|
function kebabToCamelCase($this, $receiver) {
|
|
546
546
|
// Inline function 'kotlin.text.toRegex' call
|
|
@@ -550,7 +550,7 @@
|
|
|
550
550
|
return pattern.lc($receiver, transform);
|
|
551
551
|
}
|
|
552
552
|
function readConfigFileAsJsonElement($this) {
|
|
553
|
-
var pwd = $this.
|
|
553
|
+
var pwd = $this.a2p_1('PWD');
|
|
554
554
|
var tmp0_elvis_lhs = readFromFile('' + pwd + '/.tagger');
|
|
555
555
|
var tmp;
|
|
556
556
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -562,19 +562,19 @@
|
|
|
562
562
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
563
563
|
var this_0 = Default_getInstance();
|
|
564
564
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
565
|
-
var this_1 = this_0.
|
|
565
|
+
var this_1 = this_0.zr();
|
|
566
566
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
567
567
|
var this_2 = serializer(this_1, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
568
568
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
569
|
-
var config = this_0.
|
|
569
|
+
var config = this_0.o2a(tmp$ret$1, fileContents);
|
|
570
570
|
// Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
|
|
571
571
|
var this_3 = Default_getInstance();
|
|
572
572
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
573
|
-
var this_4 = this_3.
|
|
573
|
+
var this_4 = this_3.zr();
|
|
574
574
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
575
575
|
var this_5 = serializer(this_4, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
576
576
|
var tmp$ret$4 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
577
|
-
var configAsElement = this_3.
|
|
577
|
+
var configAsElement = this_3.p2a(tmp$ret$4, config);
|
|
578
578
|
return configAsElement;
|
|
579
579
|
}
|
|
580
580
|
function ConfigFileSource$kebabToCamelCase$lambda(it) {
|
|
@@ -585,9 +585,9 @@
|
|
|
585
585
|
return toString(this_0).toUpperCase();
|
|
586
586
|
}
|
|
587
587
|
function ConfigFileSource(envvarReader) {
|
|
588
|
-
this.
|
|
588
|
+
this.a2p_1 = envvarReader;
|
|
589
589
|
}
|
|
590
|
-
protoOf(ConfigFileSource).
|
|
590
|
+
protoOf(ConfigFileSource).e1n = function (context, option) {
|
|
591
591
|
var tmp0_elvis_lhs = readConfigFileAsJsonElement(this);
|
|
592
592
|
var tmp;
|
|
593
593
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -600,11 +600,11 @@
|
|
|
600
600
|
};
|
|
601
601
|
function _get_file__d6iv67($this) {
|
|
602
602
|
var tmp = KProperty1;
|
|
603
|
-
return $this.
|
|
603
|
+
return $this.q2p_1.s1m($this, getPropertyCallableRef('file', 1, tmp, GenerateSettingsFile$_get_file_$ref_3dvoj2_0(), null));
|
|
604
604
|
}
|
|
605
605
|
function _get_merge__eb7eqv($this) {
|
|
606
606
|
var tmp = KProperty1;
|
|
607
|
-
return $this.
|
|
607
|
+
return $this.r2p_1.s1m($this, getPropertyCallableRef('merge', 1, tmp, GenerateSettingsFile$_get_merge_$ref_3aq3hk_0(), null));
|
|
608
608
|
}
|
|
609
609
|
function mergeJson($this, defaultConfig, originalData) {
|
|
610
610
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
@@ -627,9 +627,9 @@
|
|
|
627
627
|
} else {
|
|
628
628
|
tmp = value;
|
|
629
629
|
}
|
|
630
|
-
builder.
|
|
630
|
+
builder.e2d(key, tmp);
|
|
631
631
|
}
|
|
632
|
-
var mergeData = builder.
|
|
632
|
+
var mergeData = builder.y2b();
|
|
633
633
|
return mergeData;
|
|
634
634
|
}
|
|
635
635
|
function GenerateSettingsFile$_get_file_$ref_3dvoj2() {
|
|
@@ -653,8 +653,8 @@
|
|
|
653
653
|
};
|
|
654
654
|
}
|
|
655
655
|
function GenerateSettingsFile$run$lambda($this$Json) {
|
|
656
|
-
$this$Json.
|
|
657
|
-
$this$Json.
|
|
656
|
+
$this$Json.k2b_1 = true;
|
|
657
|
+
$this$Json.g2b_1 = true;
|
|
658
658
|
return Unit_instance;
|
|
659
659
|
}
|
|
660
660
|
function GenerateSettingsFile() {
|
|
@@ -662,22 +662,22 @@
|
|
|
662
662
|
var tmp = this;
|
|
663
663
|
var tmp_0 = option(this, []);
|
|
664
664
|
var tmp_1 = KProperty1;
|
|
665
|
-
tmp.
|
|
665
|
+
tmp.q2p_1 = tmp_0.c1n(this, getPropertyCallableRef('file', 1, tmp_1, GenerateSettingsFile$_get_file_$ref_3dvoj2(), null));
|
|
666
666
|
var tmp_2 = this;
|
|
667
667
|
var tmp_3 = boolean(option(this, []));
|
|
668
668
|
var tmp_4 = KProperty1;
|
|
669
|
-
tmp_2.
|
|
669
|
+
tmp_2.r2p_1 = tmp_3.c1n(this, getPropertyCallableRef('merge', 1, tmp_4, GenerateSettingsFile$_get_merge_$ref_3aq3hk(), null));
|
|
670
670
|
}
|
|
671
|
-
protoOf(GenerateSettingsFile).
|
|
671
|
+
protoOf(GenerateSettingsFile).r1d = function () {
|
|
672
672
|
var prettyJsonFormatter = Json(VOID, GenerateSettingsFile$run$lambda);
|
|
673
673
|
// Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
|
|
674
674
|
var value = get_runtimeDefaultConfig();
|
|
675
675
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
676
|
-
var this_0 = prettyJsonFormatter.
|
|
676
|
+
var this_0 = prettyJsonFormatter.zr();
|
|
677
677
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
678
678
|
var this_1 = serializer(this_0, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
679
679
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
680
|
-
var defaultConfig = prettyJsonFormatter.
|
|
680
|
+
var defaultConfig = prettyJsonFormatter.p2a(tmp$ret$1, value);
|
|
681
681
|
// Inline function 'kotlin.text.orEmpty' call
|
|
682
682
|
var tmp0_elvis_lhs = _get_file__d6iv67(this);
|
|
683
683
|
// Inline function 'kotlin.text.ifBlank' call
|
|
@@ -689,14 +689,14 @@
|
|
|
689
689
|
tmp = this_2;
|
|
690
690
|
}
|
|
691
691
|
var fileName = tmp;
|
|
692
|
-
var pwd = this.
|
|
692
|
+
var pwd = this.m19().d1a_1('PWD');
|
|
693
693
|
var settingsFile = '' + pwd + '/' + fileName;
|
|
694
694
|
var existingFileData = readFromFile(settingsFile);
|
|
695
695
|
var tmp_0;
|
|
696
696
|
if (!(existingFileData == null)) {
|
|
697
697
|
var tmp_1;
|
|
698
698
|
if (_get_merge__eb7eqv(this) === true) {
|
|
699
|
-
var originalData = prettyJsonFormatter.
|
|
699
|
+
var originalData = prettyJsonFormatter.q2a(existingFileData);
|
|
700
700
|
tmp_1 = mergeJson(this, defaultConfig, originalData);
|
|
701
701
|
} else {
|
|
702
702
|
throw new CliktError('File already exists.');
|
|
@@ -709,27 +709,27 @@
|
|
|
709
709
|
if (_get_file__d6iv67(this) == null) {
|
|
710
710
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
711
711
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
712
|
-
var this_3 = prettyJsonFormatter.
|
|
712
|
+
var this_3 = prettyJsonFormatter.zr();
|
|
713
713
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
714
714
|
var this_4 = serializer(this_3, createKType(getKClass(JsonElement), arrayOf([]), false));
|
|
715
715
|
var tmp$ret$7 = isInterface(this_4, KSerializer) ? this_4 : THROW_CCE();
|
|
716
|
-
var tmp$ret$6 = prettyJsonFormatter.
|
|
717
|
-
this.
|
|
716
|
+
var tmp$ret$6 = prettyJsonFormatter.n2a(tmp$ret$7, outputConfig);
|
|
717
|
+
this.e1c(tmp$ret$6);
|
|
718
718
|
} else {
|
|
719
719
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
720
720
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
721
|
-
var this_5 = prettyJsonFormatter.
|
|
721
|
+
var this_5 = prettyJsonFormatter.zr();
|
|
722
722
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
723
723
|
var this_6 = serializer(this_5, createKType(getKClass(JsonElement), arrayOf([]), false));
|
|
724
724
|
var tmp$ret$10 = isInterface(this_6, KSerializer) ? this_6 : THROW_CCE();
|
|
725
|
-
var tmp$ret$9 = prettyJsonFormatter.
|
|
725
|
+
var tmp$ret$9 = prettyJsonFormatter.n2a(tmp$ret$10, outputConfig);
|
|
726
726
|
writeToFile(tmp$ret$9, settingsFile);
|
|
727
|
-
this.
|
|
727
|
+
this.e1c('Saved to ' + fileName);
|
|
728
728
|
}
|
|
729
729
|
};
|
|
730
730
|
function Companion() {
|
|
731
731
|
}
|
|
732
|
-
protoOf(Companion).
|
|
732
|
+
protoOf(Companion).y2c = function () {
|
|
733
733
|
return $serializer_getInstance();
|
|
734
734
|
};
|
|
735
735
|
var Companion_instance_2;
|
|
@@ -739,59 +739,59 @@
|
|
|
739
739
|
function $serializer() {
|
|
740
740
|
$serializer_instance = this;
|
|
741
741
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.VersionSuccessResponse', this, 2);
|
|
742
|
-
tmp0_serialDesc.
|
|
743
|
-
tmp0_serialDesc.
|
|
744
|
-
this.
|
|
745
|
-
}
|
|
746
|
-
protoOf($serializer).
|
|
747
|
-
var tmp0_desc = this.
|
|
748
|
-
var tmp1_output = encoder.
|
|
749
|
-
tmp1_output.
|
|
750
|
-
tmp1_output.
|
|
751
|
-
tmp1_output.
|
|
742
|
+
tmp0_serialDesc.ty('status', false);
|
|
743
|
+
tmp0_serialDesc.ty('data', false);
|
|
744
|
+
this.s2p_1 = tmp0_serialDesc;
|
|
745
|
+
}
|
|
746
|
+
protoOf($serializer).t2p = function (encoder, value) {
|
|
747
|
+
var tmp0_desc = this.s2p_1;
|
|
748
|
+
var tmp1_output = encoder.kr(tmp0_desc);
|
|
749
|
+
tmp1_output.ys(tmp0_desc, 0, value.u2p_1);
|
|
750
|
+
tmp1_output.at(tmp0_desc, 1, $serializer_getInstance_0(), value.v2p_1);
|
|
751
|
+
tmp1_output.lr(tmp0_desc);
|
|
752
752
|
};
|
|
753
|
-
protoOf($serializer).
|
|
754
|
-
return this.
|
|
753
|
+
protoOf($serializer).oo = function (encoder, value) {
|
|
754
|
+
return this.t2p(encoder, value instanceof VersionSuccessResponse ? value : THROW_CCE());
|
|
755
755
|
};
|
|
756
|
-
protoOf($serializer).
|
|
757
|
-
var tmp0_desc = this.
|
|
756
|
+
protoOf($serializer).po = function (decoder) {
|
|
757
|
+
var tmp0_desc = this.s2p_1;
|
|
758
758
|
var tmp1_flag = true;
|
|
759
759
|
var tmp2_index = 0;
|
|
760
760
|
var tmp3_bitMask0 = 0;
|
|
761
761
|
var tmp4_local0 = null;
|
|
762
762
|
var tmp5_local1 = null;
|
|
763
|
-
var tmp6_input = decoder.
|
|
764
|
-
if (tmp6_input.
|
|
765
|
-
tmp4_local0 = tmp6_input.
|
|
763
|
+
var tmp6_input = decoder.kr(tmp0_desc);
|
|
764
|
+
if (tmp6_input.as()) {
|
|
765
|
+
tmp4_local0 = tmp6_input.ur(tmp0_desc, 0);
|
|
766
766
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
767
|
-
tmp5_local1 = tmp6_input.
|
|
767
|
+
tmp5_local1 = tmp6_input.wr(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
768
768
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
769
769
|
} else
|
|
770
770
|
while (tmp1_flag) {
|
|
771
|
-
tmp2_index = tmp6_input.
|
|
771
|
+
tmp2_index = tmp6_input.bs(tmp0_desc);
|
|
772
772
|
switch (tmp2_index) {
|
|
773
773
|
case -1:
|
|
774
774
|
tmp1_flag = false;
|
|
775
775
|
break;
|
|
776
776
|
case 0:
|
|
777
|
-
tmp4_local0 = tmp6_input.
|
|
777
|
+
tmp4_local0 = tmp6_input.ur(tmp0_desc, 0);
|
|
778
778
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
779
779
|
break;
|
|
780
780
|
case 1:
|
|
781
|
-
tmp5_local1 = tmp6_input.
|
|
781
|
+
tmp5_local1 = tmp6_input.wr(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
782
782
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
783
783
|
break;
|
|
784
784
|
default:
|
|
785
785
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
|
-
tmp6_input.
|
|
788
|
+
tmp6_input.lr(tmp0_desc);
|
|
789
789
|
return VersionSuccessResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
790
790
|
};
|
|
791
|
-
protoOf($serializer).
|
|
792
|
-
return this.
|
|
791
|
+
protoOf($serializer).no = function () {
|
|
792
|
+
return this.s2p_1;
|
|
793
793
|
};
|
|
794
|
-
protoOf($serializer).
|
|
794
|
+
protoOf($serializer).vy = function () {
|
|
795
795
|
// Inline function 'kotlin.arrayOf' call
|
|
796
796
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
797
797
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -805,25 +805,25 @@
|
|
|
805
805
|
}
|
|
806
806
|
function VersionSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, $this) {
|
|
807
807
|
if (!(3 === (3 & seen0))) {
|
|
808
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
808
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().s2p_1);
|
|
809
809
|
}
|
|
810
|
-
$this.
|
|
811
|
-
$this.
|
|
810
|
+
$this.u2p_1 = status;
|
|
811
|
+
$this.v2p_1 = data;
|
|
812
812
|
return $this;
|
|
813
813
|
}
|
|
814
814
|
function VersionSuccessResponse_init_$Create$(seen0, status, data, serializationConstructorMarker) {
|
|
815
815
|
return VersionSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, objectCreate(protoOf(VersionSuccessResponse)));
|
|
816
816
|
}
|
|
817
817
|
function VersionSuccessResponse(status, data) {
|
|
818
|
-
this.
|
|
819
|
-
this.
|
|
818
|
+
this.u2p_1 = status;
|
|
819
|
+
this.v2p_1 = data;
|
|
820
820
|
}
|
|
821
821
|
protoOf(VersionSuccessResponse).toString = function () {
|
|
822
|
-
return 'VersionSuccessResponse(status=' + this.
|
|
822
|
+
return 'VersionSuccessResponse(status=' + this.u2p_1 + ', data=' + this.v2p_1.toString() + ')';
|
|
823
823
|
};
|
|
824
824
|
protoOf(VersionSuccessResponse).hashCode = function () {
|
|
825
|
-
var result = getStringHashCode(this.
|
|
826
|
-
result = imul(result, 31) + this.
|
|
825
|
+
var result = getStringHashCode(this.u2p_1);
|
|
826
|
+
result = imul(result, 31) + this.v2p_1.hashCode() | 0;
|
|
827
827
|
return result;
|
|
828
828
|
};
|
|
829
829
|
protoOf(VersionSuccessResponse).equals = function (other) {
|
|
@@ -831,9 +831,9 @@
|
|
|
831
831
|
return true;
|
|
832
832
|
if (!(other instanceof VersionSuccessResponse))
|
|
833
833
|
return false;
|
|
834
|
-
if (!(this.
|
|
834
|
+
if (!(this.u2p_1 === other.u2p_1))
|
|
835
835
|
return false;
|
|
836
|
-
if (!this.
|
|
836
|
+
if (!this.v2p_1.equals(other.v2p_1))
|
|
837
837
|
return false;
|
|
838
838
|
return true;
|
|
839
839
|
};
|
|
@@ -847,7 +847,7 @@
|
|
|
847
847
|
// Inline function 'kotlin.arrayOf' call
|
|
848
848
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
849
849
|
// Inline function 'kotlin.js.asDynamic' call
|
|
850
|
-
tmp.
|
|
850
|
+
tmp.w2p_1 = [null, null, lazy(tmp_0, VersionData$Companion$$childSerializers$_anonymous__gd9ivc)];
|
|
851
851
|
}
|
|
852
852
|
var Companion_instance_3;
|
|
853
853
|
function Companion_getInstance_0() {
|
|
@@ -858,73 +858,73 @@
|
|
|
858
858
|
function $serializer_0() {
|
|
859
859
|
$serializer_instance_0 = this;
|
|
860
860
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.VersionData', this, 3);
|
|
861
|
-
tmp0_serialDesc.
|
|
862
|
-
tmp0_serialDesc.
|
|
863
|
-
tmp0_serialDesc.
|
|
864
|
-
this.
|
|
865
|
-
}
|
|
866
|
-
protoOf($serializer_0).
|
|
867
|
-
var tmp0_desc = this.
|
|
868
|
-
var tmp1_output = encoder.
|
|
869
|
-
var tmp2_cached = Companion_getInstance_0().
|
|
870
|
-
tmp1_output.
|
|
871
|
-
tmp1_output.
|
|
872
|
-
if (tmp1_output.
|
|
873
|
-
tmp1_output.
|
|
861
|
+
tmp0_serialDesc.ty('version', false);
|
|
862
|
+
tmp0_serialDesc.ty('snapshot', false);
|
|
863
|
+
tmp0_serialDesc.ty('snapshotReasons', true);
|
|
864
|
+
this.x2p_1 = tmp0_serialDesc;
|
|
865
|
+
}
|
|
866
|
+
protoOf($serializer_0).y2p = function (encoder, value) {
|
|
867
|
+
var tmp0_desc = this.x2p_1;
|
|
868
|
+
var tmp1_output = encoder.kr(tmp0_desc);
|
|
869
|
+
var tmp2_cached = Companion_getInstance_0().w2p_1;
|
|
870
|
+
tmp1_output.ys(tmp0_desc, 0, value.z2p_1);
|
|
871
|
+
tmp1_output.qs(tmp0_desc, 1, value.a2q_1);
|
|
872
|
+
if (tmp1_output.gt(tmp0_desc, 2) ? true : !equals(value.b2q_1, emptyList())) {
|
|
873
|
+
tmp1_output.at(tmp0_desc, 2, tmp2_cached[2].m1(), value.b2q_1);
|
|
874
874
|
}
|
|
875
|
-
tmp1_output.
|
|
875
|
+
tmp1_output.lr(tmp0_desc);
|
|
876
876
|
};
|
|
877
|
-
protoOf($serializer_0).
|
|
878
|
-
return this.
|
|
877
|
+
protoOf($serializer_0).oo = function (encoder, value) {
|
|
878
|
+
return this.y2p(encoder, value instanceof VersionData ? value : THROW_CCE());
|
|
879
879
|
};
|
|
880
|
-
protoOf($serializer_0).
|
|
881
|
-
var tmp0_desc = this.
|
|
880
|
+
protoOf($serializer_0).po = function (decoder) {
|
|
881
|
+
var tmp0_desc = this.x2p_1;
|
|
882
882
|
var tmp1_flag = true;
|
|
883
883
|
var tmp2_index = 0;
|
|
884
884
|
var tmp3_bitMask0 = 0;
|
|
885
885
|
var tmp4_local0 = null;
|
|
886
886
|
var tmp5_local1 = false;
|
|
887
887
|
var tmp6_local2 = null;
|
|
888
|
-
var tmp7_input = decoder.
|
|
889
|
-
var tmp8_cached = Companion_getInstance_0().
|
|
890
|
-
if (tmp7_input.
|
|
891
|
-
tmp4_local0 = tmp7_input.
|
|
888
|
+
var tmp7_input = decoder.kr(tmp0_desc);
|
|
889
|
+
var tmp8_cached = Companion_getInstance_0().w2p_1;
|
|
890
|
+
if (tmp7_input.as()) {
|
|
891
|
+
tmp4_local0 = tmp7_input.ur(tmp0_desc, 0);
|
|
892
892
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
893
|
-
tmp5_local1 = tmp7_input.
|
|
893
|
+
tmp5_local1 = tmp7_input.mr(tmp0_desc, 1);
|
|
894
894
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
895
|
-
tmp6_local2 = tmp7_input.
|
|
895
|
+
tmp6_local2 = tmp7_input.wr(tmp0_desc, 2, tmp8_cached[2].m1(), tmp6_local2);
|
|
896
896
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
897
897
|
} else
|
|
898
898
|
while (tmp1_flag) {
|
|
899
|
-
tmp2_index = tmp7_input.
|
|
899
|
+
tmp2_index = tmp7_input.bs(tmp0_desc);
|
|
900
900
|
switch (tmp2_index) {
|
|
901
901
|
case -1:
|
|
902
902
|
tmp1_flag = false;
|
|
903
903
|
break;
|
|
904
904
|
case 0:
|
|
905
|
-
tmp4_local0 = tmp7_input.
|
|
905
|
+
tmp4_local0 = tmp7_input.ur(tmp0_desc, 0);
|
|
906
906
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
907
907
|
break;
|
|
908
908
|
case 1:
|
|
909
|
-
tmp5_local1 = tmp7_input.
|
|
909
|
+
tmp5_local1 = tmp7_input.mr(tmp0_desc, 1);
|
|
910
910
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
911
911
|
break;
|
|
912
912
|
case 2:
|
|
913
|
-
tmp6_local2 = tmp7_input.
|
|
913
|
+
tmp6_local2 = tmp7_input.wr(tmp0_desc, 2, tmp8_cached[2].m1(), tmp6_local2);
|
|
914
914
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
915
915
|
break;
|
|
916
916
|
default:
|
|
917
917
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
918
918
|
}
|
|
919
919
|
}
|
|
920
|
-
tmp7_input.
|
|
920
|
+
tmp7_input.lr(tmp0_desc);
|
|
921
921
|
return VersionData_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
922
922
|
};
|
|
923
|
-
protoOf($serializer_0).
|
|
924
|
-
return this.
|
|
923
|
+
protoOf($serializer_0).no = function () {
|
|
924
|
+
return this.x2p_1;
|
|
925
925
|
};
|
|
926
|
-
protoOf($serializer_0).
|
|
927
|
-
var tmp0_cached = Companion_getInstance_0().
|
|
926
|
+
protoOf($serializer_0).vy = function () {
|
|
927
|
+
var tmp0_cached = Companion_getInstance_0().w2p_1;
|
|
928
928
|
// Inline function 'kotlin.arrayOf' call
|
|
929
929
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
930
930
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -938,14 +938,14 @@
|
|
|
938
938
|
}
|
|
939
939
|
function VersionData_init_$Init$(seen0, version, snapshot, snapshotReasons, serializationConstructorMarker, $this) {
|
|
940
940
|
if (!(3 === (3 & seen0))) {
|
|
941
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
941
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().x2p_1);
|
|
942
942
|
}
|
|
943
|
-
$this.
|
|
944
|
-
$this.
|
|
943
|
+
$this.z2p_1 = version;
|
|
944
|
+
$this.a2q_1 = snapshot;
|
|
945
945
|
if (0 === (seen0 & 4))
|
|
946
|
-
$this.
|
|
946
|
+
$this.b2q_1 = emptyList();
|
|
947
947
|
else
|
|
948
|
-
$this.
|
|
948
|
+
$this.b2q_1 = snapshotReasons;
|
|
949
949
|
return $this;
|
|
950
950
|
}
|
|
951
951
|
function VersionData_init_$Create$(seen0, version, snapshot, snapshotReasons, serializationConstructorMarker) {
|
|
@@ -954,17 +954,17 @@
|
|
|
954
954
|
function VersionData(version, snapshot, snapshotReasons) {
|
|
955
955
|
Companion_getInstance_0();
|
|
956
956
|
snapshotReasons = snapshotReasons === VOID ? emptyList() : snapshotReasons;
|
|
957
|
-
this.
|
|
958
|
-
this.
|
|
959
|
-
this.
|
|
957
|
+
this.z2p_1 = version;
|
|
958
|
+
this.a2q_1 = snapshot;
|
|
959
|
+
this.b2q_1 = snapshotReasons;
|
|
960
960
|
}
|
|
961
961
|
protoOf(VersionData).toString = function () {
|
|
962
|
-
return 'VersionData(version=' + this.
|
|
962
|
+
return 'VersionData(version=' + this.z2p_1 + ', snapshot=' + this.a2q_1 + ', snapshotReasons=' + toString_0(this.b2q_1) + ')';
|
|
963
963
|
};
|
|
964
964
|
protoOf(VersionData).hashCode = function () {
|
|
965
|
-
var result = getStringHashCode(this.
|
|
966
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
967
|
-
result = imul(result, 31) + hashCode(this.
|
|
965
|
+
var result = getStringHashCode(this.z2p_1);
|
|
966
|
+
result = imul(result, 31) + getBooleanHashCode(this.a2q_1) | 0;
|
|
967
|
+
result = imul(result, 31) + hashCode(this.b2q_1) | 0;
|
|
968
968
|
return result;
|
|
969
969
|
};
|
|
970
970
|
protoOf(VersionData).equals = function (other) {
|
|
@@ -972,17 +972,17 @@
|
|
|
972
972
|
return true;
|
|
973
973
|
if (!(other instanceof VersionData))
|
|
974
974
|
return false;
|
|
975
|
-
if (!(this.
|
|
975
|
+
if (!(this.z2p_1 === other.z2p_1))
|
|
976
976
|
return false;
|
|
977
|
-
if (!(this.
|
|
977
|
+
if (!(this.a2q_1 === other.a2q_1))
|
|
978
978
|
return false;
|
|
979
|
-
if (!equals(this.
|
|
979
|
+
if (!equals(this.b2q_1, other.b2q_1))
|
|
980
980
|
return false;
|
|
981
981
|
return true;
|
|
982
982
|
};
|
|
983
983
|
function Companion_1() {
|
|
984
984
|
}
|
|
985
|
-
protoOf(Companion_1).
|
|
985
|
+
protoOf(Companion_1).y2c = function () {
|
|
986
986
|
return $serializer_getInstance_1();
|
|
987
987
|
};
|
|
988
988
|
var Companion_instance_4;
|
|
@@ -992,68 +992,68 @@
|
|
|
992
992
|
function $serializer_1() {
|
|
993
993
|
$serializer_instance_1 = this;
|
|
994
994
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.ErrorResponse', this, 3);
|
|
995
|
-
tmp0_serialDesc.
|
|
996
|
-
tmp0_serialDesc.
|
|
997
|
-
tmp0_serialDesc.
|
|
998
|
-
this.
|
|
999
|
-
}
|
|
1000
|
-
protoOf($serializer_1).
|
|
1001
|
-
var tmp0_desc = this.
|
|
1002
|
-
var tmp1_output = encoder.
|
|
1003
|
-
tmp1_output.
|
|
1004
|
-
tmp1_output.
|
|
1005
|
-
tmp1_output.
|
|
1006
|
-
tmp1_output.
|
|
995
|
+
tmp0_serialDesc.ty('status', false);
|
|
996
|
+
tmp0_serialDesc.ty('error', false);
|
|
997
|
+
tmp0_serialDesc.ty('code', false);
|
|
998
|
+
this.c2q_1 = tmp0_serialDesc;
|
|
999
|
+
}
|
|
1000
|
+
protoOf($serializer_1).d2q = function (encoder, value) {
|
|
1001
|
+
var tmp0_desc = this.c2q_1;
|
|
1002
|
+
var tmp1_output = encoder.kr(tmp0_desc);
|
|
1003
|
+
tmp1_output.ys(tmp0_desc, 0, value.e2q_1);
|
|
1004
|
+
tmp1_output.ys(tmp0_desc, 1, value.f2q_1);
|
|
1005
|
+
tmp1_output.ys(tmp0_desc, 2, value.g2q_1);
|
|
1006
|
+
tmp1_output.lr(tmp0_desc);
|
|
1007
1007
|
};
|
|
1008
|
-
protoOf($serializer_1).
|
|
1009
|
-
return this.
|
|
1008
|
+
protoOf($serializer_1).oo = function (encoder, value) {
|
|
1009
|
+
return this.d2q(encoder, value instanceof ErrorResponse ? value : THROW_CCE());
|
|
1010
1010
|
};
|
|
1011
|
-
protoOf($serializer_1).
|
|
1012
|
-
var tmp0_desc = this.
|
|
1011
|
+
protoOf($serializer_1).po = function (decoder) {
|
|
1012
|
+
var tmp0_desc = this.c2q_1;
|
|
1013
1013
|
var tmp1_flag = true;
|
|
1014
1014
|
var tmp2_index = 0;
|
|
1015
1015
|
var tmp3_bitMask0 = 0;
|
|
1016
1016
|
var tmp4_local0 = null;
|
|
1017
1017
|
var tmp5_local1 = null;
|
|
1018
1018
|
var tmp6_local2 = null;
|
|
1019
|
-
var tmp7_input = decoder.
|
|
1020
|
-
if (tmp7_input.
|
|
1021
|
-
tmp4_local0 = tmp7_input.
|
|
1019
|
+
var tmp7_input = decoder.kr(tmp0_desc);
|
|
1020
|
+
if (tmp7_input.as()) {
|
|
1021
|
+
tmp4_local0 = tmp7_input.ur(tmp0_desc, 0);
|
|
1022
1022
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1023
|
-
tmp5_local1 = tmp7_input.
|
|
1023
|
+
tmp5_local1 = tmp7_input.ur(tmp0_desc, 1);
|
|
1024
1024
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1025
|
-
tmp6_local2 = tmp7_input.
|
|
1025
|
+
tmp6_local2 = tmp7_input.ur(tmp0_desc, 2);
|
|
1026
1026
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1027
1027
|
} else
|
|
1028
1028
|
while (tmp1_flag) {
|
|
1029
|
-
tmp2_index = tmp7_input.
|
|
1029
|
+
tmp2_index = tmp7_input.bs(tmp0_desc);
|
|
1030
1030
|
switch (tmp2_index) {
|
|
1031
1031
|
case -1:
|
|
1032
1032
|
tmp1_flag = false;
|
|
1033
1033
|
break;
|
|
1034
1034
|
case 0:
|
|
1035
|
-
tmp4_local0 = tmp7_input.
|
|
1035
|
+
tmp4_local0 = tmp7_input.ur(tmp0_desc, 0);
|
|
1036
1036
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1037
1037
|
break;
|
|
1038
1038
|
case 1:
|
|
1039
|
-
tmp5_local1 = tmp7_input.
|
|
1039
|
+
tmp5_local1 = tmp7_input.ur(tmp0_desc, 1);
|
|
1040
1040
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1041
1041
|
break;
|
|
1042
1042
|
case 2:
|
|
1043
|
-
tmp6_local2 = tmp7_input.
|
|
1043
|
+
tmp6_local2 = tmp7_input.ur(tmp0_desc, 2);
|
|
1044
1044
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1045
1045
|
break;
|
|
1046
1046
|
default:
|
|
1047
1047
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
|
-
tmp7_input.
|
|
1050
|
+
tmp7_input.lr(tmp0_desc);
|
|
1051
1051
|
return ErrorResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1052
1052
|
};
|
|
1053
|
-
protoOf($serializer_1).
|
|
1054
|
-
return this.
|
|
1053
|
+
protoOf($serializer_1).no = function () {
|
|
1054
|
+
return this.c2q_1;
|
|
1055
1055
|
};
|
|
1056
|
-
protoOf($serializer_1).
|
|
1056
|
+
protoOf($serializer_1).vy = function () {
|
|
1057
1057
|
// Inline function 'kotlin.arrayOf' call
|
|
1058
1058
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1059
1059
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1067,28 +1067,28 @@
|
|
|
1067
1067
|
}
|
|
1068
1068
|
function ErrorResponse_init_$Init$(seen0, status, error, code, serializationConstructorMarker, $this) {
|
|
1069
1069
|
if (!(7 === (7 & seen0))) {
|
|
1070
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_1().
|
|
1070
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_1().c2q_1);
|
|
1071
1071
|
}
|
|
1072
|
-
$this.
|
|
1073
|
-
$this.
|
|
1074
|
-
$this.
|
|
1072
|
+
$this.e2q_1 = status;
|
|
1073
|
+
$this.f2q_1 = error;
|
|
1074
|
+
$this.g2q_1 = code;
|
|
1075
1075
|
return $this;
|
|
1076
1076
|
}
|
|
1077
1077
|
function ErrorResponse_init_$Create$(seen0, status, error, code, serializationConstructorMarker) {
|
|
1078
1078
|
return ErrorResponse_init_$Init$(seen0, status, error, code, serializationConstructorMarker, objectCreate(protoOf(ErrorResponse)));
|
|
1079
1079
|
}
|
|
1080
1080
|
function ErrorResponse(status, error, code) {
|
|
1081
|
-
this.
|
|
1082
|
-
this.
|
|
1083
|
-
this.
|
|
1081
|
+
this.e2q_1 = status;
|
|
1082
|
+
this.f2q_1 = error;
|
|
1083
|
+
this.g2q_1 = code;
|
|
1084
1084
|
}
|
|
1085
1085
|
protoOf(ErrorResponse).toString = function () {
|
|
1086
|
-
return 'ErrorResponse(status=' + this.
|
|
1086
|
+
return 'ErrorResponse(status=' + this.e2q_1 + ', error=' + this.f2q_1 + ', code=' + this.g2q_1 + ')';
|
|
1087
1087
|
};
|
|
1088
1088
|
protoOf(ErrorResponse).hashCode = function () {
|
|
1089
|
-
var result = getStringHashCode(this.
|
|
1090
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1091
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1089
|
+
var result = getStringHashCode(this.e2q_1);
|
|
1090
|
+
result = imul(result, 31) + getStringHashCode(this.f2q_1) | 0;
|
|
1091
|
+
result = imul(result, 31) + getStringHashCode(this.g2q_1) | 0;
|
|
1092
1092
|
return result;
|
|
1093
1093
|
};
|
|
1094
1094
|
protoOf(ErrorResponse).equals = function (other) {
|
|
@@ -1096,17 +1096,17 @@
|
|
|
1096
1096
|
return true;
|
|
1097
1097
|
if (!(other instanceof ErrorResponse))
|
|
1098
1098
|
return false;
|
|
1099
|
-
if (!(this.
|
|
1099
|
+
if (!(this.e2q_1 === other.e2q_1))
|
|
1100
1100
|
return false;
|
|
1101
|
-
if (!(this.
|
|
1101
|
+
if (!(this.f2q_1 === other.f2q_1))
|
|
1102
1102
|
return false;
|
|
1103
|
-
if (!(this.
|
|
1103
|
+
if (!(this.g2q_1 === other.g2q_1))
|
|
1104
1104
|
return false;
|
|
1105
1105
|
return true;
|
|
1106
1106
|
};
|
|
1107
1107
|
function Companion_2() {
|
|
1108
1108
|
}
|
|
1109
|
-
protoOf(Companion_2).
|
|
1109
|
+
protoOf(Companion_2).y2c = function () {
|
|
1110
1110
|
return $serializer_getInstance_2();
|
|
1111
1111
|
};
|
|
1112
1112
|
var Companion_instance_5;
|
|
@@ -1116,59 +1116,59 @@
|
|
|
1116
1116
|
function $serializer_2() {
|
|
1117
1117
|
$serializer_instance_2 = this;
|
|
1118
1118
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.TagSuccessResponse', this, 2);
|
|
1119
|
-
tmp0_serialDesc.
|
|
1120
|
-
tmp0_serialDesc.
|
|
1121
|
-
this.
|
|
1122
|
-
}
|
|
1123
|
-
protoOf($serializer_2).
|
|
1124
|
-
var tmp0_desc = this.
|
|
1125
|
-
var tmp1_output = encoder.
|
|
1126
|
-
tmp1_output.
|
|
1127
|
-
tmp1_output.
|
|
1128
|
-
tmp1_output.
|
|
1119
|
+
tmp0_serialDesc.ty('status', false);
|
|
1120
|
+
tmp0_serialDesc.ty('data', false);
|
|
1121
|
+
this.h2q_1 = tmp0_serialDesc;
|
|
1122
|
+
}
|
|
1123
|
+
protoOf($serializer_2).i2q = function (encoder, value) {
|
|
1124
|
+
var tmp0_desc = this.h2q_1;
|
|
1125
|
+
var tmp1_output = encoder.kr(tmp0_desc);
|
|
1126
|
+
tmp1_output.ys(tmp0_desc, 0, value.j2q_1);
|
|
1127
|
+
tmp1_output.at(tmp0_desc, 1, $serializer_getInstance_3(), value.k2q_1);
|
|
1128
|
+
tmp1_output.lr(tmp0_desc);
|
|
1129
1129
|
};
|
|
1130
|
-
protoOf($serializer_2).
|
|
1131
|
-
return this.
|
|
1130
|
+
protoOf($serializer_2).oo = function (encoder, value) {
|
|
1131
|
+
return this.i2q(encoder, value instanceof TagSuccessResponse ? value : THROW_CCE());
|
|
1132
1132
|
};
|
|
1133
|
-
protoOf($serializer_2).
|
|
1134
|
-
var tmp0_desc = this.
|
|
1133
|
+
protoOf($serializer_2).po = function (decoder) {
|
|
1134
|
+
var tmp0_desc = this.h2q_1;
|
|
1135
1135
|
var tmp1_flag = true;
|
|
1136
1136
|
var tmp2_index = 0;
|
|
1137
1137
|
var tmp3_bitMask0 = 0;
|
|
1138
1138
|
var tmp4_local0 = null;
|
|
1139
1139
|
var tmp5_local1 = null;
|
|
1140
|
-
var tmp6_input = decoder.
|
|
1141
|
-
if (tmp6_input.
|
|
1142
|
-
tmp4_local0 = tmp6_input.
|
|
1140
|
+
var tmp6_input = decoder.kr(tmp0_desc);
|
|
1141
|
+
if (tmp6_input.as()) {
|
|
1142
|
+
tmp4_local0 = tmp6_input.ur(tmp0_desc, 0);
|
|
1143
1143
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1144
|
-
tmp5_local1 = tmp6_input.
|
|
1144
|
+
tmp5_local1 = tmp6_input.wr(tmp0_desc, 1, $serializer_getInstance_3(), tmp5_local1);
|
|
1145
1145
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1146
1146
|
} else
|
|
1147
1147
|
while (tmp1_flag) {
|
|
1148
|
-
tmp2_index = tmp6_input.
|
|
1148
|
+
tmp2_index = tmp6_input.bs(tmp0_desc);
|
|
1149
1149
|
switch (tmp2_index) {
|
|
1150
1150
|
case -1:
|
|
1151
1151
|
tmp1_flag = false;
|
|
1152
1152
|
break;
|
|
1153
1153
|
case 0:
|
|
1154
|
-
tmp4_local0 = tmp6_input.
|
|
1154
|
+
tmp4_local0 = tmp6_input.ur(tmp0_desc, 0);
|
|
1155
1155
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1156
1156
|
break;
|
|
1157
1157
|
case 1:
|
|
1158
|
-
tmp5_local1 = tmp6_input.
|
|
1158
|
+
tmp5_local1 = tmp6_input.wr(tmp0_desc, 1, $serializer_getInstance_3(), tmp5_local1);
|
|
1159
1159
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1160
1160
|
break;
|
|
1161
1161
|
default:
|
|
1162
1162
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1163
1163
|
}
|
|
1164
1164
|
}
|
|
1165
|
-
tmp6_input.
|
|
1165
|
+
tmp6_input.lr(tmp0_desc);
|
|
1166
1166
|
return TagSuccessResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1167
1167
|
};
|
|
1168
|
-
protoOf($serializer_2).
|
|
1169
|
-
return this.
|
|
1168
|
+
protoOf($serializer_2).no = function () {
|
|
1169
|
+
return this.h2q_1;
|
|
1170
1170
|
};
|
|
1171
|
-
protoOf($serializer_2).
|
|
1171
|
+
protoOf($serializer_2).vy = function () {
|
|
1172
1172
|
// Inline function 'kotlin.arrayOf' call
|
|
1173
1173
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1174
1174
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1182,25 +1182,25 @@
|
|
|
1182
1182
|
}
|
|
1183
1183
|
function TagSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, $this) {
|
|
1184
1184
|
if (!(3 === (3 & seen0))) {
|
|
1185
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1185
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().h2q_1);
|
|
1186
1186
|
}
|
|
1187
|
-
$this.
|
|
1188
|
-
$this.
|
|
1187
|
+
$this.j2q_1 = status;
|
|
1188
|
+
$this.k2q_1 = data;
|
|
1189
1189
|
return $this;
|
|
1190
1190
|
}
|
|
1191
1191
|
function TagSuccessResponse_init_$Create$(seen0, status, data, serializationConstructorMarker) {
|
|
1192
1192
|
return TagSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, objectCreate(protoOf(TagSuccessResponse)));
|
|
1193
1193
|
}
|
|
1194
1194
|
function TagSuccessResponse(status, data) {
|
|
1195
|
-
this.
|
|
1196
|
-
this.
|
|
1195
|
+
this.j2q_1 = status;
|
|
1196
|
+
this.k2q_1 = data;
|
|
1197
1197
|
}
|
|
1198
1198
|
protoOf(TagSuccessResponse).toString = function () {
|
|
1199
|
-
return 'TagSuccessResponse(status=' + this.
|
|
1199
|
+
return 'TagSuccessResponse(status=' + this.j2q_1 + ', data=' + this.k2q_1.toString() + ')';
|
|
1200
1200
|
};
|
|
1201
1201
|
protoOf(TagSuccessResponse).hashCode = function () {
|
|
1202
|
-
var result = getStringHashCode(this.
|
|
1203
|
-
result = imul(result, 31) + this.
|
|
1202
|
+
var result = getStringHashCode(this.j2q_1);
|
|
1203
|
+
result = imul(result, 31) + this.k2q_1.hashCode() | 0;
|
|
1204
1204
|
return result;
|
|
1205
1205
|
};
|
|
1206
1206
|
protoOf(TagSuccessResponse).equals = function (other) {
|
|
@@ -1208,9 +1208,9 @@
|
|
|
1208
1208
|
return true;
|
|
1209
1209
|
if (!(other instanceof TagSuccessResponse))
|
|
1210
1210
|
return false;
|
|
1211
|
-
if (!(this.
|
|
1211
|
+
if (!(this.j2q_1 === other.j2q_1))
|
|
1212
1212
|
return false;
|
|
1213
|
-
if (!this.
|
|
1213
|
+
if (!this.k2q_1.equals(other.k2q_1))
|
|
1214
1214
|
return false;
|
|
1215
1215
|
return true;
|
|
1216
1216
|
};
|
|
@@ -1223,50 +1223,50 @@
|
|
|
1223
1223
|
function $serializer_3() {
|
|
1224
1224
|
$serializer_instance_3 = this;
|
|
1225
1225
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.TagData', this, 1);
|
|
1226
|
-
tmp0_serialDesc.
|
|
1227
|
-
this.
|
|
1228
|
-
}
|
|
1229
|
-
protoOf($serializer_3).
|
|
1230
|
-
var tmp0_desc = this.
|
|
1231
|
-
var tmp1_output = encoder.
|
|
1232
|
-
tmp1_output.
|
|
1233
|
-
tmp1_output.
|
|
1226
|
+
tmp0_serialDesc.ty('tag', false);
|
|
1227
|
+
this.l2q_1 = tmp0_serialDesc;
|
|
1228
|
+
}
|
|
1229
|
+
protoOf($serializer_3).m2q = function (encoder, value) {
|
|
1230
|
+
var tmp0_desc = this.l2q_1;
|
|
1231
|
+
var tmp1_output = encoder.kr(tmp0_desc);
|
|
1232
|
+
tmp1_output.ys(tmp0_desc, 0, value.n2q_1);
|
|
1233
|
+
tmp1_output.lr(tmp0_desc);
|
|
1234
1234
|
};
|
|
1235
|
-
protoOf($serializer_3).
|
|
1236
|
-
return this.
|
|
1235
|
+
protoOf($serializer_3).oo = function (encoder, value) {
|
|
1236
|
+
return this.m2q(encoder, value instanceof TagData ? value : THROW_CCE());
|
|
1237
1237
|
};
|
|
1238
|
-
protoOf($serializer_3).
|
|
1239
|
-
var tmp0_desc = this.
|
|
1238
|
+
protoOf($serializer_3).po = function (decoder) {
|
|
1239
|
+
var tmp0_desc = this.l2q_1;
|
|
1240
1240
|
var tmp1_flag = true;
|
|
1241
1241
|
var tmp2_index = 0;
|
|
1242
1242
|
var tmp3_bitMask0 = 0;
|
|
1243
1243
|
var tmp4_local0 = null;
|
|
1244
|
-
var tmp5_input = decoder.
|
|
1245
|
-
if (tmp5_input.
|
|
1246
|
-
tmp4_local0 = tmp5_input.
|
|
1244
|
+
var tmp5_input = decoder.kr(tmp0_desc);
|
|
1245
|
+
if (tmp5_input.as()) {
|
|
1246
|
+
tmp4_local0 = tmp5_input.ur(tmp0_desc, 0);
|
|
1247
1247
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1248
1248
|
} else
|
|
1249
1249
|
while (tmp1_flag) {
|
|
1250
|
-
tmp2_index = tmp5_input.
|
|
1250
|
+
tmp2_index = tmp5_input.bs(tmp0_desc);
|
|
1251
1251
|
switch (tmp2_index) {
|
|
1252
1252
|
case -1:
|
|
1253
1253
|
tmp1_flag = false;
|
|
1254
1254
|
break;
|
|
1255
1255
|
case 0:
|
|
1256
|
-
tmp4_local0 = tmp5_input.
|
|
1256
|
+
tmp4_local0 = tmp5_input.ur(tmp0_desc, 0);
|
|
1257
1257
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1258
1258
|
break;
|
|
1259
1259
|
default:
|
|
1260
1260
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1261
1261
|
}
|
|
1262
1262
|
}
|
|
1263
|
-
tmp5_input.
|
|
1263
|
+
tmp5_input.lr(tmp0_desc);
|
|
1264
1264
|
return TagData_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
1265
1265
|
};
|
|
1266
|
-
protoOf($serializer_3).
|
|
1267
|
-
return this.
|
|
1266
|
+
protoOf($serializer_3).no = function () {
|
|
1267
|
+
return this.l2q_1;
|
|
1268
1268
|
};
|
|
1269
|
-
protoOf($serializer_3).
|
|
1269
|
+
protoOf($serializer_3).vy = function () {
|
|
1270
1270
|
// Inline function 'kotlin.arrayOf' call
|
|
1271
1271
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1272
1272
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1280,40 +1280,40 @@
|
|
|
1280
1280
|
}
|
|
1281
1281
|
function TagData_init_$Init$(seen0, tag, serializationConstructorMarker, $this) {
|
|
1282
1282
|
if (!(1 === (1 & seen0))) {
|
|
1283
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_3().
|
|
1283
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_3().l2q_1);
|
|
1284
1284
|
}
|
|
1285
|
-
$this.
|
|
1285
|
+
$this.n2q_1 = tag;
|
|
1286
1286
|
return $this;
|
|
1287
1287
|
}
|
|
1288
1288
|
function TagData_init_$Create$(seen0, tag, serializationConstructorMarker) {
|
|
1289
1289
|
return TagData_init_$Init$(seen0, tag, serializationConstructorMarker, objectCreate(protoOf(TagData)));
|
|
1290
1290
|
}
|
|
1291
1291
|
function TagData(tag) {
|
|
1292
|
-
this.
|
|
1292
|
+
this.n2q_1 = tag;
|
|
1293
1293
|
}
|
|
1294
1294
|
protoOf(TagData).toString = function () {
|
|
1295
|
-
return 'TagData(tag=' + this.
|
|
1295
|
+
return 'TagData(tag=' + this.n2q_1 + ')';
|
|
1296
1296
|
};
|
|
1297
1297
|
protoOf(TagData).hashCode = function () {
|
|
1298
|
-
return getStringHashCode(this.
|
|
1298
|
+
return getStringHashCode(this.n2q_1);
|
|
1299
1299
|
};
|
|
1300
1300
|
protoOf(TagData).equals = function (other) {
|
|
1301
1301
|
if (this === other)
|
|
1302
1302
|
return true;
|
|
1303
1303
|
if (!(other instanceof TagData))
|
|
1304
1304
|
return false;
|
|
1305
|
-
if (!(this.
|
|
1305
|
+
if (!(this.n2q_1 === other.n2q_1))
|
|
1306
1306
|
return false;
|
|
1307
1307
|
return true;
|
|
1308
1308
|
};
|
|
1309
1309
|
function versionSuccessResponse(data) {
|
|
1310
|
-
return Default_getInstance().
|
|
1310
|
+
return Default_getInstance().n2a(Companion_instance_2.y2c(), new VersionSuccessResponse('success', data));
|
|
1311
1311
|
}
|
|
1312
1312
|
function tagSuccessResponse(data) {
|
|
1313
|
-
return Default_getInstance().
|
|
1313
|
+
return Default_getInstance().n2a(Companion_instance_5.y2c(), new TagSuccessResponse('success', data));
|
|
1314
1314
|
}
|
|
1315
1315
|
function errorResponse(message, code) {
|
|
1316
|
-
return Default_getInstance().
|
|
1316
|
+
return Default_getInstance().n2a(Companion_instance_4.y2c(), new ErrorResponse('error', message, code));
|
|
1317
1317
|
}
|
|
1318
1318
|
function main_0(args) {
|
|
1319
1319
|
return main(cli(), platformArgCorrection(args));
|
|
@@ -1326,11 +1326,11 @@
|
|
|
1326
1326
|
}
|
|
1327
1327
|
function _get_gitRepoArgument__zxde8_0($this) {
|
|
1328
1328
|
var tmp = KProperty1;
|
|
1329
|
-
return $this.
|
|
1329
|
+
return $this.d2r_1.s1m($this, getPropertyCallableRef('gitRepoArgument', 1, tmp, Tag$_get_gitRepoArgument_$ref_dketaj_0(), null));
|
|
1330
1330
|
}
|
|
1331
1331
|
function _get_gitRepoOption__rk7ta0_0($this) {
|
|
1332
1332
|
var tmp = KProperty1;
|
|
1333
|
-
return $this.
|
|
1333
|
+
return $this.e2r_1.s1m($this, getPropertyCallableRef('gitRepoOption', 1, tmp, Tag$_get_gitRepoOption_$ref_10iywz_0(), null));
|
|
1334
1334
|
}
|
|
1335
1335
|
function _get_workingDirectory__eyfbj_0($this) {
|
|
1336
1336
|
var tmp0_elvis_lhs = _get_gitRepoArgument__zxde8_0($this);
|
|
@@ -1345,30 +1345,30 @@
|
|
|
1345
1345
|
}
|
|
1346
1346
|
function _get_releaseBranch__pqrgbs_0($this) {
|
|
1347
1347
|
var tmp = KProperty1;
|
|
1348
|
-
return $this.
|
|
1348
|
+
return $this.f2r_1.s1m($this, getPropertyCallableRef('releaseBranch', 1, tmp, Tag$_get_releaseBranch_$ref_rq8rmb_0(), null));
|
|
1349
1349
|
}
|
|
1350
1350
|
function _get_version__2bx7w9($this) {
|
|
1351
1351
|
var tmp = KProperty1;
|
|
1352
|
-
return $this.
|
|
1352
|
+
return $this.g2r_1.s1m($this, getPropertyCallableRef('version', 1, tmp, Tag$_get_version_$ref_p7wb9e_0(), null));
|
|
1353
1353
|
}
|
|
1354
1354
|
function _get_userName__tupjmd($this) {
|
|
1355
1355
|
var tmp = KProperty1;
|
|
1356
|
-
return $this.
|
|
1356
|
+
return $this.h2r_1.s1m($this, getPropertyCallableRef('userName', 1, tmp, Tag$_get_userName_$ref_kslo5u_0(), null));
|
|
1357
1357
|
}
|
|
1358
1358
|
function _get_userEmail__21hfkw($this) {
|
|
1359
1359
|
var tmp = KProperty1;
|
|
1360
|
-
return $this.
|
|
1360
|
+
return $this.i2r_1.s1m($this, getPropertyCallableRef('userEmail', 1, tmp, Tag$_get_userEmail_$ref_vl09cr_0(), null));
|
|
1361
1361
|
}
|
|
1362
1362
|
function _get_warningsAsErrors__7mpwfd($this) {
|
|
1363
1363
|
var tmp = KProperty1;
|
|
1364
|
-
return $this.
|
|
1364
|
+
return $this.j2r_1.s1m($this, getPropertyCallableRef('warningsAsErrors', 1, tmp, Tag$_get_warningsAsErrors_$ref_gj8a6o_0(), null));
|
|
1365
1365
|
}
|
|
1366
1366
|
function _get_format__qlarck_0($this) {
|
|
1367
1367
|
var tmp = KProperty1;
|
|
1368
|
-
return $this.
|
|
1368
|
+
return $this.k2r_1.s1m($this, getPropertyCallableRef('format', 1, tmp, Tag$_get_format_$ref_i96vgt_0(), null));
|
|
1369
1369
|
}
|
|
1370
1370
|
function Tag$lambda($this$context) {
|
|
1371
|
-
$this$context.
|
|
1371
|
+
$this$context.y1c([new ConfigFileSource($this$context.u1c_1)]);
|
|
1372
1372
|
return Unit_instance;
|
|
1373
1373
|
}
|
|
1374
1374
|
function Tag$_get_gitRepoArgument_$ref_dketaj() {
|
|
@@ -1457,31 +1457,31 @@
|
|
|
1457
1457
|
var tmp = this;
|
|
1458
1458
|
var tmp_0 = optional(argument(this, 'git-repo'));
|
|
1459
1459
|
var tmp_1 = KProperty1;
|
|
1460
|
-
tmp.
|
|
1460
|
+
tmp.d2r_1 = tmp_0.y1l(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, Tag$_get_gitRepoArgument_$ref_dketaj(), null));
|
|
1461
1461
|
var tmp_2 = this;
|
|
1462
1462
|
var tmp_3 = option(this, ['--git-repo'], VOID, VOID, VOID, 'PWD');
|
|
1463
1463
|
var tmp_4 = KProperty1;
|
|
1464
|
-
tmp_2.
|
|
1464
|
+
tmp_2.e2r_1 = tmp_3.c1n(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, Tag$_get_gitRepoOption_$ref_10iywz(), null));
|
|
1465
1465
|
var tmp_5 = this;
|
|
1466
1466
|
var tmp_6 = required(option(this, []));
|
|
1467
1467
|
var tmp_7 = KProperty1;
|
|
1468
|
-
tmp_5.
|
|
1468
|
+
tmp_5.f2r_1 = tmp_6.c1n(this, getPropertyCallableRef('releaseBranch', 1, tmp_7, Tag$_get_releaseBranch_$ref_rq8rmb(), null));
|
|
1469
1469
|
var tmp_8 = this;
|
|
1470
1470
|
var tmp_9 = required(option(this, []));
|
|
1471
1471
|
var tmp_10 = KProperty1;
|
|
1472
|
-
tmp_8.
|
|
1472
|
+
tmp_8.g2r_1 = tmp_9.c1n(this, getPropertyCallableRef('version', 1, tmp_10, Tag$_get_version_$ref_p7wb9e(), null));
|
|
1473
1473
|
var tmp_11 = this;
|
|
1474
1474
|
var tmp_12 = option(this, []);
|
|
1475
1475
|
var tmp_13 = KProperty1;
|
|
1476
|
-
tmp_11.
|
|
1476
|
+
tmp_11.h2r_1 = tmp_12.c1n(this, getPropertyCallableRef('userName', 1, tmp_13, Tag$_get_userName_$ref_kslo5u(), null));
|
|
1477
1477
|
var tmp_14 = this;
|
|
1478
1478
|
var tmp_15 = option(this, []);
|
|
1479
1479
|
var tmp_16 = KProperty1;
|
|
1480
|
-
tmp_14.
|
|
1480
|
+
tmp_14.i2r_1 = tmp_15.c1n(this, getPropertyCallableRef('userEmail', 1, tmp_16, Tag$_get_userEmail_$ref_vl09cr(), null));
|
|
1481
1481
|
var tmp_17 = this;
|
|
1482
1482
|
var tmp_18 = default_0(boolean(option(this, [])), false);
|
|
1483
1483
|
var tmp_19 = KProperty1;
|
|
1484
|
-
tmp_17.
|
|
1484
|
+
tmp_17.j2r_1 = tmp_18.c1n(this, getPropertyCallableRef('warningsAsErrors', 1, tmp_19, Tag$_get_warningsAsErrors_$ref_gj8a6o(), null));
|
|
1485
1485
|
var tmp_20 = this;
|
|
1486
1486
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
1487
1487
|
var this_0 = option(this, ['--format'], 'Output format: text (default) or json');
|
|
@@ -1504,18 +1504,18 @@
|
|
|
1504
1504
|
var tmp$ret$0 = choice(this_0, destination, VOID, true);
|
|
1505
1505
|
var tmp_21 = default_0(tmp$ret$0, OutputFormat_TEXT_getInstance());
|
|
1506
1506
|
var tmp_22 = KProperty1;
|
|
1507
|
-
tmp_20.
|
|
1507
|
+
tmp_20.k2r_1 = tmp_21.c1n(this, getPropertyCallableRef('format', 1, tmp_22, Tag$_get_format_$ref_i96vgt(), null));
|
|
1508
1508
|
}
|
|
1509
|
-
protoOf(Tag).
|
|
1509
|
+
protoOf(Tag).r1d = function () {
|
|
1510
1510
|
// Inline function 'kotlin.let' call
|
|
1511
1511
|
var it = tag(new TaggerCore(new GitAdapter(_get_workingDirectory__eyfbj_0(this))), _get_version__2bx7w9(this), _get_releaseBranch__pqrgbs_0(this), _get_userName__tupjmd(this), _get_userEmail__21hfkw(this));
|
|
1512
1512
|
if (equals(it, Success_getInstance())) {
|
|
1513
1513
|
switch (_get_format__qlarck_0(this).y2_1) {
|
|
1514
1514
|
case 1:
|
|
1515
|
-
this.
|
|
1515
|
+
this.e1c(tagSuccessResponse(new TagData(_get_version__2bx7w9(this))));
|
|
1516
1516
|
break;
|
|
1517
1517
|
case 0:
|
|
1518
|
-
this.
|
|
1518
|
+
this.e1c('Success!');
|
|
1519
1519
|
break;
|
|
1520
1520
|
default:
|
|
1521
1521
|
noWhenBranchMatchedException();
|
|
@@ -1525,14 +1525,14 @@
|
|
|
1525
1525
|
if (it instanceof Error_0) {
|
|
1526
1526
|
switch (_get_format__qlarck_0(this).y2_1) {
|
|
1527
1527
|
case 1:
|
|
1528
|
-
this.
|
|
1528
|
+
this.e1c(errorResponse(it.co_1, 'TAG_ERROR'));
|
|
1529
1529
|
var tmp3_statusCode = _get_warningsAsErrors__7mpwfd(this) ? 1 : 0;
|
|
1530
1530
|
throw new CliktError('', VOID, tmp3_statusCode, false);
|
|
1531
1531
|
case 0:
|
|
1532
1532
|
if (_get_warningsAsErrors__7mpwfd(this)) {
|
|
1533
|
-
throw new CliktError(it.
|
|
1533
|
+
throw new CliktError(it.co_1);
|
|
1534
1534
|
} else {
|
|
1535
|
-
this.
|
|
1535
|
+
this.e1c(it.co_1, VOID, true);
|
|
1536
1536
|
}
|
|
1537
1537
|
|
|
1538
1538
|
break;
|
|
@@ -1547,12 +1547,12 @@
|
|
|
1547
1547
|
};
|
|
1548
1548
|
function _get_quiet__c6dzoj($this) {
|
|
1549
1549
|
var tmp = KProperty1;
|
|
1550
|
-
return $this.
|
|
1550
|
+
return $this.a2s_1.s1m($this, getPropertyCallableRef('quiet', 1, tmp, Tagger$_get_quiet_$ref_s522ri_0(), null));
|
|
1551
1551
|
}
|
|
1552
1552
|
function Tagger$lambda($version, $this) {
|
|
1553
1553
|
return function ($this$eagerOption) {
|
|
1554
1554
|
var it = $version;
|
|
1555
|
-
var tmp$ret$0 = $this.
|
|
1555
|
+
var tmp$ret$0 = $this.x18_1 + ' version ' + it;
|
|
1556
1556
|
throw new PrintMessage(tmp$ret$0);
|
|
1557
1557
|
};
|
|
1558
1558
|
}
|
|
@@ -1569,29 +1569,29 @@
|
|
|
1569
1569
|
function Tagger() {
|
|
1570
1570
|
CliktCommand.call(this);
|
|
1571
1571
|
// Inline function 'com.github.ajalt.clikt.parameters.options.versionOption' call
|
|
1572
|
-
var version = Versions_instance.
|
|
1572
|
+
var version = Versions_instance.y2n_1;
|
|
1573
1573
|
var help = 'Show the version and exit';
|
|
1574
1574
|
var names = setOf('--version');
|
|
1575
1575
|
eagerOption(this, names, help, VOID, VOID, VOID, Tagger$lambda(version, this));
|
|
1576
1576
|
var tmp = this;
|
|
1577
1577
|
var tmp_0 = flag(option(this, ['--quiet', '-q'], 'Suppress welcome message. Version goes to stdout, diagnostics to stderr (safe for: VERSION=$(tagger -q ...))'), [], false);
|
|
1578
1578
|
var tmp_1 = KProperty1;
|
|
1579
|
-
tmp.
|
|
1579
|
+
tmp.a2s_1 = tmp_0.c1n(this, getPropertyCallableRef('quiet', 1, tmp_1, Tagger$_get_quiet_$ref_s522ri(), null));
|
|
1580
1580
|
}
|
|
1581
|
-
protoOf(Tagger).
|
|
1581
|
+
protoOf(Tagger).w1a = function (context) {
|
|
1582
1582
|
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 is appended when HEAD is not yet tagged with the calculated version.\n After 'tagger tag', subsequent calculate-version returns bare version.\n\n Snapshot reasons (on stderr) explain why -SNAPSHOT was added:\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";
|
|
1583
1583
|
};
|
|
1584
|
-
protoOf(Tagger).
|
|
1585
|
-
if (!_get_quiet__c6dzoj(this) && this.
|
|
1586
|
-
this.
|
|
1584
|
+
protoOf(Tagger).r1d = function () {
|
|
1585
|
+
if (!_get_quiet__c6dzoj(this) && this.m19().z1c() == null) {
|
|
1586
|
+
this.e1c('Welcome to Tagger CLI.');
|
|
1587
1587
|
}
|
|
1588
1588
|
};
|
|
1589
1589
|
//region block: post-declaration
|
|
1590
|
-
protoOf($serializer).
|
|
1591
|
-
protoOf($serializer_0).
|
|
1592
|
-
protoOf($serializer_1).
|
|
1593
|
-
protoOf($serializer_2).
|
|
1594
|
-
protoOf($serializer_3).
|
|
1590
|
+
protoOf($serializer).wy = typeParametersSerializers;
|
|
1591
|
+
protoOf($serializer_0).wy = typeParametersSerializers;
|
|
1592
|
+
protoOf($serializer_1).wy = typeParametersSerializers;
|
|
1593
|
+
protoOf($serializer_2).wy = typeParametersSerializers;
|
|
1594
|
+
protoOf($serializer_3).wy = typeParametersSerializers;
|
|
1595
1595
|
//endregion
|
|
1596
1596
|
//region block: init
|
|
1597
1597
|
Versions_instance = new Versions();
|