git-semver-tagger 1.10.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/clikt-clikt-mordant.js +77 -77
- package/kotlin/clikt-clikt.js +1283 -1283
- package/kotlin/colormath-root-colormath.js +406 -406
- package/kotlin/command-line-tools-tagger-cli.js +217 -208
- package/kotlin/command-line-tools-tagger-cli.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +6 -6
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1168 -1168
- package/kotlin/mordant-mordant.js +1097 -1097
- package/kotlin/tools-tagger-json.js +79 -59
- package/kotlin/tools-tagger-json.js.map +1 -1
- package/package.json +1 -1
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
initMetadataForClass(Tagger, 'Tagger', Tagger, CliktCommand);
|
|
122
122
|
//endregion
|
|
123
123
|
function Versions() {
|
|
124
|
-
this.
|
|
124
|
+
this.a2o_1 = '1.11.0';
|
|
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.q2o_1.u1m($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.r2o_1.u1m($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,57 +164,66 @@
|
|
|
164
164
|
}
|
|
165
165
|
function _get_implicitPatch__bjk4pa($this) {
|
|
166
166
|
var tmp = KProperty1;
|
|
167
|
-
return $this.
|
|
167
|
+
return $this.s2o_1.u1m($this, getPropertyCallableRef('implicitPatch', 1, tmp, CalculateVersion$_get_implicitPatch_$ref_8lm4hh_0(), null));
|
|
168
168
|
}
|
|
169
169
|
function _get_disableDetachedDeprecated__wab4kc($this) {
|
|
170
170
|
var tmp = KProperty1;
|
|
171
|
-
return $this.
|
|
171
|
+
return $this.t2o_1.u1m($this, getPropertyCallableRef('disableDetachedDeprecated', 1, tmp, CalculateVersion$_get_disableDetachedDeprecated_$ref_ej45b3_0(), null));
|
|
172
172
|
}
|
|
173
173
|
function _get_allowDetachedHead__iyebhm($this) {
|
|
174
174
|
var tmp = KProperty1;
|
|
175
|
-
return $this.
|
|
175
|
+
return $this.u2o_1.u1m($this, getPropertyCallableRef('allowDetachedHead', 1, tmp, CalculateVersion$_get_allowDetachedHead_$ref_f6r7al_0(), null));
|
|
176
176
|
}
|
|
177
177
|
function _get_disableDetached__ys8kbb($this) {
|
|
178
|
-
var
|
|
179
|
-
|
|
178
|
+
var tmp0_safe_receiver = _get_allowDetachedHead__iyebhm($this);
|
|
179
|
+
var tmp;
|
|
180
|
+
if (tmp0_safe_receiver == null) {
|
|
181
|
+
tmp = null;
|
|
182
|
+
} else {
|
|
183
|
+
// Inline function 'kotlin.let' call
|
|
184
|
+
tmp = !tmp0_safe_receiver;
|
|
185
|
+
}
|
|
186
|
+
var tmp1_elvis_lhs = tmp;
|
|
187
|
+
var tmp2_elvis_lhs = tmp1_elvis_lhs == null ? _get_disableDetachedDeprecated__wab4kc($this) : tmp1_elvis_lhs;
|
|
188
|
+
return tmp2_elvis_lhs == null ? true : tmp2_elvis_lhs;
|
|
180
189
|
}
|
|
181
190
|
function _get_forceSnapshot__vb3h7m($this) {
|
|
182
191
|
var tmp = KProperty1;
|
|
183
|
-
return $this.
|
|
192
|
+
return $this.v2o_1.u1m($this, getPropertyCallableRef('forceSnapshot', 1, tmp, CalculateVersion$_get_forceSnapshot_$ref_8rl68v_0(), null));
|
|
184
193
|
}
|
|
185
194
|
function _get_releaseBranch__pqrgbs($this) {
|
|
186
195
|
var tmp = KProperty1;
|
|
187
|
-
return $this.
|
|
196
|
+
return $this.w2o_1.u1m($this, getPropertyCallableRef('releaseBranch', 1, tmp, CalculateVersion$_get_releaseBranch_$ref_3xh47v_0(), null));
|
|
188
197
|
}
|
|
189
198
|
function _get_format__qlarck($this) {
|
|
190
199
|
var tmp = KProperty1;
|
|
191
|
-
return $this.
|
|
200
|
+
return $this.x2o_1.u1m($this, getPropertyCallableRef('format', 1, tmp, CalculateVersion$_get_format_$ref_clhcb9_0(), null));
|
|
192
201
|
}
|
|
193
202
|
function _get_majorRegex__5j6ypp($this) {
|
|
194
203
|
var tmp = KProperty1;
|
|
195
|
-
return $this.
|
|
204
|
+
return $this.y2o_1.u1m($this, getPropertyCallableRef('majorRegex', 1, tmp, CalculateVersion$_get_majorRegex_$ref_erugf6_0(), null));
|
|
196
205
|
}
|
|
197
206
|
function _get_minorRegex__20z96h($this) {
|
|
198
207
|
var tmp = KProperty1;
|
|
199
|
-
return $this.
|
|
208
|
+
return $this.z2o_1.u1m($this, getPropertyCallableRef('minorRegex', 1, tmp, CalculateVersion$_get_minorRegex_$ref_u1fzja_0(), null));
|
|
200
209
|
}
|
|
201
210
|
function _get_patchRegex__mtlu2c($this) {
|
|
202
211
|
var tmp = KProperty1;
|
|
203
|
-
return $this.
|
|
212
|
+
return $this.a2p_1.u1m($this, getPropertyCallableRef('patchRegex', 1, tmp, CalculateVersion$_get_patchRegex_$ref_124637_0(), null));
|
|
204
213
|
}
|
|
205
214
|
function _get_noneRegex__1tdbgi($this) {
|
|
206
215
|
var tmp = KProperty1;
|
|
207
|
-
return $this.
|
|
216
|
+
return $this.b2p_1.u1m($this, getPropertyCallableRef('noneRegex', 1, tmp, CalculateVersion$_get_noneRegex_$ref_vcaxfl_0(), null));
|
|
208
217
|
}
|
|
209
218
|
function _get_versionRegex__7su5ss($this) {
|
|
210
219
|
var tmp = KProperty1;
|
|
211
|
-
return $this.
|
|
220
|
+
return $this.c2p_1.u1m($this, getPropertyCallableRef('versionRegex', 1, tmp, CalculateVersion$_get_versionRegex_$ref_f466m5_0(), null));
|
|
212
221
|
}
|
|
213
222
|
function output($this, message, errorMessage) {
|
|
214
|
-
$this.
|
|
223
|
+
$this.g1c(message);
|
|
215
224
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
216
225
|
if (!errorMessage.p()) {
|
|
217
|
-
$this.
|
|
226
|
+
$this.g1c(errorMessage, VOID, true);
|
|
218
227
|
}
|
|
219
228
|
}
|
|
220
229
|
function outputJson($this, version, snapshotReasons) {
|
|
@@ -229,7 +238,7 @@
|
|
|
229
238
|
destination.v(tmp$ret$2);
|
|
230
239
|
}
|
|
231
240
|
var jsonOutput = versionSuccessResponse(new VersionData(version, isSnapshot, destination));
|
|
232
|
-
$this.
|
|
241
|
+
$this.g1c(jsonOutput);
|
|
233
242
|
}
|
|
234
243
|
function versionRegex($this) {
|
|
235
244
|
var tmp = Regex_init_$Create$(_get_noneRegex__1tdbgi($this), RegexOption_IGNORE_CASE_getInstance());
|
|
@@ -247,7 +256,7 @@
|
|
|
247
256
|
return new VersionRegex(tmp, tmp_0, tmp_1, tmp_2, tmp_3);
|
|
248
257
|
}
|
|
249
258
|
function CalculateVersion$lambda($this$context) {
|
|
250
|
-
$this$context.
|
|
259
|
+
$this$context.a1d([new ConfigFileSource($this$context.w1c_1)]);
|
|
251
260
|
return Unit_instance;
|
|
252
261
|
}
|
|
253
262
|
function CalculateVersion$_get_gitRepoArgument_$ref_ekksr7() {
|
|
@@ -377,7 +386,7 @@
|
|
|
377
386
|
// Inline function 'com.github.ajalt.clikt.parameters.options.OptionTransformContext.require' call
|
|
378
387
|
if (!$tmp4_check_this.jo(it)) {
|
|
379
388
|
var tmp$ret$3 = $message;
|
|
380
|
-
$this$copy.
|
|
389
|
+
$this$copy.d1m(tmp$ret$3);
|
|
381
390
|
}
|
|
382
391
|
tmp = Unit_instance;
|
|
383
392
|
}
|
|
@@ -400,31 +409,31 @@
|
|
|
400
409
|
var tmp = this;
|
|
401
410
|
var tmp_0 = optional(argument(this, 'git-repo'));
|
|
402
411
|
var tmp_1 = KProperty1;
|
|
403
|
-
tmp.
|
|
412
|
+
tmp.q2o_1 = tmp_0.a1m(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, CalculateVersion$_get_gitRepoArgument_$ref_ekksr7(), null));
|
|
404
413
|
var tmp_2 = this;
|
|
405
414
|
var tmp_3 = option(this, ['--git-repo'], VOID, VOID, VOID, 'PWD');
|
|
406
415
|
var tmp_4 = KProperty1;
|
|
407
|
-
tmp_2.
|
|
416
|
+
tmp_2.r2o_1 = tmp_3.e1n(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, CalculateVersion$_get_gitRepoOption_$ref_ms8ohh(), null));
|
|
408
417
|
var tmp_5 = this;
|
|
409
418
|
var tmp_6 = default_0(boolean(option(this, [])), true);
|
|
410
419
|
var tmp_7 = KProperty1;
|
|
411
|
-
tmp_5.
|
|
420
|
+
tmp_5.s2o_1 = tmp_6.e1n(this, getPropertyCallableRef('implicitPatch', 1, tmp_7, CalculateVersion$_get_implicitPatch_$ref_8lm4hh(), null));
|
|
412
421
|
var tmp_8 = this;
|
|
413
422
|
var tmp_9 = boolean(option(this, ['--disable-detached'], VOID, VOID, true));
|
|
414
423
|
var tmp_10 = KProperty1;
|
|
415
|
-
tmp_8.
|
|
424
|
+
tmp_8.t2o_1 = tmp_9.e1n(this, getPropertyCallableRef('disableDetachedDeprecated', 1, tmp_10, CalculateVersion$_get_disableDetachedDeprecated_$ref_ej45b3(), null));
|
|
416
425
|
var tmp_11 = this;
|
|
417
|
-
var tmp_12 =
|
|
426
|
+
var tmp_12 = boolean(option(this, ['--allow-detached-head']));
|
|
418
427
|
var tmp_13 = KProperty1;
|
|
419
|
-
tmp_11.
|
|
428
|
+
tmp_11.u2o_1 = tmp_12.e1n(this, getPropertyCallableRef('allowDetachedHead', 1, tmp_13, CalculateVersion$_get_allowDetachedHead_$ref_f6r7al(), null));
|
|
420
429
|
var tmp_14 = this;
|
|
421
430
|
var tmp_15 = default_0(boolean(option(this, [])), false);
|
|
422
431
|
var tmp_16 = KProperty1;
|
|
423
|
-
tmp_14.
|
|
432
|
+
tmp_14.v2o_1 = tmp_15.e1n(this, getPropertyCallableRef('forceSnapshot', 1, tmp_16, CalculateVersion$_get_forceSnapshot_$ref_8rl68v(), null));
|
|
424
433
|
var tmp_17 = this;
|
|
425
434
|
var tmp_18 = option(this, []);
|
|
426
435
|
var tmp_19 = KProperty1;
|
|
427
|
-
tmp_17.
|
|
436
|
+
tmp_17.w2o_1 = tmp_18.e1n(this, getPropertyCallableRef('releaseBranch', 1, tmp_19, CalculateVersion$_get_releaseBranch_$ref_3xh47v(), null));
|
|
428
437
|
var tmp_20 = this;
|
|
429
438
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
430
439
|
var this_0 = option(this, ['--format'], 'Output format (default: text). Use json for structured data with version, snapshot status, and diagnostic flags.');
|
|
@@ -447,37 +456,37 @@
|
|
|
447
456
|
var tmp$ret$0 = choice(this_0, destination, VOID, true);
|
|
448
457
|
var tmp_21 = default_0(tmp$ret$0, OutputFormat_TEXT_getInstance());
|
|
449
458
|
var tmp_22 = KProperty1;
|
|
450
|
-
tmp_20.
|
|
459
|
+
tmp_20.x2o_1 = tmp_21.e1n(this, getPropertyCallableRef('format', 1, tmp_22, CalculateVersion$_get_format_$ref_clhcb9(), null));
|
|
451
460
|
var tmp_23 = this;
|
|
452
461
|
var tmp_24 = default_0(option(this, []), Defaults_getInstance().ho_1.tb_1);
|
|
453
462
|
var tmp_25 = KProperty1;
|
|
454
|
-
tmp_23.
|
|
463
|
+
tmp_23.y2o_1 = tmp_24.e1n(this, getPropertyCallableRef('majorRegex', 1, tmp_25, CalculateVersion$_get_majorRegex_$ref_erugf6(), null));
|
|
455
464
|
var tmp_26 = this;
|
|
456
465
|
var tmp_27 = default_0(option(this, []), Defaults_getInstance().go_1.tb_1);
|
|
457
466
|
var tmp_28 = KProperty1;
|
|
458
|
-
tmp_26.
|
|
467
|
+
tmp_26.z2o_1 = tmp_27.e1n(this, getPropertyCallableRef('minorRegex', 1, tmp_28, CalculateVersion$_get_minorRegex_$ref_u1fzja(), null));
|
|
459
468
|
var tmp_29 = this;
|
|
460
469
|
var tmp_30 = default_0(option(this, []), Defaults_getInstance().fo_1.tb_1);
|
|
461
470
|
var tmp_31 = KProperty1;
|
|
462
|
-
tmp_29.
|
|
471
|
+
tmp_29.a2p_1 = tmp_30.e1n(this, getPropertyCallableRef('patchRegex', 1, tmp_31, CalculateVersion$_get_patchRegex_$ref_124637(), null));
|
|
463
472
|
var tmp_32 = this;
|
|
464
473
|
var tmp_33 = default_0(option(this, []), Defaults_getInstance().eo_1.tb_1);
|
|
465
474
|
var tmp_34 = KProperty1;
|
|
466
|
-
tmp_32.
|
|
475
|
+
tmp_32.b2p_1 = tmp_33.e1n(this, getPropertyCallableRef('noneRegex', 1, tmp_34, CalculateVersion$_get_noneRegex_$ref_vcaxfl(), null));
|
|
467
476
|
var tmp_35 = this;
|
|
468
477
|
var tmp0 = option(this, []);
|
|
469
478
|
// Inline function 'com.github.ajalt.clikt.parameters.options.check' call
|
|
470
479
|
var message = "version regex must include groups named 'major', 'minor', 'patch', and 'none'.";
|
|
471
480
|
// Inline function 'com.github.ajalt.clikt.parameters.options.check' call
|
|
472
481
|
// Inline function 'com.github.ajalt.clikt.parameters.options.validate' call
|
|
473
|
-
var tmp_36 = tmp0.
|
|
474
|
-
var tmp_37 = tmp0.
|
|
475
|
-
var tmp_38 = tmp0.
|
|
476
|
-
var tmp_39 = tmp0.
|
|
482
|
+
var tmp_36 = tmp0.v1l();
|
|
483
|
+
var tmp_37 = tmp0.x1m();
|
|
484
|
+
var tmp_38 = tmp0.w1l();
|
|
485
|
+
var tmp_39 = tmp0.y1m(tmp_36, tmp_37, tmp_38, CalculateVersion$versionRegex$delegate$lambda(Companion_instance, message));
|
|
477
486
|
var tmp_40 = KProperty1;
|
|
478
|
-
tmp_35.
|
|
487
|
+
tmp_35.c2p_1 = tmp_39.e1n(this, getPropertyCallableRef('versionRegex', 1, tmp_40, CalculateVersion$_get_versionRegex_$ref_f466m5(), null));
|
|
479
488
|
}
|
|
480
|
-
protoOf(CalculateVersion).
|
|
489
|
+
protoOf(CalculateVersion).t1d = function () {
|
|
481
490
|
var tmp = new TaggerCore(new GitAdapter(_get_workingDirectory__eyfbj(this)));
|
|
482
491
|
var tmp_0 = _get_implicitPatch__bjk4pa(this);
|
|
483
492
|
var tmp_1 = _get_disableDetached__ys8kbb(this);
|
|
@@ -502,7 +511,7 @@
|
|
|
502
511
|
if ($this$run instanceof Failure) {
|
|
503
512
|
switch (_get_format__qlarck(this).y2_1) {
|
|
504
513
|
case 1:
|
|
505
|
-
this.
|
|
514
|
+
this.g1c(errorResponse($this$run.ba(), 'CONFIGURATION_ERROR'));
|
|
506
515
|
throw new CliktError('', VOID, 1, false);
|
|
507
516
|
case 0:
|
|
508
517
|
throw new CliktError($this$run.ba());
|
|
@@ -544,12 +553,12 @@
|
|
|
544
553
|
var _iterator__ex2g4s_0 = this_0.r();
|
|
545
554
|
while (_iterator__ex2g4s_0.s()) {
|
|
546
555
|
var item = _iterator__ex2g4s_0.t();
|
|
547
|
-
var tmp$ret$2 = Companion_instance_0.
|
|
556
|
+
var tmp$ret$2 = Companion_instance_0.w1r(get_jsonPrimitive(item).y2c());
|
|
548
557
|
destination.v(tmp$ret$2);
|
|
549
558
|
}
|
|
550
559
|
return destination;
|
|
551
560
|
}
|
|
552
|
-
return Companion_instance_0.
|
|
561
|
+
return Companion_instance_0.v1r(get_jsonPrimitive(cursor).y2c());
|
|
553
562
|
} catch ($p) {
|
|
554
563
|
if ($p instanceof IllegalArgumentException) {
|
|
555
564
|
var _unused_var__etf5q3 = $p;
|
|
@@ -560,9 +569,9 @@
|
|
|
560
569
|
}
|
|
561
570
|
}
|
|
562
571
|
function parts($this, $receiver) {
|
|
563
|
-
var tmp0_safe_receiver = $receiver.
|
|
572
|
+
var tmp0_safe_receiver = $receiver.h1e();
|
|
564
573
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : split(tmp0_safe_receiver, ['.']);
|
|
565
|
-
return tmp1_elvis_lhs == null ? listOf(kebabToCamelCase($this, Companion_instance_1.
|
|
574
|
+
return tmp1_elvis_lhs == null ? listOf(kebabToCamelCase($this, Companion_instance_1.x1r($receiver))) : tmp1_elvis_lhs;
|
|
566
575
|
}
|
|
567
576
|
function kebabToCamelCase($this, $receiver) {
|
|
568
577
|
// Inline function 'kotlin.text.toRegex' call
|
|
@@ -572,7 +581,7 @@
|
|
|
572
581
|
return pattern.lc($receiver, transform);
|
|
573
582
|
}
|
|
574
583
|
function readConfigFileAsJsonElement($this) {
|
|
575
|
-
var pwd = $this.
|
|
584
|
+
var pwd = $this.d2p_1('PWD');
|
|
576
585
|
var tmp0_elvis_lhs = readFromFile('' + pwd + '/.tagger');
|
|
577
586
|
var tmp;
|
|
578
587
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -588,7 +597,7 @@
|
|
|
588
597
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
589
598
|
var this_2 = serializer(this_1, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
590
599
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
591
|
-
var config = this_0.
|
|
600
|
+
var config = this_0.q2a(tmp$ret$1, fileContents);
|
|
592
601
|
// Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
|
|
593
602
|
var this_3 = Default_getInstance();
|
|
594
603
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -596,7 +605,7 @@
|
|
|
596
605
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
597
606
|
var this_5 = serializer(this_4, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
598
607
|
var tmp$ret$4 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
599
|
-
var configAsElement = this_3.
|
|
608
|
+
var configAsElement = this_3.r2a(tmp$ret$4, config);
|
|
600
609
|
return configAsElement;
|
|
601
610
|
}
|
|
602
611
|
function ConfigFileSource$kebabToCamelCase$lambda(it) {
|
|
@@ -607,9 +616,9 @@
|
|
|
607
616
|
return toString(this_0).toUpperCase();
|
|
608
617
|
}
|
|
609
618
|
function ConfigFileSource(envvarReader) {
|
|
610
|
-
this.
|
|
619
|
+
this.d2p_1 = envvarReader;
|
|
611
620
|
}
|
|
612
|
-
protoOf(ConfigFileSource).
|
|
621
|
+
protoOf(ConfigFileSource).g1n = function (context, option) {
|
|
613
622
|
var tmp0_elvis_lhs = readConfigFileAsJsonElement(this);
|
|
614
623
|
var tmp;
|
|
615
624
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -622,11 +631,11 @@
|
|
|
622
631
|
};
|
|
623
632
|
function _get_file__d6iv67($this) {
|
|
624
633
|
var tmp = KProperty1;
|
|
625
|
-
return $this.
|
|
634
|
+
return $this.t2p_1.u1m($this, getPropertyCallableRef('file', 1, tmp, GenerateSettingsFile$_get_file_$ref_3dvoj2_0(), null));
|
|
626
635
|
}
|
|
627
636
|
function _get_merge__eb7eqv($this) {
|
|
628
637
|
var tmp = KProperty1;
|
|
629
|
-
return $this.
|
|
638
|
+
return $this.u2p_1.u1m($this, getPropertyCallableRef('merge', 1, tmp, GenerateSettingsFile$_get_merge_$ref_3aq3hk_0(), null));
|
|
630
639
|
}
|
|
631
640
|
function mergeJson($this, defaultConfig, originalData) {
|
|
632
641
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
@@ -649,9 +658,9 @@
|
|
|
649
658
|
} else {
|
|
650
659
|
tmp = value;
|
|
651
660
|
}
|
|
652
|
-
builder.
|
|
661
|
+
builder.g2d(key, tmp);
|
|
653
662
|
}
|
|
654
|
-
var mergeData = builder.
|
|
663
|
+
var mergeData = builder.a2c();
|
|
655
664
|
return mergeData;
|
|
656
665
|
}
|
|
657
666
|
function GenerateSettingsFile$_get_file_$ref_3dvoj2() {
|
|
@@ -675,8 +684,8 @@
|
|
|
675
684
|
};
|
|
676
685
|
}
|
|
677
686
|
function GenerateSettingsFile$run$lambda($this$Json) {
|
|
678
|
-
$this$Json.
|
|
679
|
-
$this$Json.
|
|
687
|
+
$this$Json.m2b_1 = true;
|
|
688
|
+
$this$Json.i2b_1 = true;
|
|
680
689
|
return Unit_instance;
|
|
681
690
|
}
|
|
682
691
|
function GenerateSettingsFile() {
|
|
@@ -684,13 +693,13 @@
|
|
|
684
693
|
var tmp = this;
|
|
685
694
|
var tmp_0 = option(this, []);
|
|
686
695
|
var tmp_1 = KProperty1;
|
|
687
|
-
tmp.
|
|
696
|
+
tmp.t2p_1 = tmp_0.e1n(this, getPropertyCallableRef('file', 1, tmp_1, GenerateSettingsFile$_get_file_$ref_3dvoj2(), null));
|
|
688
697
|
var tmp_2 = this;
|
|
689
698
|
var tmp_3 = boolean(option(this, []));
|
|
690
699
|
var tmp_4 = KProperty1;
|
|
691
|
-
tmp_2.
|
|
700
|
+
tmp_2.u2p_1 = tmp_3.e1n(this, getPropertyCallableRef('merge', 1, tmp_4, GenerateSettingsFile$_get_merge_$ref_3aq3hk(), null));
|
|
692
701
|
}
|
|
693
|
-
protoOf(GenerateSettingsFile).
|
|
702
|
+
protoOf(GenerateSettingsFile).t1d = function () {
|
|
694
703
|
var prettyJsonFormatter = Json(VOID, GenerateSettingsFile$run$lambda);
|
|
695
704
|
// Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
|
|
696
705
|
var value = get_runtimeDefaultConfig();
|
|
@@ -699,7 +708,7 @@
|
|
|
699
708
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
700
709
|
var this_1 = serializer(this_0, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
701
710
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
702
|
-
var defaultConfig = prettyJsonFormatter.
|
|
711
|
+
var defaultConfig = prettyJsonFormatter.r2a(tmp$ret$1, value);
|
|
703
712
|
// Inline function 'kotlin.text.orEmpty' call
|
|
704
713
|
var tmp0_elvis_lhs = _get_file__d6iv67(this);
|
|
705
714
|
// Inline function 'kotlin.text.ifBlank' call
|
|
@@ -711,14 +720,14 @@
|
|
|
711
720
|
tmp = this_2;
|
|
712
721
|
}
|
|
713
722
|
var fileName = tmp;
|
|
714
|
-
var pwd = this.
|
|
723
|
+
var pwd = this.o19().f1a_1('PWD');
|
|
715
724
|
var settingsFile = '' + pwd + '/' + fileName;
|
|
716
725
|
var existingFileData = readFromFile(settingsFile);
|
|
717
726
|
var tmp_0;
|
|
718
727
|
if (!(existingFileData == null)) {
|
|
719
728
|
var tmp_1;
|
|
720
729
|
if (_get_merge__eb7eqv(this) === true) {
|
|
721
|
-
var originalData = prettyJsonFormatter.
|
|
730
|
+
var originalData = prettyJsonFormatter.s2a(existingFileData);
|
|
722
731
|
tmp_1 = mergeJson(this, defaultConfig, originalData);
|
|
723
732
|
} else {
|
|
724
733
|
throw new CliktError('File already exists.');
|
|
@@ -735,8 +744,8 @@
|
|
|
735
744
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
736
745
|
var this_4 = serializer(this_3, createKType(getKClass(JsonElement), arrayOf([]), false));
|
|
737
746
|
var tmp$ret$7 = isInterface(this_4, KSerializer) ? this_4 : THROW_CCE();
|
|
738
|
-
var tmp$ret$6 = prettyJsonFormatter.
|
|
739
|
-
this.
|
|
747
|
+
var tmp$ret$6 = prettyJsonFormatter.p2a(tmp$ret$7, outputConfig);
|
|
748
|
+
this.g1c(tmp$ret$6);
|
|
740
749
|
} else {
|
|
741
750
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
742
751
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -744,14 +753,14 @@
|
|
|
744
753
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
745
754
|
var this_6 = serializer(this_5, createKType(getKClass(JsonElement), arrayOf([]), false));
|
|
746
755
|
var tmp$ret$10 = isInterface(this_6, KSerializer) ? this_6 : THROW_CCE();
|
|
747
|
-
var tmp$ret$9 = prettyJsonFormatter.
|
|
756
|
+
var tmp$ret$9 = prettyJsonFormatter.p2a(tmp$ret$10, outputConfig);
|
|
748
757
|
writeToFile(tmp$ret$9, settingsFile);
|
|
749
|
-
this.
|
|
758
|
+
this.g1c('Saved to ' + fileName);
|
|
750
759
|
}
|
|
751
760
|
};
|
|
752
761
|
function Companion() {
|
|
753
762
|
}
|
|
754
|
-
protoOf(Companion).
|
|
763
|
+
protoOf(Companion).a2d = function () {
|
|
755
764
|
return $serializer_getInstance();
|
|
756
765
|
};
|
|
757
766
|
var Companion_instance_2;
|
|
@@ -763,20 +772,20 @@
|
|
|
763
772
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.VersionSuccessResponse', this, 2);
|
|
764
773
|
tmp0_serialDesc.uy('status', false);
|
|
765
774
|
tmp0_serialDesc.uy('data', false);
|
|
766
|
-
this.
|
|
775
|
+
this.v2p_1 = tmp0_serialDesc;
|
|
767
776
|
}
|
|
768
|
-
protoOf($serializer).
|
|
769
|
-
var tmp0_desc = this.
|
|
777
|
+
protoOf($serializer).w2p = function (encoder, value) {
|
|
778
|
+
var tmp0_desc = this.v2p_1;
|
|
770
779
|
var tmp1_output = encoder.lr(tmp0_desc);
|
|
771
|
-
tmp1_output.zs(tmp0_desc, 0, value.
|
|
772
|
-
tmp1_output.bt(tmp0_desc, 1, $serializer_getInstance_0(), value.
|
|
780
|
+
tmp1_output.zs(tmp0_desc, 0, value.x2p_1);
|
|
781
|
+
tmp1_output.bt(tmp0_desc, 1, $serializer_getInstance_0(), value.y2p_1);
|
|
773
782
|
tmp1_output.mr(tmp0_desc);
|
|
774
783
|
};
|
|
775
784
|
protoOf($serializer).po = function (encoder, value) {
|
|
776
|
-
return this.
|
|
785
|
+
return this.w2p(encoder, value instanceof VersionSuccessResponse ? value : THROW_CCE());
|
|
777
786
|
};
|
|
778
787
|
protoOf($serializer).qo = function (decoder) {
|
|
779
|
-
var tmp0_desc = this.
|
|
788
|
+
var tmp0_desc = this.v2p_1;
|
|
780
789
|
var tmp1_flag = true;
|
|
781
790
|
var tmp2_index = 0;
|
|
782
791
|
var tmp3_bitMask0 = 0;
|
|
@@ -811,7 +820,7 @@
|
|
|
811
820
|
return VersionSuccessResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
812
821
|
};
|
|
813
822
|
protoOf($serializer).oo = function () {
|
|
814
|
-
return this.
|
|
823
|
+
return this.v2p_1;
|
|
815
824
|
};
|
|
816
825
|
protoOf($serializer).wy = function () {
|
|
817
826
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -827,25 +836,25 @@
|
|
|
827
836
|
}
|
|
828
837
|
function VersionSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, $this) {
|
|
829
838
|
if (!(3 === (3 & seen0))) {
|
|
830
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
839
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().v2p_1);
|
|
831
840
|
}
|
|
832
|
-
$this.
|
|
833
|
-
$this.
|
|
841
|
+
$this.x2p_1 = status;
|
|
842
|
+
$this.y2p_1 = data;
|
|
834
843
|
return $this;
|
|
835
844
|
}
|
|
836
845
|
function VersionSuccessResponse_init_$Create$(seen0, status, data, serializationConstructorMarker) {
|
|
837
846
|
return VersionSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, objectCreate(protoOf(VersionSuccessResponse)));
|
|
838
847
|
}
|
|
839
848
|
function VersionSuccessResponse(status, data) {
|
|
840
|
-
this.
|
|
841
|
-
this.
|
|
849
|
+
this.x2p_1 = status;
|
|
850
|
+
this.y2p_1 = data;
|
|
842
851
|
}
|
|
843
852
|
protoOf(VersionSuccessResponse).toString = function () {
|
|
844
|
-
return 'VersionSuccessResponse(status=' + this.
|
|
853
|
+
return 'VersionSuccessResponse(status=' + this.x2p_1 + ', data=' + this.y2p_1.toString() + ')';
|
|
845
854
|
};
|
|
846
855
|
protoOf(VersionSuccessResponse).hashCode = function () {
|
|
847
|
-
var result = getStringHashCode(this.
|
|
848
|
-
result = imul(result, 31) + this.
|
|
856
|
+
var result = getStringHashCode(this.x2p_1);
|
|
857
|
+
result = imul(result, 31) + this.y2p_1.hashCode() | 0;
|
|
849
858
|
return result;
|
|
850
859
|
};
|
|
851
860
|
protoOf(VersionSuccessResponse).equals = function (other) {
|
|
@@ -853,9 +862,9 @@
|
|
|
853
862
|
return true;
|
|
854
863
|
if (!(other instanceof VersionSuccessResponse))
|
|
855
864
|
return false;
|
|
856
|
-
if (!(this.
|
|
865
|
+
if (!(this.x2p_1 === other.x2p_1))
|
|
857
866
|
return false;
|
|
858
|
-
if (!this.
|
|
867
|
+
if (!this.y2p_1.equals(other.y2p_1))
|
|
859
868
|
return false;
|
|
860
869
|
return true;
|
|
861
870
|
};
|
|
@@ -869,7 +878,7 @@
|
|
|
869
878
|
// Inline function 'kotlin.arrayOf' call
|
|
870
879
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
871
880
|
// Inline function 'kotlin.js.asDynamic' call
|
|
872
|
-
tmp.
|
|
881
|
+
tmp.z2p_1 = [null, null, lazy(tmp_0, VersionData$Companion$$childSerializers$_anonymous__gd9ivc)];
|
|
873
882
|
}
|
|
874
883
|
var Companion_instance_3;
|
|
875
884
|
function Companion_getInstance_0() {
|
|
@@ -883,24 +892,24 @@
|
|
|
883
892
|
tmp0_serialDesc.uy('version', false);
|
|
884
893
|
tmp0_serialDesc.uy('snapshot', false);
|
|
885
894
|
tmp0_serialDesc.uy('snapshotReasons', true);
|
|
886
|
-
this.
|
|
895
|
+
this.a2q_1 = tmp0_serialDesc;
|
|
887
896
|
}
|
|
888
|
-
protoOf($serializer_0).
|
|
889
|
-
var tmp0_desc = this.
|
|
897
|
+
protoOf($serializer_0).b2q = function (encoder, value) {
|
|
898
|
+
var tmp0_desc = this.a2q_1;
|
|
890
899
|
var tmp1_output = encoder.lr(tmp0_desc);
|
|
891
|
-
var tmp2_cached = Companion_getInstance_0().
|
|
892
|
-
tmp1_output.zs(tmp0_desc, 0, value.
|
|
893
|
-
tmp1_output.rs(tmp0_desc, 1, value.
|
|
894
|
-
if (tmp1_output.ht(tmp0_desc, 2) ? true : !equals(value.
|
|
895
|
-
tmp1_output.bt(tmp0_desc, 2, tmp2_cached[2].m1(), value.
|
|
900
|
+
var tmp2_cached = Companion_getInstance_0().z2p_1;
|
|
901
|
+
tmp1_output.zs(tmp0_desc, 0, value.c2q_1);
|
|
902
|
+
tmp1_output.rs(tmp0_desc, 1, value.d2q_1);
|
|
903
|
+
if (tmp1_output.ht(tmp0_desc, 2) ? true : !equals(value.e2q_1, emptyList())) {
|
|
904
|
+
tmp1_output.bt(tmp0_desc, 2, tmp2_cached[2].m1(), value.e2q_1);
|
|
896
905
|
}
|
|
897
906
|
tmp1_output.mr(tmp0_desc);
|
|
898
907
|
};
|
|
899
908
|
protoOf($serializer_0).po = function (encoder, value) {
|
|
900
|
-
return this.
|
|
909
|
+
return this.b2q(encoder, value instanceof VersionData ? value : THROW_CCE());
|
|
901
910
|
};
|
|
902
911
|
protoOf($serializer_0).qo = function (decoder) {
|
|
903
|
-
var tmp0_desc = this.
|
|
912
|
+
var tmp0_desc = this.a2q_1;
|
|
904
913
|
var tmp1_flag = true;
|
|
905
914
|
var tmp2_index = 0;
|
|
906
915
|
var tmp3_bitMask0 = 0;
|
|
@@ -908,7 +917,7 @@
|
|
|
908
917
|
var tmp5_local1 = false;
|
|
909
918
|
var tmp6_local2 = null;
|
|
910
919
|
var tmp7_input = decoder.lr(tmp0_desc);
|
|
911
|
-
var tmp8_cached = Companion_getInstance_0().
|
|
920
|
+
var tmp8_cached = Companion_getInstance_0().z2p_1;
|
|
912
921
|
if (tmp7_input.bs()) {
|
|
913
922
|
tmp4_local0 = tmp7_input.vr(tmp0_desc, 0);
|
|
914
923
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -943,10 +952,10 @@
|
|
|
943
952
|
return VersionData_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
944
953
|
};
|
|
945
954
|
protoOf($serializer_0).oo = function () {
|
|
946
|
-
return this.
|
|
955
|
+
return this.a2q_1;
|
|
947
956
|
};
|
|
948
957
|
protoOf($serializer_0).wy = function () {
|
|
949
|
-
var tmp0_cached = Companion_getInstance_0().
|
|
958
|
+
var tmp0_cached = Companion_getInstance_0().z2p_1;
|
|
950
959
|
// Inline function 'kotlin.arrayOf' call
|
|
951
960
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
952
961
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -960,14 +969,14 @@
|
|
|
960
969
|
}
|
|
961
970
|
function VersionData_init_$Init$(seen0, version, snapshot, snapshotReasons, serializationConstructorMarker, $this) {
|
|
962
971
|
if (!(3 === (3 & seen0))) {
|
|
963
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
972
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().a2q_1);
|
|
964
973
|
}
|
|
965
|
-
$this.
|
|
966
|
-
$this.
|
|
974
|
+
$this.c2q_1 = version;
|
|
975
|
+
$this.d2q_1 = snapshot;
|
|
967
976
|
if (0 === (seen0 & 4))
|
|
968
|
-
$this.
|
|
977
|
+
$this.e2q_1 = emptyList();
|
|
969
978
|
else
|
|
970
|
-
$this.
|
|
979
|
+
$this.e2q_1 = snapshotReasons;
|
|
971
980
|
return $this;
|
|
972
981
|
}
|
|
973
982
|
function VersionData_init_$Create$(seen0, version, snapshot, snapshotReasons, serializationConstructorMarker) {
|
|
@@ -976,17 +985,17 @@
|
|
|
976
985
|
function VersionData(version, snapshot, snapshotReasons) {
|
|
977
986
|
Companion_getInstance_0();
|
|
978
987
|
snapshotReasons = snapshotReasons === VOID ? emptyList() : snapshotReasons;
|
|
979
|
-
this.
|
|
980
|
-
this.
|
|
981
|
-
this.
|
|
988
|
+
this.c2q_1 = version;
|
|
989
|
+
this.d2q_1 = snapshot;
|
|
990
|
+
this.e2q_1 = snapshotReasons;
|
|
982
991
|
}
|
|
983
992
|
protoOf(VersionData).toString = function () {
|
|
984
|
-
return 'VersionData(version=' + this.
|
|
993
|
+
return 'VersionData(version=' + this.c2q_1 + ', snapshot=' + this.d2q_1 + ', snapshotReasons=' + toString_0(this.e2q_1) + ')';
|
|
985
994
|
};
|
|
986
995
|
protoOf(VersionData).hashCode = function () {
|
|
987
|
-
var result = getStringHashCode(this.
|
|
988
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
989
|
-
result = imul(result, 31) + hashCode(this.
|
|
996
|
+
var result = getStringHashCode(this.c2q_1);
|
|
997
|
+
result = imul(result, 31) + getBooleanHashCode(this.d2q_1) | 0;
|
|
998
|
+
result = imul(result, 31) + hashCode(this.e2q_1) | 0;
|
|
990
999
|
return result;
|
|
991
1000
|
};
|
|
992
1001
|
protoOf(VersionData).equals = function (other) {
|
|
@@ -994,17 +1003,17 @@
|
|
|
994
1003
|
return true;
|
|
995
1004
|
if (!(other instanceof VersionData))
|
|
996
1005
|
return false;
|
|
997
|
-
if (!(this.b2q_1 === other.b2q_1))
|
|
998
|
-
return false;
|
|
999
1006
|
if (!(this.c2q_1 === other.c2q_1))
|
|
1000
1007
|
return false;
|
|
1001
|
-
if (!
|
|
1008
|
+
if (!(this.d2q_1 === other.d2q_1))
|
|
1009
|
+
return false;
|
|
1010
|
+
if (!equals(this.e2q_1, other.e2q_1))
|
|
1002
1011
|
return false;
|
|
1003
1012
|
return true;
|
|
1004
1013
|
};
|
|
1005
1014
|
function Companion_1() {
|
|
1006
1015
|
}
|
|
1007
|
-
protoOf(Companion_1).
|
|
1016
|
+
protoOf(Companion_1).a2d = function () {
|
|
1008
1017
|
return $serializer_getInstance_1();
|
|
1009
1018
|
};
|
|
1010
1019
|
var Companion_instance_4;
|
|
@@ -1017,21 +1026,21 @@
|
|
|
1017
1026
|
tmp0_serialDesc.uy('status', false);
|
|
1018
1027
|
tmp0_serialDesc.uy('error', false);
|
|
1019
1028
|
tmp0_serialDesc.uy('code', false);
|
|
1020
|
-
this.
|
|
1029
|
+
this.f2q_1 = tmp0_serialDesc;
|
|
1021
1030
|
}
|
|
1022
|
-
protoOf($serializer_1).
|
|
1023
|
-
var tmp0_desc = this.
|
|
1031
|
+
protoOf($serializer_1).g2q = function (encoder, value) {
|
|
1032
|
+
var tmp0_desc = this.f2q_1;
|
|
1024
1033
|
var tmp1_output = encoder.lr(tmp0_desc);
|
|
1025
|
-
tmp1_output.zs(tmp0_desc, 0, value.
|
|
1026
|
-
tmp1_output.zs(tmp0_desc, 1, value.
|
|
1027
|
-
tmp1_output.zs(tmp0_desc, 2, value.
|
|
1034
|
+
tmp1_output.zs(tmp0_desc, 0, value.h2q_1);
|
|
1035
|
+
tmp1_output.zs(tmp0_desc, 1, value.i2q_1);
|
|
1036
|
+
tmp1_output.zs(tmp0_desc, 2, value.j2q_1);
|
|
1028
1037
|
tmp1_output.mr(tmp0_desc);
|
|
1029
1038
|
};
|
|
1030
1039
|
protoOf($serializer_1).po = function (encoder, value) {
|
|
1031
|
-
return this.
|
|
1040
|
+
return this.g2q(encoder, value instanceof ErrorResponse ? value : THROW_CCE());
|
|
1032
1041
|
};
|
|
1033
1042
|
protoOf($serializer_1).qo = function (decoder) {
|
|
1034
|
-
var tmp0_desc = this.
|
|
1043
|
+
var tmp0_desc = this.f2q_1;
|
|
1035
1044
|
var tmp1_flag = true;
|
|
1036
1045
|
var tmp2_index = 0;
|
|
1037
1046
|
var tmp3_bitMask0 = 0;
|
|
@@ -1073,7 +1082,7 @@
|
|
|
1073
1082
|
return ErrorResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1074
1083
|
};
|
|
1075
1084
|
protoOf($serializer_1).oo = function () {
|
|
1076
|
-
return this.
|
|
1085
|
+
return this.f2q_1;
|
|
1077
1086
|
};
|
|
1078
1087
|
protoOf($serializer_1).wy = function () {
|
|
1079
1088
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1089,28 +1098,28 @@
|
|
|
1089
1098
|
}
|
|
1090
1099
|
function ErrorResponse_init_$Init$(seen0, status, error, code, serializationConstructorMarker, $this) {
|
|
1091
1100
|
if (!(7 === (7 & seen0))) {
|
|
1092
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_1().
|
|
1101
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_1().f2q_1);
|
|
1093
1102
|
}
|
|
1094
|
-
$this.
|
|
1095
|
-
$this.
|
|
1096
|
-
$this.
|
|
1103
|
+
$this.h2q_1 = status;
|
|
1104
|
+
$this.i2q_1 = error;
|
|
1105
|
+
$this.j2q_1 = code;
|
|
1097
1106
|
return $this;
|
|
1098
1107
|
}
|
|
1099
1108
|
function ErrorResponse_init_$Create$(seen0, status, error, code, serializationConstructorMarker) {
|
|
1100
1109
|
return ErrorResponse_init_$Init$(seen0, status, error, code, serializationConstructorMarker, objectCreate(protoOf(ErrorResponse)));
|
|
1101
1110
|
}
|
|
1102
1111
|
function ErrorResponse(status, error, code) {
|
|
1103
|
-
this.
|
|
1104
|
-
this.
|
|
1105
|
-
this.
|
|
1112
|
+
this.h2q_1 = status;
|
|
1113
|
+
this.i2q_1 = error;
|
|
1114
|
+
this.j2q_1 = code;
|
|
1106
1115
|
}
|
|
1107
1116
|
protoOf(ErrorResponse).toString = function () {
|
|
1108
|
-
return 'ErrorResponse(status=' + this.
|
|
1117
|
+
return 'ErrorResponse(status=' + this.h2q_1 + ', error=' + this.i2q_1 + ', code=' + this.j2q_1 + ')';
|
|
1109
1118
|
};
|
|
1110
1119
|
protoOf(ErrorResponse).hashCode = function () {
|
|
1111
|
-
var result = getStringHashCode(this.
|
|
1112
|
-
result = imul(result, 31) + getStringHashCode(this.h2q_1) | 0;
|
|
1120
|
+
var result = getStringHashCode(this.h2q_1);
|
|
1113
1121
|
result = imul(result, 31) + getStringHashCode(this.i2q_1) | 0;
|
|
1122
|
+
result = imul(result, 31) + getStringHashCode(this.j2q_1) | 0;
|
|
1114
1123
|
return result;
|
|
1115
1124
|
};
|
|
1116
1125
|
protoOf(ErrorResponse).equals = function (other) {
|
|
@@ -1118,17 +1127,17 @@
|
|
|
1118
1127
|
return true;
|
|
1119
1128
|
if (!(other instanceof ErrorResponse))
|
|
1120
1129
|
return false;
|
|
1121
|
-
if (!(this.g2q_1 === other.g2q_1))
|
|
1122
|
-
return false;
|
|
1123
1130
|
if (!(this.h2q_1 === other.h2q_1))
|
|
1124
1131
|
return false;
|
|
1125
1132
|
if (!(this.i2q_1 === other.i2q_1))
|
|
1126
1133
|
return false;
|
|
1134
|
+
if (!(this.j2q_1 === other.j2q_1))
|
|
1135
|
+
return false;
|
|
1127
1136
|
return true;
|
|
1128
1137
|
};
|
|
1129
1138
|
function Companion_2() {
|
|
1130
1139
|
}
|
|
1131
|
-
protoOf(Companion_2).
|
|
1140
|
+
protoOf(Companion_2).a2d = function () {
|
|
1132
1141
|
return $serializer_getInstance_2();
|
|
1133
1142
|
};
|
|
1134
1143
|
var Companion_instance_5;
|
|
@@ -1140,20 +1149,20 @@
|
|
|
1140
1149
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.TagSuccessResponse', this, 2);
|
|
1141
1150
|
tmp0_serialDesc.uy('status', false);
|
|
1142
1151
|
tmp0_serialDesc.uy('data', false);
|
|
1143
|
-
this.
|
|
1152
|
+
this.k2q_1 = tmp0_serialDesc;
|
|
1144
1153
|
}
|
|
1145
|
-
protoOf($serializer_2).
|
|
1146
|
-
var tmp0_desc = this.
|
|
1154
|
+
protoOf($serializer_2).l2q = function (encoder, value) {
|
|
1155
|
+
var tmp0_desc = this.k2q_1;
|
|
1147
1156
|
var tmp1_output = encoder.lr(tmp0_desc);
|
|
1148
|
-
tmp1_output.zs(tmp0_desc, 0, value.
|
|
1149
|
-
tmp1_output.bt(tmp0_desc, 1, $serializer_getInstance_3(), value.
|
|
1157
|
+
tmp1_output.zs(tmp0_desc, 0, value.m2q_1);
|
|
1158
|
+
tmp1_output.bt(tmp0_desc, 1, $serializer_getInstance_3(), value.n2q_1);
|
|
1150
1159
|
tmp1_output.mr(tmp0_desc);
|
|
1151
1160
|
};
|
|
1152
1161
|
protoOf($serializer_2).po = function (encoder, value) {
|
|
1153
|
-
return this.
|
|
1162
|
+
return this.l2q(encoder, value instanceof TagSuccessResponse ? value : THROW_CCE());
|
|
1154
1163
|
};
|
|
1155
1164
|
protoOf($serializer_2).qo = function (decoder) {
|
|
1156
|
-
var tmp0_desc = this.
|
|
1165
|
+
var tmp0_desc = this.k2q_1;
|
|
1157
1166
|
var tmp1_flag = true;
|
|
1158
1167
|
var tmp2_index = 0;
|
|
1159
1168
|
var tmp3_bitMask0 = 0;
|
|
@@ -1188,7 +1197,7 @@
|
|
|
1188
1197
|
return TagSuccessResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1189
1198
|
};
|
|
1190
1199
|
protoOf($serializer_2).oo = function () {
|
|
1191
|
-
return this.
|
|
1200
|
+
return this.k2q_1;
|
|
1192
1201
|
};
|
|
1193
1202
|
protoOf($serializer_2).wy = function () {
|
|
1194
1203
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1204,25 +1213,25 @@
|
|
|
1204
1213
|
}
|
|
1205
1214
|
function TagSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, $this) {
|
|
1206
1215
|
if (!(3 === (3 & seen0))) {
|
|
1207
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1216
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().k2q_1);
|
|
1208
1217
|
}
|
|
1209
|
-
$this.
|
|
1210
|
-
$this.
|
|
1218
|
+
$this.m2q_1 = status;
|
|
1219
|
+
$this.n2q_1 = data;
|
|
1211
1220
|
return $this;
|
|
1212
1221
|
}
|
|
1213
1222
|
function TagSuccessResponse_init_$Create$(seen0, status, data, serializationConstructorMarker) {
|
|
1214
1223
|
return TagSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, objectCreate(protoOf(TagSuccessResponse)));
|
|
1215
1224
|
}
|
|
1216
1225
|
function TagSuccessResponse(status, data) {
|
|
1217
|
-
this.
|
|
1218
|
-
this.
|
|
1226
|
+
this.m2q_1 = status;
|
|
1227
|
+
this.n2q_1 = data;
|
|
1219
1228
|
}
|
|
1220
1229
|
protoOf(TagSuccessResponse).toString = function () {
|
|
1221
|
-
return 'TagSuccessResponse(status=' + this.
|
|
1230
|
+
return 'TagSuccessResponse(status=' + this.m2q_1 + ', data=' + this.n2q_1.toString() + ')';
|
|
1222
1231
|
};
|
|
1223
1232
|
protoOf(TagSuccessResponse).hashCode = function () {
|
|
1224
|
-
var result = getStringHashCode(this.
|
|
1225
|
-
result = imul(result, 31) + this.
|
|
1233
|
+
var result = getStringHashCode(this.m2q_1);
|
|
1234
|
+
result = imul(result, 31) + this.n2q_1.hashCode() | 0;
|
|
1226
1235
|
return result;
|
|
1227
1236
|
};
|
|
1228
1237
|
protoOf(TagSuccessResponse).equals = function (other) {
|
|
@@ -1230,9 +1239,9 @@
|
|
|
1230
1239
|
return true;
|
|
1231
1240
|
if (!(other instanceof TagSuccessResponse))
|
|
1232
1241
|
return false;
|
|
1233
|
-
if (!(this.
|
|
1242
|
+
if (!(this.m2q_1 === other.m2q_1))
|
|
1234
1243
|
return false;
|
|
1235
|
-
if (!this.
|
|
1244
|
+
if (!this.n2q_1.equals(other.n2q_1))
|
|
1236
1245
|
return false;
|
|
1237
1246
|
return true;
|
|
1238
1247
|
};
|
|
@@ -1246,19 +1255,19 @@
|
|
|
1246
1255
|
$serializer_instance_3 = this;
|
|
1247
1256
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.tagger.cli.TagData', this, 1);
|
|
1248
1257
|
tmp0_serialDesc.uy('tag', false);
|
|
1249
|
-
this.
|
|
1258
|
+
this.o2q_1 = tmp0_serialDesc;
|
|
1250
1259
|
}
|
|
1251
|
-
protoOf($serializer_3).
|
|
1252
|
-
var tmp0_desc = this.
|
|
1260
|
+
protoOf($serializer_3).p2q = function (encoder, value) {
|
|
1261
|
+
var tmp0_desc = this.o2q_1;
|
|
1253
1262
|
var tmp1_output = encoder.lr(tmp0_desc);
|
|
1254
|
-
tmp1_output.zs(tmp0_desc, 0, value.
|
|
1263
|
+
tmp1_output.zs(tmp0_desc, 0, value.q2q_1);
|
|
1255
1264
|
tmp1_output.mr(tmp0_desc);
|
|
1256
1265
|
};
|
|
1257
1266
|
protoOf($serializer_3).po = function (encoder, value) {
|
|
1258
|
-
return this.
|
|
1267
|
+
return this.p2q(encoder, value instanceof TagData ? value : THROW_CCE());
|
|
1259
1268
|
};
|
|
1260
1269
|
protoOf($serializer_3).qo = function (decoder) {
|
|
1261
|
-
var tmp0_desc = this.
|
|
1270
|
+
var tmp0_desc = this.o2q_1;
|
|
1262
1271
|
var tmp1_flag = true;
|
|
1263
1272
|
var tmp2_index = 0;
|
|
1264
1273
|
var tmp3_bitMask0 = 0;
|
|
@@ -1286,7 +1295,7 @@
|
|
|
1286
1295
|
return TagData_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
1287
1296
|
};
|
|
1288
1297
|
protoOf($serializer_3).oo = function () {
|
|
1289
|
-
return this.
|
|
1298
|
+
return this.o2q_1;
|
|
1290
1299
|
};
|
|
1291
1300
|
protoOf($serializer_3).wy = function () {
|
|
1292
1301
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1302,40 +1311,40 @@
|
|
|
1302
1311
|
}
|
|
1303
1312
|
function TagData_init_$Init$(seen0, tag, serializationConstructorMarker, $this) {
|
|
1304
1313
|
if (!(1 === (1 & seen0))) {
|
|
1305
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_3().
|
|
1314
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_3().o2q_1);
|
|
1306
1315
|
}
|
|
1307
|
-
$this.
|
|
1316
|
+
$this.q2q_1 = tag;
|
|
1308
1317
|
return $this;
|
|
1309
1318
|
}
|
|
1310
1319
|
function TagData_init_$Create$(seen0, tag, serializationConstructorMarker) {
|
|
1311
1320
|
return TagData_init_$Init$(seen0, tag, serializationConstructorMarker, objectCreate(protoOf(TagData)));
|
|
1312
1321
|
}
|
|
1313
1322
|
function TagData(tag) {
|
|
1314
|
-
this.
|
|
1323
|
+
this.q2q_1 = tag;
|
|
1315
1324
|
}
|
|
1316
1325
|
protoOf(TagData).toString = function () {
|
|
1317
|
-
return 'TagData(tag=' + this.
|
|
1326
|
+
return 'TagData(tag=' + this.q2q_1 + ')';
|
|
1318
1327
|
};
|
|
1319
1328
|
protoOf(TagData).hashCode = function () {
|
|
1320
|
-
return getStringHashCode(this.
|
|
1329
|
+
return getStringHashCode(this.q2q_1);
|
|
1321
1330
|
};
|
|
1322
1331
|
protoOf(TagData).equals = function (other) {
|
|
1323
1332
|
if (this === other)
|
|
1324
1333
|
return true;
|
|
1325
1334
|
if (!(other instanceof TagData))
|
|
1326
1335
|
return false;
|
|
1327
|
-
if (!(this.
|
|
1336
|
+
if (!(this.q2q_1 === other.q2q_1))
|
|
1328
1337
|
return false;
|
|
1329
1338
|
return true;
|
|
1330
1339
|
};
|
|
1331
1340
|
function versionSuccessResponse(data) {
|
|
1332
|
-
return Default_getInstance().
|
|
1341
|
+
return Default_getInstance().p2a(Companion_instance_2.a2d(), new VersionSuccessResponse('success', data));
|
|
1333
1342
|
}
|
|
1334
1343
|
function tagSuccessResponse(data) {
|
|
1335
|
-
return Default_getInstance().
|
|
1344
|
+
return Default_getInstance().p2a(Companion_instance_5.a2d(), new TagSuccessResponse('success', data));
|
|
1336
1345
|
}
|
|
1337
1346
|
function errorResponse(message, code) {
|
|
1338
|
-
return Default_getInstance().
|
|
1347
|
+
return Default_getInstance().p2a(Companion_instance_4.a2d(), new ErrorResponse('error', message, code));
|
|
1339
1348
|
}
|
|
1340
1349
|
function main_0(args) {
|
|
1341
1350
|
return main(cli(), platformArgCorrection(args));
|
|
@@ -1348,11 +1357,11 @@
|
|
|
1348
1357
|
}
|
|
1349
1358
|
function _get_gitRepoArgument__zxde8_0($this) {
|
|
1350
1359
|
var tmp = KProperty1;
|
|
1351
|
-
return $this.
|
|
1360
|
+
return $this.g2r_1.u1m($this, getPropertyCallableRef('gitRepoArgument', 1, tmp, Tag$_get_gitRepoArgument_$ref_dketaj_0(), null));
|
|
1352
1361
|
}
|
|
1353
1362
|
function _get_gitRepoOption__rk7ta0_0($this) {
|
|
1354
1363
|
var tmp = KProperty1;
|
|
1355
|
-
return $this.
|
|
1364
|
+
return $this.h2r_1.u1m($this, getPropertyCallableRef('gitRepoOption', 1, tmp, Tag$_get_gitRepoOption_$ref_10iywz_0(), null));
|
|
1356
1365
|
}
|
|
1357
1366
|
function _get_workingDirectory__eyfbj_0($this) {
|
|
1358
1367
|
var tmp0_elvis_lhs = _get_gitRepoArgument__zxde8_0($this);
|
|
@@ -1367,38 +1376,38 @@
|
|
|
1367
1376
|
}
|
|
1368
1377
|
function _get_releaseBranch__pqrgbs_0($this) {
|
|
1369
1378
|
var tmp = KProperty1;
|
|
1370
|
-
return $this.
|
|
1379
|
+
return $this.i2r_1.u1m($this, getPropertyCallableRef('releaseBranch', 1, tmp, Tag$_get_releaseBranch_$ref_rq8rmb_0(), null));
|
|
1371
1380
|
}
|
|
1372
1381
|
function _get_version__2bx7w9($this) {
|
|
1373
1382
|
var tmp = KProperty1;
|
|
1374
|
-
return $this.
|
|
1383
|
+
return $this.j2r_1.u1m($this, getPropertyCallableRef('version', 1, tmp, Tag$_get_version_$ref_p7wb9e_0(), null));
|
|
1375
1384
|
}
|
|
1376
1385
|
function _get_userName__tupjmd($this) {
|
|
1377
1386
|
var tmp = KProperty1;
|
|
1378
|
-
return $this.
|
|
1387
|
+
return $this.k2r_1.u1m($this, getPropertyCallableRef('userName', 1, tmp, Tag$_get_userName_$ref_kslo5u_0(), null));
|
|
1379
1388
|
}
|
|
1380
1389
|
function _get_userEmail__21hfkw($this) {
|
|
1381
1390
|
var tmp = KProperty1;
|
|
1382
|
-
return $this.
|
|
1391
|
+
return $this.l2r_1.u1m($this, getPropertyCallableRef('userEmail', 1, tmp, Tag$_get_userEmail_$ref_vl09cr_0(), null));
|
|
1383
1392
|
}
|
|
1384
1393
|
function _get_allowDetachedHead__iyebhm_0($this) {
|
|
1385
1394
|
var tmp = KProperty1;
|
|
1386
|
-
return $this.
|
|
1395
|
+
return $this.m2r_1.u1m($this, getPropertyCallableRef('allowDetachedHead', 1, tmp, Tag$_get_allowDetachedHead_$ref_qujqxn_0(), null));
|
|
1387
1396
|
}
|
|
1388
1397
|
function _get_dryRun__18z7px($this) {
|
|
1389
1398
|
var tmp = KProperty1;
|
|
1390
|
-
return $this.
|
|
1399
|
+
return $this.n2r_1.u1m($this, getPropertyCallableRef('dryRun', 1, tmp, Tag$_get_dryRun_$ref_agy9vo_0(), null));
|
|
1391
1400
|
}
|
|
1392
1401
|
function _get_warningsAsErrors__7mpwfd($this) {
|
|
1393
1402
|
var tmp = KProperty1;
|
|
1394
|
-
return $this.
|
|
1403
|
+
return $this.o2r_1.u1m($this, getPropertyCallableRef('warningsAsErrors', 1, tmp, Tag$_get_warningsAsErrors_$ref_gj8a6o_0(), null));
|
|
1395
1404
|
}
|
|
1396
1405
|
function _get_format__qlarck_0($this) {
|
|
1397
1406
|
var tmp = KProperty1;
|
|
1398
|
-
return $this.
|
|
1407
|
+
return $this.p2r_1.u1m($this, getPropertyCallableRef('format', 1, tmp, Tag$_get_format_$ref_i96vgt_0(), null));
|
|
1399
1408
|
}
|
|
1400
1409
|
function Tag$lambda($this$context) {
|
|
1401
|
-
$this$context.
|
|
1410
|
+
$this$context.a1d([new ConfigFileSource($this$context.w1c_1)]);
|
|
1402
1411
|
return Unit_instance;
|
|
1403
1412
|
}
|
|
1404
1413
|
function Tag$_get_gitRepoArgument_$ref_dketaj() {
|
|
@@ -1507,39 +1516,39 @@
|
|
|
1507
1516
|
var tmp = this;
|
|
1508
1517
|
var tmp_0 = optional(argument(this, 'git-repo'));
|
|
1509
1518
|
var tmp_1 = KProperty1;
|
|
1510
|
-
tmp.
|
|
1519
|
+
tmp.g2r_1 = tmp_0.a1m(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, Tag$_get_gitRepoArgument_$ref_dketaj(), null));
|
|
1511
1520
|
var tmp_2 = this;
|
|
1512
1521
|
var tmp_3 = option(this, ['--git-repo'], VOID, VOID, VOID, 'PWD');
|
|
1513
1522
|
var tmp_4 = KProperty1;
|
|
1514
|
-
tmp_2.
|
|
1523
|
+
tmp_2.h2r_1 = tmp_3.e1n(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, Tag$_get_gitRepoOption_$ref_10iywz(), null));
|
|
1515
1524
|
var tmp_5 = this;
|
|
1516
1525
|
var tmp_6 = required(option(this, []));
|
|
1517
1526
|
var tmp_7 = KProperty1;
|
|
1518
|
-
tmp_5.
|
|
1527
|
+
tmp_5.i2r_1 = tmp_6.e1n(this, getPropertyCallableRef('releaseBranch', 1, tmp_7, Tag$_get_releaseBranch_$ref_rq8rmb(), null));
|
|
1519
1528
|
var tmp_8 = this;
|
|
1520
1529
|
var tmp_9 = required(option(this, ['--version'], 'Version to tag (required)'));
|
|
1521
1530
|
var tmp_10 = KProperty1;
|
|
1522
|
-
tmp_8.
|
|
1531
|
+
tmp_8.j2r_1 = tmp_9.e1n(this, getPropertyCallableRef('version', 1, tmp_10, Tag$_get_version_$ref_p7wb9e(), null));
|
|
1523
1532
|
var tmp_11 = this;
|
|
1524
1533
|
var tmp_12 = option(this, []);
|
|
1525
1534
|
var tmp_13 = KProperty1;
|
|
1526
|
-
tmp_11.
|
|
1535
|
+
tmp_11.k2r_1 = tmp_12.e1n(this, getPropertyCallableRef('userName', 1, tmp_13, Tag$_get_userName_$ref_kslo5u(), null));
|
|
1527
1536
|
var tmp_14 = this;
|
|
1528
1537
|
var tmp_15 = option(this, []);
|
|
1529
1538
|
var tmp_16 = KProperty1;
|
|
1530
|
-
tmp_14.
|
|
1539
|
+
tmp_14.l2r_1 = tmp_15.e1n(this, getPropertyCallableRef('userEmail', 1, tmp_16, Tag$_get_userEmail_$ref_vl09cr(), null));
|
|
1531
1540
|
var tmp_17 = this;
|
|
1532
1541
|
var tmp_18 = default_0(boolean(option(this, ['--allow-detached-head'])), false);
|
|
1533
1542
|
var tmp_19 = KProperty1;
|
|
1534
|
-
tmp_17.
|
|
1543
|
+
tmp_17.m2r_1 = tmp_18.e1n(this, getPropertyCallableRef('allowDetachedHead', 1, tmp_19, Tag$_get_allowDetachedHead_$ref_qujqxn(), null));
|
|
1535
1544
|
var tmp_20 = this;
|
|
1536
1545
|
var tmp_21 = default_0(boolean(option(this, ['--dry-run'])), false);
|
|
1537
1546
|
var tmp_22 = KProperty1;
|
|
1538
|
-
tmp_20.
|
|
1547
|
+
tmp_20.n2r_1 = tmp_21.e1n(this, getPropertyCallableRef('dryRun', 1, tmp_22, Tag$_get_dryRun_$ref_agy9vo(), null));
|
|
1539
1548
|
var tmp_23 = this;
|
|
1540
1549
|
var tmp_24 = default_0(boolean(option(this, [])), false);
|
|
1541
1550
|
var tmp_25 = KProperty1;
|
|
1542
|
-
tmp_23.
|
|
1551
|
+
tmp_23.o2r_1 = tmp_24.e1n(this, getPropertyCallableRef('warningsAsErrors', 1, tmp_25, Tag$_get_warningsAsErrors_$ref_gj8a6o(), null));
|
|
1543
1552
|
var tmp_26 = this;
|
|
1544
1553
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
1545
1554
|
var this_0 = option(this, ['--format'], 'Output format: text (default) or json');
|
|
@@ -1562,26 +1571,26 @@
|
|
|
1562
1571
|
var tmp$ret$0 = choice(this_0, destination, VOID, true);
|
|
1563
1572
|
var tmp_27 = default_0(tmp$ret$0, OutputFormat_TEXT_getInstance());
|
|
1564
1573
|
var tmp_28 = KProperty1;
|
|
1565
|
-
tmp_26.
|
|
1574
|
+
tmp_26.p2r_1 = tmp_27.e1n(this, getPropertyCallableRef('format', 1, tmp_28, Tag$_get_format_$ref_i96vgt(), null));
|
|
1566
1575
|
}
|
|
1567
|
-
protoOf(Tag).
|
|
1576
|
+
protoOf(Tag).t1d = function () {
|
|
1568
1577
|
var gitAdapter = new GitAdapter(_get_workingDirectory__eyfbj_0(this));
|
|
1569
1578
|
if (_get_dryRun__18z7px(this)) {
|
|
1570
1579
|
var headCommit = gitAdapter.kl();
|
|
1571
1580
|
var headBranch = gitAdapter.ql().vl_1;
|
|
1572
|
-
this.
|
|
1573
|
-
this.
|
|
1574
|
-
this.
|
|
1581
|
+
this.g1c("Would create annotated tag '" + _get_version__2bx7w9(this) + "' at " + headCommit + " on branch '" + headBranch + "'.");
|
|
1582
|
+
this.g1c("Would push to remote 'origin'.");
|
|
1583
|
+
this.g1c('(no changes made)');
|
|
1575
1584
|
} else {
|
|
1576
1585
|
// Inline function 'kotlin.let' call
|
|
1577
1586
|
var it = tag(new TaggerCore(gitAdapter), _get_version__2bx7w9(this), _get_releaseBranch__pqrgbs_0(this), _get_userName__tupjmd(this), _get_userEmail__21hfkw(this), _get_allowDetachedHead__iyebhm_0(this));
|
|
1578
1587
|
if (equals(it, Success_getInstance())) {
|
|
1579
1588
|
switch (_get_format__qlarck_0(this).y2_1) {
|
|
1580
1589
|
case 1:
|
|
1581
|
-
this.
|
|
1590
|
+
this.g1c(tagSuccessResponse(new TagData(_get_version__2bx7w9(this))));
|
|
1582
1591
|
break;
|
|
1583
1592
|
case 0:
|
|
1584
|
-
this.
|
|
1593
|
+
this.g1c('Success!');
|
|
1585
1594
|
break;
|
|
1586
1595
|
default:
|
|
1587
1596
|
noWhenBranchMatchedException();
|
|
@@ -1591,14 +1600,14 @@
|
|
|
1591
1600
|
if (it instanceof Error_0) {
|
|
1592
1601
|
switch (_get_format__qlarck_0(this).y2_1) {
|
|
1593
1602
|
case 1:
|
|
1594
|
-
this.
|
|
1603
|
+
this.g1c(errorResponse(it.do_1, 'TAG_ERROR'));
|
|
1595
1604
|
var tmp3_statusCode = _get_warningsAsErrors__7mpwfd(this) ? 1 : 0;
|
|
1596
1605
|
throw new CliktError('', VOID, tmp3_statusCode, false);
|
|
1597
1606
|
case 0:
|
|
1598
1607
|
if (_get_warningsAsErrors__7mpwfd(this)) {
|
|
1599
1608
|
throw new CliktError(it.do_1);
|
|
1600
1609
|
} else {
|
|
1601
|
-
this.
|
|
1610
|
+
this.g1c(it.do_1, VOID, true);
|
|
1602
1611
|
}
|
|
1603
1612
|
|
|
1604
1613
|
break;
|
|
@@ -1614,12 +1623,12 @@
|
|
|
1614
1623
|
};
|
|
1615
1624
|
function _get_quiet__c6dzoj($this) {
|
|
1616
1625
|
var tmp = KProperty1;
|
|
1617
|
-
return $this.
|
|
1626
|
+
return $this.f2s_1.u1m($this, getPropertyCallableRef('quiet', 1, tmp, Tagger$_get_quiet_$ref_s522ri_0(), null));
|
|
1618
1627
|
}
|
|
1619
1628
|
function Tagger$lambda($version, $this) {
|
|
1620
1629
|
return function ($this$eagerOption) {
|
|
1621
1630
|
var it = $version;
|
|
1622
|
-
var tmp$ret$0 = $this.
|
|
1631
|
+
var tmp$ret$0 = $this.z18_1 + ' version ' + it;
|
|
1623
1632
|
throw new PrintMessage(tmp$ret$0);
|
|
1624
1633
|
};
|
|
1625
1634
|
}
|
|
@@ -1636,21 +1645,21 @@
|
|
|
1636
1645
|
function Tagger() {
|
|
1637
1646
|
CliktCommand.call(this);
|
|
1638
1647
|
// Inline function 'com.github.ajalt.clikt.parameters.options.versionOption' call
|
|
1639
|
-
var version = Versions_instance.
|
|
1648
|
+
var version = Versions_instance.a2o_1;
|
|
1640
1649
|
var help = 'Show the version and exit';
|
|
1641
1650
|
var names = setOf('--version');
|
|
1642
1651
|
eagerOption(this, names, help, VOID, VOID, VOID, Tagger$lambda(version, this));
|
|
1643
1652
|
var tmp = this;
|
|
1644
1653
|
var tmp_0 = flag(option(this, ['--quiet', '-q'], 'Suppress welcome message. Version goes to stdout, diagnostics to stderr (safe for: VERSION=$(tagger -q ...))'), [], false);
|
|
1645
1654
|
var tmp_1 = KProperty1;
|
|
1646
|
-
tmp.
|
|
1655
|
+
tmp.f2s_1 = tmp_0.e1n(this, getPropertyCallableRef('quiet', 1, tmp_1, Tagger$_get_quiet_$ref_s522ri(), null));
|
|
1647
1656
|
}
|
|
1648
|
-
protoOf(Tagger).
|
|
1657
|
+
protoOf(Tagger).y1a = function (context) {
|
|
1649
1658
|
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";
|
|
1650
1659
|
};
|
|
1651
|
-
protoOf(Tagger).
|
|
1652
|
-
if (!_get_quiet__c6dzoj(this) && this.
|
|
1653
|
-
this.
|
|
1660
|
+
protoOf(Tagger).t1d = function () {
|
|
1661
|
+
if (!_get_quiet__c6dzoj(this) && this.o19().b1d() == null) {
|
|
1662
|
+
this.g1c('Welcome to Tagger CLI.');
|
|
1654
1663
|
}
|
|
1655
1664
|
};
|
|
1656
1665
|
//region block: post-declaration
|