git-semver-tagger 1.9.27 → 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 +76 -76
- package/kotlin/clikt-clikt.js +1316 -1316
- package/kotlin/colormath-root-colormath.js +426 -426
- package/kotlin/command-line-tools-tagger-cli.js +418 -342
- package/kotlin/command-line-tools-tagger-cli.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +4 -4
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1655 -1655
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1466 -1466
- package/kotlin/mordant-mordant.js +1157 -1157
- package/kotlin/tools-git-adapter.js +53 -48
- package/kotlin/tools-git-adapter.js.map +1 -1
- package/kotlin/tools-tagger-core.js +104 -103
- package/kotlin/tools-tagger-core.js.map +1 -1
- package/kotlin/tools-tagger-json.js +150 -130
- 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,49 +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
|
-
function
|
|
169
|
+
function _get_disableDetachedDeprecated__wab4kc($this) {
|
|
170
|
+
var tmp = KProperty1;
|
|
171
|
+
return $this.t2o_1.u1m($this, getPropertyCallableRef('disableDetachedDeprecated', 1, tmp, CalculateVersion$_get_disableDetachedDeprecated_$ref_ej45b3_0(), null));
|
|
172
|
+
}
|
|
173
|
+
function _get_allowDetachedHead__iyebhm($this) {
|
|
170
174
|
var tmp = KProperty1;
|
|
171
|
-
return $this.
|
|
175
|
+
return $this.u2o_1.u1m($this, getPropertyCallableRef('allowDetachedHead', 1, tmp, CalculateVersion$_get_allowDetachedHead_$ref_f6r7al_0(), null));
|
|
176
|
+
}
|
|
177
|
+
function _get_disableDetached__ys8kbb($this) {
|
|
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;
|
|
172
189
|
}
|
|
173
190
|
function _get_forceSnapshot__vb3h7m($this) {
|
|
174
191
|
var tmp = KProperty1;
|
|
175
|
-
return $this.
|
|
192
|
+
return $this.v2o_1.u1m($this, getPropertyCallableRef('forceSnapshot', 1, tmp, CalculateVersion$_get_forceSnapshot_$ref_8rl68v_0(), null));
|
|
176
193
|
}
|
|
177
194
|
function _get_releaseBranch__pqrgbs($this) {
|
|
178
195
|
var tmp = KProperty1;
|
|
179
|
-
return $this.
|
|
196
|
+
return $this.w2o_1.u1m($this, getPropertyCallableRef('releaseBranch', 1, tmp, CalculateVersion$_get_releaseBranch_$ref_3xh47v_0(), null));
|
|
180
197
|
}
|
|
181
198
|
function _get_format__qlarck($this) {
|
|
182
199
|
var tmp = KProperty1;
|
|
183
|
-
return $this.
|
|
200
|
+
return $this.x2o_1.u1m($this, getPropertyCallableRef('format', 1, tmp, CalculateVersion$_get_format_$ref_clhcb9_0(), null));
|
|
184
201
|
}
|
|
185
202
|
function _get_majorRegex__5j6ypp($this) {
|
|
186
203
|
var tmp = KProperty1;
|
|
187
|
-
return $this.
|
|
204
|
+
return $this.y2o_1.u1m($this, getPropertyCallableRef('majorRegex', 1, tmp, CalculateVersion$_get_majorRegex_$ref_erugf6_0(), null));
|
|
188
205
|
}
|
|
189
206
|
function _get_minorRegex__20z96h($this) {
|
|
190
207
|
var tmp = KProperty1;
|
|
191
|
-
return $this.
|
|
208
|
+
return $this.z2o_1.u1m($this, getPropertyCallableRef('minorRegex', 1, tmp, CalculateVersion$_get_minorRegex_$ref_u1fzja_0(), null));
|
|
192
209
|
}
|
|
193
210
|
function _get_patchRegex__mtlu2c($this) {
|
|
194
211
|
var tmp = KProperty1;
|
|
195
|
-
return $this.
|
|
212
|
+
return $this.a2p_1.u1m($this, getPropertyCallableRef('patchRegex', 1, tmp, CalculateVersion$_get_patchRegex_$ref_124637_0(), null));
|
|
196
213
|
}
|
|
197
214
|
function _get_noneRegex__1tdbgi($this) {
|
|
198
215
|
var tmp = KProperty1;
|
|
199
|
-
return $this.
|
|
216
|
+
return $this.b2p_1.u1m($this, getPropertyCallableRef('noneRegex', 1, tmp, CalculateVersion$_get_noneRegex_$ref_vcaxfl_0(), null));
|
|
200
217
|
}
|
|
201
218
|
function _get_versionRegex__7su5ss($this) {
|
|
202
219
|
var tmp = KProperty1;
|
|
203
|
-
return $this.
|
|
220
|
+
return $this.c2p_1.u1m($this, getPropertyCallableRef('versionRegex', 1, tmp, CalculateVersion$_get_versionRegex_$ref_f466m5_0(), null));
|
|
204
221
|
}
|
|
205
222
|
function output($this, message, errorMessage) {
|
|
206
|
-
$this.
|
|
223
|
+
$this.g1c(message);
|
|
207
224
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
208
225
|
if (!errorMessage.p()) {
|
|
209
|
-
$this.
|
|
226
|
+
$this.g1c(errorMessage, VOID, true);
|
|
210
227
|
}
|
|
211
228
|
}
|
|
212
229
|
function outputJson($this, version, snapshotReasons) {
|
|
@@ -221,7 +238,7 @@
|
|
|
221
238
|
destination.v(tmp$ret$2);
|
|
222
239
|
}
|
|
223
240
|
var jsonOutput = versionSuccessResponse(new VersionData(version, isSnapshot, destination));
|
|
224
|
-
$this.
|
|
241
|
+
$this.g1c(jsonOutput);
|
|
225
242
|
}
|
|
226
243
|
function versionRegex($this) {
|
|
227
244
|
var tmp = Regex_init_$Create$(_get_noneRegex__1tdbgi($this), RegexOption_IGNORE_CASE_getInstance());
|
|
@@ -239,7 +256,7 @@
|
|
|
239
256
|
return new VersionRegex(tmp, tmp_0, tmp_1, tmp_2, tmp_3);
|
|
240
257
|
}
|
|
241
258
|
function CalculateVersion$lambda($this$context) {
|
|
242
|
-
$this$context.
|
|
259
|
+
$this$context.a1d([new ConfigFileSource($this$context.w1c_1)]);
|
|
243
260
|
return Unit_instance;
|
|
244
261
|
}
|
|
245
262
|
function CalculateVersion$_get_gitRepoArgument_$ref_ekksr7() {
|
|
@@ -272,14 +289,24 @@
|
|
|
272
289
|
return _get_implicitPatch__bjk4pa(p0);
|
|
273
290
|
};
|
|
274
291
|
}
|
|
275
|
-
function CalculateVersion$
|
|
292
|
+
function CalculateVersion$_get_disableDetachedDeprecated_$ref_ej45b3() {
|
|
293
|
+
return function (p0) {
|
|
294
|
+
return _get_disableDetachedDeprecated__wab4kc(p0);
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
function CalculateVersion$_get_disableDetachedDeprecated_$ref_ej45b3_0() {
|
|
298
|
+
return function (p0) {
|
|
299
|
+
return _get_disableDetachedDeprecated__wab4kc(p0);
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
function CalculateVersion$_get_allowDetachedHead_$ref_f6r7al() {
|
|
276
303
|
return function (p0) {
|
|
277
|
-
return
|
|
304
|
+
return _get_allowDetachedHead__iyebhm(p0);
|
|
278
305
|
};
|
|
279
306
|
}
|
|
280
|
-
function CalculateVersion$
|
|
307
|
+
function CalculateVersion$_get_allowDetachedHead_$ref_f6r7al_0() {
|
|
281
308
|
return function (p0) {
|
|
282
|
-
return
|
|
309
|
+
return _get_allowDetachedHead__iyebhm(p0);
|
|
283
310
|
};
|
|
284
311
|
}
|
|
285
312
|
function CalculateVersion$_get_forceSnapshot_$ref_8rl68v() {
|
|
@@ -357,9 +384,9 @@
|
|
|
357
384
|
var tmp;
|
|
358
385
|
if (!(it == null)) {
|
|
359
386
|
// Inline function 'com.github.ajalt.clikt.parameters.options.OptionTransformContext.require' call
|
|
360
|
-
if (!$tmp4_check_this.
|
|
387
|
+
if (!$tmp4_check_this.jo(it)) {
|
|
361
388
|
var tmp$ret$3 = $message;
|
|
362
|
-
$this$copy.
|
|
389
|
+
$this$copy.d1m(tmp$ret$3);
|
|
363
390
|
}
|
|
364
391
|
tmp = Unit_instance;
|
|
365
392
|
}
|
|
@@ -382,28 +409,32 @@
|
|
|
382
409
|
var tmp = this;
|
|
383
410
|
var tmp_0 = optional(argument(this, 'git-repo'));
|
|
384
411
|
var tmp_1 = KProperty1;
|
|
385
|
-
tmp.
|
|
412
|
+
tmp.q2o_1 = tmp_0.a1m(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, CalculateVersion$_get_gitRepoArgument_$ref_ekksr7(), null));
|
|
386
413
|
var tmp_2 = this;
|
|
387
414
|
var tmp_3 = option(this, ['--git-repo'], VOID, VOID, VOID, 'PWD');
|
|
388
415
|
var tmp_4 = KProperty1;
|
|
389
|
-
tmp_2.
|
|
416
|
+
tmp_2.r2o_1 = tmp_3.e1n(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, CalculateVersion$_get_gitRepoOption_$ref_ms8ohh(), null));
|
|
390
417
|
var tmp_5 = this;
|
|
391
418
|
var tmp_6 = default_0(boolean(option(this, [])), true);
|
|
392
419
|
var tmp_7 = KProperty1;
|
|
393
|
-
tmp_5.
|
|
420
|
+
tmp_5.s2o_1 = tmp_6.e1n(this, getPropertyCallableRef('implicitPatch', 1, tmp_7, CalculateVersion$_get_implicitPatch_$ref_8lm4hh(), null));
|
|
394
421
|
var tmp_8 = this;
|
|
395
|
-
var tmp_9 =
|
|
422
|
+
var tmp_9 = boolean(option(this, ['--disable-detached'], VOID, VOID, true));
|
|
396
423
|
var tmp_10 = KProperty1;
|
|
397
|
-
tmp_8.
|
|
424
|
+
tmp_8.t2o_1 = tmp_9.e1n(this, getPropertyCallableRef('disableDetachedDeprecated', 1, tmp_10, CalculateVersion$_get_disableDetachedDeprecated_$ref_ej45b3(), null));
|
|
398
425
|
var tmp_11 = this;
|
|
399
|
-
var tmp_12 =
|
|
426
|
+
var tmp_12 = boolean(option(this, ['--allow-detached-head']));
|
|
400
427
|
var tmp_13 = KProperty1;
|
|
401
|
-
tmp_11.
|
|
428
|
+
tmp_11.u2o_1 = tmp_12.e1n(this, getPropertyCallableRef('allowDetachedHead', 1, tmp_13, CalculateVersion$_get_allowDetachedHead_$ref_f6r7al(), null));
|
|
402
429
|
var tmp_14 = this;
|
|
403
|
-
var tmp_15 = option(this, []);
|
|
430
|
+
var tmp_15 = default_0(boolean(option(this, [])), false);
|
|
404
431
|
var tmp_16 = KProperty1;
|
|
405
|
-
tmp_14.
|
|
432
|
+
tmp_14.v2o_1 = tmp_15.e1n(this, getPropertyCallableRef('forceSnapshot', 1, tmp_16, CalculateVersion$_get_forceSnapshot_$ref_8rl68v(), null));
|
|
406
433
|
var tmp_17 = this;
|
|
434
|
+
var tmp_18 = option(this, []);
|
|
435
|
+
var tmp_19 = KProperty1;
|
|
436
|
+
tmp_17.w2o_1 = tmp_18.e1n(this, getPropertyCallableRef('releaseBranch', 1, tmp_19, CalculateVersion$_get_releaseBranch_$ref_3xh47v(), null));
|
|
437
|
+
var tmp_20 = this;
|
|
407
438
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
408
439
|
var this_0 = option(this, ['--format'], 'Output format (default: text). Use json for structured data with version, snapshot status, and diagnostic flags.');
|
|
409
440
|
// Inline function 'kotlin.enumValues' call
|
|
@@ -423,39 +454,39 @@
|
|
|
423
454
|
destination.p2(tmp$ret$4, element);
|
|
424
455
|
}
|
|
425
456
|
var tmp$ret$0 = choice(this_0, destination, VOID, true);
|
|
426
|
-
var
|
|
427
|
-
var tmp_19 = KProperty1;
|
|
428
|
-
tmp_17.u2o_1 = tmp_18.c1n(this, getPropertyCallableRef('format', 1, tmp_19, CalculateVersion$_get_format_$ref_clhcb9(), null));
|
|
429
|
-
var tmp_20 = this;
|
|
430
|
-
var tmp_21 = default_0(option(this, []), Defaults_getInstance().go_1.tb_1);
|
|
457
|
+
var tmp_21 = default_0(tmp$ret$0, OutputFormat_TEXT_getInstance());
|
|
431
458
|
var tmp_22 = KProperty1;
|
|
432
|
-
tmp_20.
|
|
459
|
+
tmp_20.x2o_1 = tmp_21.e1n(this, getPropertyCallableRef('format', 1, tmp_22, CalculateVersion$_get_format_$ref_clhcb9(), null));
|
|
433
460
|
var tmp_23 = this;
|
|
434
|
-
var tmp_24 = default_0(option(this, []), Defaults_getInstance().
|
|
461
|
+
var tmp_24 = default_0(option(this, []), Defaults_getInstance().ho_1.tb_1);
|
|
435
462
|
var tmp_25 = KProperty1;
|
|
436
|
-
tmp_23.
|
|
463
|
+
tmp_23.y2o_1 = tmp_24.e1n(this, getPropertyCallableRef('majorRegex', 1, tmp_25, CalculateVersion$_get_majorRegex_$ref_erugf6(), null));
|
|
437
464
|
var tmp_26 = this;
|
|
438
|
-
var tmp_27 = default_0(option(this, []), Defaults_getInstance().
|
|
465
|
+
var tmp_27 = default_0(option(this, []), Defaults_getInstance().go_1.tb_1);
|
|
439
466
|
var tmp_28 = KProperty1;
|
|
440
|
-
tmp_26.
|
|
467
|
+
tmp_26.z2o_1 = tmp_27.e1n(this, getPropertyCallableRef('minorRegex', 1, tmp_28, CalculateVersion$_get_minorRegex_$ref_u1fzja(), null));
|
|
441
468
|
var tmp_29 = this;
|
|
442
|
-
var tmp_30 = default_0(option(this, []), Defaults_getInstance().
|
|
469
|
+
var tmp_30 = default_0(option(this, []), Defaults_getInstance().fo_1.tb_1);
|
|
443
470
|
var tmp_31 = KProperty1;
|
|
444
|
-
tmp_29.
|
|
471
|
+
tmp_29.a2p_1 = tmp_30.e1n(this, getPropertyCallableRef('patchRegex', 1, tmp_31, CalculateVersion$_get_patchRegex_$ref_124637(), null));
|
|
445
472
|
var tmp_32 = this;
|
|
473
|
+
var tmp_33 = default_0(option(this, []), Defaults_getInstance().eo_1.tb_1);
|
|
474
|
+
var tmp_34 = KProperty1;
|
|
475
|
+
tmp_32.b2p_1 = tmp_33.e1n(this, getPropertyCallableRef('noneRegex', 1, tmp_34, CalculateVersion$_get_noneRegex_$ref_vcaxfl(), null));
|
|
476
|
+
var tmp_35 = this;
|
|
446
477
|
var tmp0 = option(this, []);
|
|
447
478
|
// Inline function 'com.github.ajalt.clikt.parameters.options.check' call
|
|
448
479
|
var message = "version regex must include groups named 'major', 'minor', 'patch', and 'none'.";
|
|
449
480
|
// Inline function 'com.github.ajalt.clikt.parameters.options.check' call
|
|
450
481
|
// Inline function 'com.github.ajalt.clikt.parameters.options.validate' call
|
|
451
|
-
var
|
|
452
|
-
var
|
|
453
|
-
var
|
|
454
|
-
var
|
|
455
|
-
var
|
|
456
|
-
|
|
457
|
-
}
|
|
458
|
-
protoOf(CalculateVersion).
|
|
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));
|
|
486
|
+
var tmp_40 = KProperty1;
|
|
487
|
+
tmp_35.c2p_1 = tmp_39.e1n(this, getPropertyCallableRef('versionRegex', 1, tmp_40, CalculateVersion$_get_versionRegex_$ref_f466m5(), null));
|
|
488
|
+
}
|
|
489
|
+
protoOf(CalculateVersion).t1d = function () {
|
|
459
490
|
var tmp = new TaggerCore(new GitAdapter(_get_workingDirectory__eyfbj(this)));
|
|
460
491
|
var tmp_0 = _get_implicitPatch__bjk4pa(this);
|
|
461
492
|
var tmp_1 = _get_disableDetached__ys8kbb(this);
|
|
@@ -467,10 +498,10 @@
|
|
|
467
498
|
if ($this$run instanceof Success) {
|
|
468
499
|
switch (_get_format__qlarck(this).y2_1) {
|
|
469
500
|
case 1:
|
|
470
|
-
outputJson(this, $this$run.
|
|
501
|
+
outputJson(this, $this$run.ko_1, $this$run.lo_1);
|
|
471
502
|
break;
|
|
472
503
|
case 0:
|
|
473
|
-
output(this, $this$run.
|
|
504
|
+
output(this, $this$run.ko_1, $this$run.lo_1);
|
|
474
505
|
break;
|
|
475
506
|
default:
|
|
476
507
|
noWhenBranchMatchedException();
|
|
@@ -480,7 +511,7 @@
|
|
|
480
511
|
if ($this$run instanceof Failure) {
|
|
481
512
|
switch (_get_format__qlarck(this).y2_1) {
|
|
482
513
|
case 1:
|
|
483
|
-
this.
|
|
514
|
+
this.g1c(errorResponse($this$run.ba(), 'CONFIGURATION_ERROR'));
|
|
484
515
|
throw new CliktError('', VOID, 1, false);
|
|
485
516
|
case 0:
|
|
486
517
|
throw new CliktError($this$run.ba());
|
|
@@ -522,12 +553,12 @@
|
|
|
522
553
|
var _iterator__ex2g4s_0 = this_0.r();
|
|
523
554
|
while (_iterator__ex2g4s_0.s()) {
|
|
524
555
|
var item = _iterator__ex2g4s_0.t();
|
|
525
|
-
var tmp$ret$2 = Companion_instance_0.
|
|
556
|
+
var tmp$ret$2 = Companion_instance_0.w1r(get_jsonPrimitive(item).y2c());
|
|
526
557
|
destination.v(tmp$ret$2);
|
|
527
558
|
}
|
|
528
559
|
return destination;
|
|
529
560
|
}
|
|
530
|
-
return Companion_instance_0.
|
|
561
|
+
return Companion_instance_0.v1r(get_jsonPrimitive(cursor).y2c());
|
|
531
562
|
} catch ($p) {
|
|
532
563
|
if ($p instanceof IllegalArgumentException) {
|
|
533
564
|
var _unused_var__etf5q3 = $p;
|
|
@@ -538,9 +569,9 @@
|
|
|
538
569
|
}
|
|
539
570
|
}
|
|
540
571
|
function parts($this, $receiver) {
|
|
541
|
-
var tmp0_safe_receiver = $receiver.
|
|
572
|
+
var tmp0_safe_receiver = $receiver.h1e();
|
|
542
573
|
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.
|
|
574
|
+
return tmp1_elvis_lhs == null ? listOf(kebabToCamelCase($this, Companion_instance_1.x1r($receiver))) : tmp1_elvis_lhs;
|
|
544
575
|
}
|
|
545
576
|
function kebabToCamelCase($this, $receiver) {
|
|
546
577
|
// Inline function 'kotlin.text.toRegex' call
|
|
@@ -550,7 +581,7 @@
|
|
|
550
581
|
return pattern.lc($receiver, transform);
|
|
551
582
|
}
|
|
552
583
|
function readConfigFileAsJsonElement($this) {
|
|
553
|
-
var pwd = $this.
|
|
584
|
+
var pwd = $this.d2p_1('PWD');
|
|
554
585
|
var tmp0_elvis_lhs = readFromFile('' + pwd + '/.tagger');
|
|
555
586
|
var tmp;
|
|
556
587
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -562,19 +593,19 @@
|
|
|
562
593
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
563
594
|
var this_0 = Default_getInstance();
|
|
564
595
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
565
|
-
var this_1 = this_0.
|
|
596
|
+
var this_1 = this_0.as();
|
|
566
597
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
567
598
|
var this_2 = serializer(this_1, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
568
599
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
569
|
-
var config = this_0.
|
|
600
|
+
var config = this_0.q2a(tmp$ret$1, fileContents);
|
|
570
601
|
// Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
|
|
571
602
|
var this_3 = Default_getInstance();
|
|
572
603
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
573
|
-
var this_4 = this_3.
|
|
604
|
+
var this_4 = this_3.as();
|
|
574
605
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
575
606
|
var this_5 = serializer(this_4, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
576
607
|
var tmp$ret$4 = isInterface(this_5, KSerializer) ? this_5 : THROW_CCE();
|
|
577
|
-
var configAsElement = this_3.
|
|
608
|
+
var configAsElement = this_3.r2a(tmp$ret$4, config);
|
|
578
609
|
return configAsElement;
|
|
579
610
|
}
|
|
580
611
|
function ConfigFileSource$kebabToCamelCase$lambda(it) {
|
|
@@ -585,9 +616,9 @@
|
|
|
585
616
|
return toString(this_0).toUpperCase();
|
|
586
617
|
}
|
|
587
618
|
function ConfigFileSource(envvarReader) {
|
|
588
|
-
this.
|
|
619
|
+
this.d2p_1 = envvarReader;
|
|
589
620
|
}
|
|
590
|
-
protoOf(ConfigFileSource).
|
|
621
|
+
protoOf(ConfigFileSource).g1n = function (context, option) {
|
|
591
622
|
var tmp0_elvis_lhs = readConfigFileAsJsonElement(this);
|
|
592
623
|
var tmp;
|
|
593
624
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -600,11 +631,11 @@
|
|
|
600
631
|
};
|
|
601
632
|
function _get_file__d6iv67($this) {
|
|
602
633
|
var tmp = KProperty1;
|
|
603
|
-
return $this.
|
|
634
|
+
return $this.t2p_1.u1m($this, getPropertyCallableRef('file', 1, tmp, GenerateSettingsFile$_get_file_$ref_3dvoj2_0(), null));
|
|
604
635
|
}
|
|
605
636
|
function _get_merge__eb7eqv($this) {
|
|
606
637
|
var tmp = KProperty1;
|
|
607
|
-
return $this.
|
|
638
|
+
return $this.u2p_1.u1m($this, getPropertyCallableRef('merge', 1, tmp, GenerateSettingsFile$_get_merge_$ref_3aq3hk_0(), null));
|
|
608
639
|
}
|
|
609
640
|
function mergeJson($this, defaultConfig, originalData) {
|
|
610
641
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
@@ -627,9 +658,9 @@
|
|
|
627
658
|
} else {
|
|
628
659
|
tmp = value;
|
|
629
660
|
}
|
|
630
|
-
builder.
|
|
661
|
+
builder.g2d(key, tmp);
|
|
631
662
|
}
|
|
632
|
-
var mergeData = builder.
|
|
663
|
+
var mergeData = builder.a2c();
|
|
633
664
|
return mergeData;
|
|
634
665
|
}
|
|
635
666
|
function GenerateSettingsFile$_get_file_$ref_3dvoj2() {
|
|
@@ -653,8 +684,8 @@
|
|
|
653
684
|
};
|
|
654
685
|
}
|
|
655
686
|
function GenerateSettingsFile$run$lambda($this$Json) {
|
|
656
|
-
$this$Json.
|
|
657
|
-
$this$Json.
|
|
687
|
+
$this$Json.m2b_1 = true;
|
|
688
|
+
$this$Json.i2b_1 = true;
|
|
658
689
|
return Unit_instance;
|
|
659
690
|
}
|
|
660
691
|
function GenerateSettingsFile() {
|
|
@@ -662,22 +693,22 @@
|
|
|
662
693
|
var tmp = this;
|
|
663
694
|
var tmp_0 = option(this, []);
|
|
664
695
|
var tmp_1 = KProperty1;
|
|
665
|
-
tmp.
|
|
696
|
+
tmp.t2p_1 = tmp_0.e1n(this, getPropertyCallableRef('file', 1, tmp_1, GenerateSettingsFile$_get_file_$ref_3dvoj2(), null));
|
|
666
697
|
var tmp_2 = this;
|
|
667
698
|
var tmp_3 = boolean(option(this, []));
|
|
668
699
|
var tmp_4 = KProperty1;
|
|
669
|
-
tmp_2.
|
|
700
|
+
tmp_2.u2p_1 = tmp_3.e1n(this, getPropertyCallableRef('merge', 1, tmp_4, GenerateSettingsFile$_get_merge_$ref_3aq3hk(), null));
|
|
670
701
|
}
|
|
671
|
-
protoOf(GenerateSettingsFile).
|
|
702
|
+
protoOf(GenerateSettingsFile).t1d = function () {
|
|
672
703
|
var prettyJsonFormatter = Json(VOID, GenerateSettingsFile$run$lambda);
|
|
673
704
|
// Inline function 'kotlinx.serialization.json.encodeToJsonElement' call
|
|
674
705
|
var value = get_runtimeDefaultConfig();
|
|
675
706
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
676
|
-
var this_0 = prettyJsonFormatter.
|
|
707
|
+
var this_0 = prettyJsonFormatter.as();
|
|
677
708
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
678
709
|
var this_1 = serializer(this_0, createKType(getKClass(TaggerConfig), arrayOf([]), false));
|
|
679
710
|
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
680
|
-
var defaultConfig = prettyJsonFormatter.
|
|
711
|
+
var defaultConfig = prettyJsonFormatter.r2a(tmp$ret$1, value);
|
|
681
712
|
// Inline function 'kotlin.text.orEmpty' call
|
|
682
713
|
var tmp0_elvis_lhs = _get_file__d6iv67(this);
|
|
683
714
|
// Inline function 'kotlin.text.ifBlank' call
|
|
@@ -689,14 +720,14 @@
|
|
|
689
720
|
tmp = this_2;
|
|
690
721
|
}
|
|
691
722
|
var fileName = tmp;
|
|
692
|
-
var pwd = this.
|
|
723
|
+
var pwd = this.o19().f1a_1('PWD');
|
|
693
724
|
var settingsFile = '' + pwd + '/' + fileName;
|
|
694
725
|
var existingFileData = readFromFile(settingsFile);
|
|
695
726
|
var tmp_0;
|
|
696
727
|
if (!(existingFileData == null)) {
|
|
697
728
|
var tmp_1;
|
|
698
729
|
if (_get_merge__eb7eqv(this) === true) {
|
|
699
|
-
var originalData = prettyJsonFormatter.
|
|
730
|
+
var originalData = prettyJsonFormatter.s2a(existingFileData);
|
|
700
731
|
tmp_1 = mergeJson(this, defaultConfig, originalData);
|
|
701
732
|
} else {
|
|
702
733
|
throw new CliktError('File already exists.');
|
|
@@ -709,27 +740,27 @@
|
|
|
709
740
|
if (_get_file__d6iv67(this) == null) {
|
|
710
741
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
711
742
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
712
|
-
var this_3 = prettyJsonFormatter.
|
|
743
|
+
var this_3 = prettyJsonFormatter.as();
|
|
713
744
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
714
745
|
var this_4 = serializer(this_3, createKType(getKClass(JsonElement), arrayOf([]), false));
|
|
715
746
|
var tmp$ret$7 = isInterface(this_4, KSerializer) ? this_4 : THROW_CCE();
|
|
716
|
-
var tmp$ret$6 = prettyJsonFormatter.
|
|
717
|
-
this.
|
|
747
|
+
var tmp$ret$6 = prettyJsonFormatter.p2a(tmp$ret$7, outputConfig);
|
|
748
|
+
this.g1c(tmp$ret$6);
|
|
718
749
|
} else {
|
|
719
750
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
720
751
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
721
|
-
var this_5 = prettyJsonFormatter.
|
|
752
|
+
var this_5 = prettyJsonFormatter.as();
|
|
722
753
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
723
754
|
var this_6 = serializer(this_5, createKType(getKClass(JsonElement), arrayOf([]), false));
|
|
724
755
|
var tmp$ret$10 = isInterface(this_6, KSerializer) ? this_6 : THROW_CCE();
|
|
725
|
-
var tmp$ret$9 = prettyJsonFormatter.
|
|
756
|
+
var tmp$ret$9 = prettyJsonFormatter.p2a(tmp$ret$10, outputConfig);
|
|
726
757
|
writeToFile(tmp$ret$9, settingsFile);
|
|
727
|
-
this.
|
|
758
|
+
this.g1c('Saved to ' + fileName);
|
|
728
759
|
}
|
|
729
760
|
};
|
|
730
761
|
function Companion() {
|
|
731
762
|
}
|
|
732
|
-
protoOf(Companion).
|
|
763
|
+
protoOf(Companion).a2d = function () {
|
|
733
764
|
return $serializer_getInstance();
|
|
734
765
|
};
|
|
735
766
|
var Companion_instance_2;
|
|
@@ -739,59 +770,59 @@
|
|
|
739
770
|
function $serializer() {
|
|
740
771
|
$serializer_instance = this;
|
|
741
772
|
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.
|
|
773
|
+
tmp0_serialDesc.uy('status', false);
|
|
774
|
+
tmp0_serialDesc.uy('data', false);
|
|
775
|
+
this.v2p_1 = tmp0_serialDesc;
|
|
776
|
+
}
|
|
777
|
+
protoOf($serializer).w2p = function (encoder, value) {
|
|
778
|
+
var tmp0_desc = this.v2p_1;
|
|
779
|
+
var tmp1_output = encoder.lr(tmp0_desc);
|
|
780
|
+
tmp1_output.zs(tmp0_desc, 0, value.x2p_1);
|
|
781
|
+
tmp1_output.bt(tmp0_desc, 1, $serializer_getInstance_0(), value.y2p_1);
|
|
782
|
+
tmp1_output.mr(tmp0_desc);
|
|
752
783
|
};
|
|
753
|
-
protoOf($serializer).
|
|
754
|
-
return this.
|
|
784
|
+
protoOf($serializer).po = function (encoder, value) {
|
|
785
|
+
return this.w2p(encoder, value instanceof VersionSuccessResponse ? value : THROW_CCE());
|
|
755
786
|
};
|
|
756
|
-
protoOf($serializer).
|
|
757
|
-
var tmp0_desc = this.
|
|
787
|
+
protoOf($serializer).qo = function (decoder) {
|
|
788
|
+
var tmp0_desc = this.v2p_1;
|
|
758
789
|
var tmp1_flag = true;
|
|
759
790
|
var tmp2_index = 0;
|
|
760
791
|
var tmp3_bitMask0 = 0;
|
|
761
792
|
var tmp4_local0 = null;
|
|
762
793
|
var tmp5_local1 = null;
|
|
763
|
-
var tmp6_input = decoder.
|
|
764
|
-
if (tmp6_input.
|
|
765
|
-
tmp4_local0 = tmp6_input.
|
|
794
|
+
var tmp6_input = decoder.lr(tmp0_desc);
|
|
795
|
+
if (tmp6_input.bs()) {
|
|
796
|
+
tmp4_local0 = tmp6_input.vr(tmp0_desc, 0);
|
|
766
797
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
767
|
-
tmp5_local1 = tmp6_input.
|
|
798
|
+
tmp5_local1 = tmp6_input.xr(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
768
799
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
769
800
|
} else
|
|
770
801
|
while (tmp1_flag) {
|
|
771
|
-
tmp2_index = tmp6_input.
|
|
802
|
+
tmp2_index = tmp6_input.cs(tmp0_desc);
|
|
772
803
|
switch (tmp2_index) {
|
|
773
804
|
case -1:
|
|
774
805
|
tmp1_flag = false;
|
|
775
806
|
break;
|
|
776
807
|
case 0:
|
|
777
|
-
tmp4_local0 = tmp6_input.
|
|
808
|
+
tmp4_local0 = tmp6_input.vr(tmp0_desc, 0);
|
|
778
809
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
779
810
|
break;
|
|
780
811
|
case 1:
|
|
781
|
-
tmp5_local1 = tmp6_input.
|
|
812
|
+
tmp5_local1 = tmp6_input.xr(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
782
813
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
783
814
|
break;
|
|
784
815
|
default:
|
|
785
816
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
786
817
|
}
|
|
787
818
|
}
|
|
788
|
-
tmp6_input.
|
|
819
|
+
tmp6_input.mr(tmp0_desc);
|
|
789
820
|
return VersionSuccessResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
790
821
|
};
|
|
791
|
-
protoOf($serializer).
|
|
792
|
-
return this.
|
|
822
|
+
protoOf($serializer).oo = function () {
|
|
823
|
+
return this.v2p_1;
|
|
793
824
|
};
|
|
794
|
-
protoOf($serializer).
|
|
825
|
+
protoOf($serializer).wy = function () {
|
|
795
826
|
// Inline function 'kotlin.arrayOf' call
|
|
796
827
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
797
828
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -805,25 +836,25 @@
|
|
|
805
836
|
}
|
|
806
837
|
function VersionSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, $this) {
|
|
807
838
|
if (!(3 === (3 & seen0))) {
|
|
808
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
839
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().v2p_1);
|
|
809
840
|
}
|
|
810
|
-
$this.
|
|
811
|
-
$this.
|
|
841
|
+
$this.x2p_1 = status;
|
|
842
|
+
$this.y2p_1 = data;
|
|
812
843
|
return $this;
|
|
813
844
|
}
|
|
814
845
|
function VersionSuccessResponse_init_$Create$(seen0, status, data, serializationConstructorMarker) {
|
|
815
846
|
return VersionSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, objectCreate(protoOf(VersionSuccessResponse)));
|
|
816
847
|
}
|
|
817
848
|
function VersionSuccessResponse(status, data) {
|
|
818
|
-
this.
|
|
819
|
-
this.
|
|
849
|
+
this.x2p_1 = status;
|
|
850
|
+
this.y2p_1 = data;
|
|
820
851
|
}
|
|
821
852
|
protoOf(VersionSuccessResponse).toString = function () {
|
|
822
|
-
return 'VersionSuccessResponse(status=' + this.
|
|
853
|
+
return 'VersionSuccessResponse(status=' + this.x2p_1 + ', data=' + this.y2p_1.toString() + ')';
|
|
823
854
|
};
|
|
824
855
|
protoOf(VersionSuccessResponse).hashCode = function () {
|
|
825
|
-
var result = getStringHashCode(this.
|
|
826
|
-
result = imul(result, 31) + this.
|
|
856
|
+
var result = getStringHashCode(this.x2p_1);
|
|
857
|
+
result = imul(result, 31) + this.y2p_1.hashCode() | 0;
|
|
827
858
|
return result;
|
|
828
859
|
};
|
|
829
860
|
protoOf(VersionSuccessResponse).equals = function (other) {
|
|
@@ -831,9 +862,9 @@
|
|
|
831
862
|
return true;
|
|
832
863
|
if (!(other instanceof VersionSuccessResponse))
|
|
833
864
|
return false;
|
|
834
|
-
if (!(this.
|
|
865
|
+
if (!(this.x2p_1 === other.x2p_1))
|
|
835
866
|
return false;
|
|
836
|
-
if (!this.
|
|
867
|
+
if (!this.y2p_1.equals(other.y2p_1))
|
|
837
868
|
return false;
|
|
838
869
|
return true;
|
|
839
870
|
};
|
|
@@ -847,7 +878,7 @@
|
|
|
847
878
|
// Inline function 'kotlin.arrayOf' call
|
|
848
879
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
849
880
|
// Inline function 'kotlin.js.asDynamic' call
|
|
850
|
-
tmp.
|
|
881
|
+
tmp.z2p_1 = [null, null, lazy(tmp_0, VersionData$Companion$$childSerializers$_anonymous__gd9ivc)];
|
|
851
882
|
}
|
|
852
883
|
var Companion_instance_3;
|
|
853
884
|
function Companion_getInstance_0() {
|
|
@@ -858,73 +889,73 @@
|
|
|
858
889
|
function $serializer_0() {
|
|
859
890
|
$serializer_instance_0 = this;
|
|
860
891
|
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.
|
|
892
|
+
tmp0_serialDesc.uy('version', false);
|
|
893
|
+
tmp0_serialDesc.uy('snapshot', false);
|
|
894
|
+
tmp0_serialDesc.uy('snapshotReasons', true);
|
|
895
|
+
this.a2q_1 = tmp0_serialDesc;
|
|
896
|
+
}
|
|
897
|
+
protoOf($serializer_0).b2q = function (encoder, value) {
|
|
898
|
+
var tmp0_desc = this.a2q_1;
|
|
899
|
+
var tmp1_output = encoder.lr(tmp0_desc);
|
|
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);
|
|
874
905
|
}
|
|
875
|
-
tmp1_output.
|
|
906
|
+
tmp1_output.mr(tmp0_desc);
|
|
876
907
|
};
|
|
877
|
-
protoOf($serializer_0).
|
|
878
|
-
return this.
|
|
908
|
+
protoOf($serializer_0).po = function (encoder, value) {
|
|
909
|
+
return this.b2q(encoder, value instanceof VersionData ? value : THROW_CCE());
|
|
879
910
|
};
|
|
880
|
-
protoOf($serializer_0).
|
|
881
|
-
var tmp0_desc = this.
|
|
911
|
+
protoOf($serializer_0).qo = function (decoder) {
|
|
912
|
+
var tmp0_desc = this.a2q_1;
|
|
882
913
|
var tmp1_flag = true;
|
|
883
914
|
var tmp2_index = 0;
|
|
884
915
|
var tmp3_bitMask0 = 0;
|
|
885
916
|
var tmp4_local0 = null;
|
|
886
917
|
var tmp5_local1 = false;
|
|
887
918
|
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.
|
|
919
|
+
var tmp7_input = decoder.lr(tmp0_desc);
|
|
920
|
+
var tmp8_cached = Companion_getInstance_0().z2p_1;
|
|
921
|
+
if (tmp7_input.bs()) {
|
|
922
|
+
tmp4_local0 = tmp7_input.vr(tmp0_desc, 0);
|
|
892
923
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
893
|
-
tmp5_local1 = tmp7_input.
|
|
924
|
+
tmp5_local1 = tmp7_input.nr(tmp0_desc, 1);
|
|
894
925
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
895
|
-
tmp6_local2 = tmp7_input.
|
|
926
|
+
tmp6_local2 = tmp7_input.xr(tmp0_desc, 2, tmp8_cached[2].m1(), tmp6_local2);
|
|
896
927
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
897
928
|
} else
|
|
898
929
|
while (tmp1_flag) {
|
|
899
|
-
tmp2_index = tmp7_input.
|
|
930
|
+
tmp2_index = tmp7_input.cs(tmp0_desc);
|
|
900
931
|
switch (tmp2_index) {
|
|
901
932
|
case -1:
|
|
902
933
|
tmp1_flag = false;
|
|
903
934
|
break;
|
|
904
935
|
case 0:
|
|
905
|
-
tmp4_local0 = tmp7_input.
|
|
936
|
+
tmp4_local0 = tmp7_input.vr(tmp0_desc, 0);
|
|
906
937
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
907
938
|
break;
|
|
908
939
|
case 1:
|
|
909
|
-
tmp5_local1 = tmp7_input.
|
|
940
|
+
tmp5_local1 = tmp7_input.nr(tmp0_desc, 1);
|
|
910
941
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
911
942
|
break;
|
|
912
943
|
case 2:
|
|
913
|
-
tmp6_local2 = tmp7_input.
|
|
944
|
+
tmp6_local2 = tmp7_input.xr(tmp0_desc, 2, tmp8_cached[2].m1(), tmp6_local2);
|
|
914
945
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
915
946
|
break;
|
|
916
947
|
default:
|
|
917
948
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
918
949
|
}
|
|
919
950
|
}
|
|
920
|
-
tmp7_input.
|
|
951
|
+
tmp7_input.mr(tmp0_desc);
|
|
921
952
|
return VersionData_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
922
953
|
};
|
|
923
|
-
protoOf($serializer_0).
|
|
924
|
-
return this.
|
|
954
|
+
protoOf($serializer_0).oo = function () {
|
|
955
|
+
return this.a2q_1;
|
|
925
956
|
};
|
|
926
|
-
protoOf($serializer_0).
|
|
927
|
-
var tmp0_cached = Companion_getInstance_0().
|
|
957
|
+
protoOf($serializer_0).wy = function () {
|
|
958
|
+
var tmp0_cached = Companion_getInstance_0().z2p_1;
|
|
928
959
|
// Inline function 'kotlin.arrayOf' call
|
|
929
960
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
930
961
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -938,14 +969,14 @@
|
|
|
938
969
|
}
|
|
939
970
|
function VersionData_init_$Init$(seen0, version, snapshot, snapshotReasons, serializationConstructorMarker, $this) {
|
|
940
971
|
if (!(3 === (3 & seen0))) {
|
|
941
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
972
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().a2q_1);
|
|
942
973
|
}
|
|
943
|
-
$this.
|
|
944
|
-
$this.
|
|
974
|
+
$this.c2q_1 = version;
|
|
975
|
+
$this.d2q_1 = snapshot;
|
|
945
976
|
if (0 === (seen0 & 4))
|
|
946
|
-
$this.
|
|
977
|
+
$this.e2q_1 = emptyList();
|
|
947
978
|
else
|
|
948
|
-
$this.
|
|
979
|
+
$this.e2q_1 = snapshotReasons;
|
|
949
980
|
return $this;
|
|
950
981
|
}
|
|
951
982
|
function VersionData_init_$Create$(seen0, version, snapshot, snapshotReasons, serializationConstructorMarker) {
|
|
@@ -954,17 +985,17 @@
|
|
|
954
985
|
function VersionData(version, snapshot, snapshotReasons) {
|
|
955
986
|
Companion_getInstance_0();
|
|
956
987
|
snapshotReasons = snapshotReasons === VOID ? emptyList() : snapshotReasons;
|
|
957
|
-
this.
|
|
958
|
-
this.
|
|
959
|
-
this.
|
|
988
|
+
this.c2q_1 = version;
|
|
989
|
+
this.d2q_1 = snapshot;
|
|
990
|
+
this.e2q_1 = snapshotReasons;
|
|
960
991
|
}
|
|
961
992
|
protoOf(VersionData).toString = function () {
|
|
962
|
-
return 'VersionData(version=' + this.
|
|
993
|
+
return 'VersionData(version=' + this.c2q_1 + ', snapshot=' + this.d2q_1 + ', snapshotReasons=' + toString_0(this.e2q_1) + ')';
|
|
963
994
|
};
|
|
964
995
|
protoOf(VersionData).hashCode = function () {
|
|
965
|
-
var result = getStringHashCode(this.
|
|
966
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
967
|
-
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;
|
|
968
999
|
return result;
|
|
969
1000
|
};
|
|
970
1001
|
protoOf(VersionData).equals = function (other) {
|
|
@@ -972,17 +1003,17 @@
|
|
|
972
1003
|
return true;
|
|
973
1004
|
if (!(other instanceof VersionData))
|
|
974
1005
|
return false;
|
|
975
|
-
if (!(this.
|
|
1006
|
+
if (!(this.c2q_1 === other.c2q_1))
|
|
976
1007
|
return false;
|
|
977
|
-
if (!(this.
|
|
1008
|
+
if (!(this.d2q_1 === other.d2q_1))
|
|
978
1009
|
return false;
|
|
979
|
-
if (!equals(this.
|
|
1010
|
+
if (!equals(this.e2q_1, other.e2q_1))
|
|
980
1011
|
return false;
|
|
981
1012
|
return true;
|
|
982
1013
|
};
|
|
983
1014
|
function Companion_1() {
|
|
984
1015
|
}
|
|
985
|
-
protoOf(Companion_1).
|
|
1016
|
+
protoOf(Companion_1).a2d = function () {
|
|
986
1017
|
return $serializer_getInstance_1();
|
|
987
1018
|
};
|
|
988
1019
|
var Companion_instance_4;
|
|
@@ -992,68 +1023,68 @@
|
|
|
992
1023
|
function $serializer_1() {
|
|
993
1024
|
$serializer_instance_1 = this;
|
|
994
1025
|
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.
|
|
1026
|
+
tmp0_serialDesc.uy('status', false);
|
|
1027
|
+
tmp0_serialDesc.uy('error', false);
|
|
1028
|
+
tmp0_serialDesc.uy('code', false);
|
|
1029
|
+
this.f2q_1 = tmp0_serialDesc;
|
|
1030
|
+
}
|
|
1031
|
+
protoOf($serializer_1).g2q = function (encoder, value) {
|
|
1032
|
+
var tmp0_desc = this.f2q_1;
|
|
1033
|
+
var tmp1_output = encoder.lr(tmp0_desc);
|
|
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);
|
|
1037
|
+
tmp1_output.mr(tmp0_desc);
|
|
1007
1038
|
};
|
|
1008
|
-
protoOf($serializer_1).
|
|
1009
|
-
return this.
|
|
1039
|
+
protoOf($serializer_1).po = function (encoder, value) {
|
|
1040
|
+
return this.g2q(encoder, value instanceof ErrorResponse ? value : THROW_CCE());
|
|
1010
1041
|
};
|
|
1011
|
-
protoOf($serializer_1).
|
|
1012
|
-
var tmp0_desc = this.
|
|
1042
|
+
protoOf($serializer_1).qo = function (decoder) {
|
|
1043
|
+
var tmp0_desc = this.f2q_1;
|
|
1013
1044
|
var tmp1_flag = true;
|
|
1014
1045
|
var tmp2_index = 0;
|
|
1015
1046
|
var tmp3_bitMask0 = 0;
|
|
1016
1047
|
var tmp4_local0 = null;
|
|
1017
1048
|
var tmp5_local1 = null;
|
|
1018
1049
|
var tmp6_local2 = null;
|
|
1019
|
-
var tmp7_input = decoder.
|
|
1020
|
-
if (tmp7_input.
|
|
1021
|
-
tmp4_local0 = tmp7_input.
|
|
1050
|
+
var tmp7_input = decoder.lr(tmp0_desc);
|
|
1051
|
+
if (tmp7_input.bs()) {
|
|
1052
|
+
tmp4_local0 = tmp7_input.vr(tmp0_desc, 0);
|
|
1022
1053
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1023
|
-
tmp5_local1 = tmp7_input.
|
|
1054
|
+
tmp5_local1 = tmp7_input.vr(tmp0_desc, 1);
|
|
1024
1055
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1025
|
-
tmp6_local2 = tmp7_input.
|
|
1056
|
+
tmp6_local2 = tmp7_input.vr(tmp0_desc, 2);
|
|
1026
1057
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1027
1058
|
} else
|
|
1028
1059
|
while (tmp1_flag) {
|
|
1029
|
-
tmp2_index = tmp7_input.
|
|
1060
|
+
tmp2_index = tmp7_input.cs(tmp0_desc);
|
|
1030
1061
|
switch (tmp2_index) {
|
|
1031
1062
|
case -1:
|
|
1032
1063
|
tmp1_flag = false;
|
|
1033
1064
|
break;
|
|
1034
1065
|
case 0:
|
|
1035
|
-
tmp4_local0 = tmp7_input.
|
|
1066
|
+
tmp4_local0 = tmp7_input.vr(tmp0_desc, 0);
|
|
1036
1067
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1037
1068
|
break;
|
|
1038
1069
|
case 1:
|
|
1039
|
-
tmp5_local1 = tmp7_input.
|
|
1070
|
+
tmp5_local1 = tmp7_input.vr(tmp0_desc, 1);
|
|
1040
1071
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1041
1072
|
break;
|
|
1042
1073
|
case 2:
|
|
1043
|
-
tmp6_local2 = tmp7_input.
|
|
1074
|
+
tmp6_local2 = tmp7_input.vr(tmp0_desc, 2);
|
|
1044
1075
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1045
1076
|
break;
|
|
1046
1077
|
default:
|
|
1047
1078
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1048
1079
|
}
|
|
1049
1080
|
}
|
|
1050
|
-
tmp7_input.
|
|
1081
|
+
tmp7_input.mr(tmp0_desc);
|
|
1051
1082
|
return ErrorResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1052
1083
|
};
|
|
1053
|
-
protoOf($serializer_1).
|
|
1054
|
-
return this.
|
|
1084
|
+
protoOf($serializer_1).oo = function () {
|
|
1085
|
+
return this.f2q_1;
|
|
1055
1086
|
};
|
|
1056
|
-
protoOf($serializer_1).
|
|
1087
|
+
protoOf($serializer_1).wy = function () {
|
|
1057
1088
|
// Inline function 'kotlin.arrayOf' call
|
|
1058
1089
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1059
1090
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1067,28 +1098,28 @@
|
|
|
1067
1098
|
}
|
|
1068
1099
|
function ErrorResponse_init_$Init$(seen0, status, error, code, serializationConstructorMarker, $this) {
|
|
1069
1100
|
if (!(7 === (7 & seen0))) {
|
|
1070
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_1().
|
|
1101
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_1().f2q_1);
|
|
1071
1102
|
}
|
|
1072
|
-
$this.
|
|
1073
|
-
$this.
|
|
1074
|
-
$this.
|
|
1103
|
+
$this.h2q_1 = status;
|
|
1104
|
+
$this.i2q_1 = error;
|
|
1105
|
+
$this.j2q_1 = code;
|
|
1075
1106
|
return $this;
|
|
1076
1107
|
}
|
|
1077
1108
|
function ErrorResponse_init_$Create$(seen0, status, error, code, serializationConstructorMarker) {
|
|
1078
1109
|
return ErrorResponse_init_$Init$(seen0, status, error, code, serializationConstructorMarker, objectCreate(protoOf(ErrorResponse)));
|
|
1079
1110
|
}
|
|
1080
1111
|
function ErrorResponse(status, error, code) {
|
|
1081
|
-
this.
|
|
1082
|
-
this.
|
|
1083
|
-
this.
|
|
1112
|
+
this.h2q_1 = status;
|
|
1113
|
+
this.i2q_1 = error;
|
|
1114
|
+
this.j2q_1 = code;
|
|
1084
1115
|
}
|
|
1085
1116
|
protoOf(ErrorResponse).toString = function () {
|
|
1086
|
-
return 'ErrorResponse(status=' + this.
|
|
1117
|
+
return 'ErrorResponse(status=' + this.h2q_1 + ', error=' + this.i2q_1 + ', code=' + this.j2q_1 + ')';
|
|
1087
1118
|
};
|
|
1088
1119
|
protoOf(ErrorResponse).hashCode = function () {
|
|
1089
|
-
var result = getStringHashCode(this.
|
|
1090
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1091
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1120
|
+
var result = getStringHashCode(this.h2q_1);
|
|
1121
|
+
result = imul(result, 31) + getStringHashCode(this.i2q_1) | 0;
|
|
1122
|
+
result = imul(result, 31) + getStringHashCode(this.j2q_1) | 0;
|
|
1092
1123
|
return result;
|
|
1093
1124
|
};
|
|
1094
1125
|
protoOf(ErrorResponse).equals = function (other) {
|
|
@@ -1096,17 +1127,17 @@
|
|
|
1096
1127
|
return true;
|
|
1097
1128
|
if (!(other instanceof ErrorResponse))
|
|
1098
1129
|
return false;
|
|
1099
|
-
if (!(this.
|
|
1130
|
+
if (!(this.h2q_1 === other.h2q_1))
|
|
1100
1131
|
return false;
|
|
1101
|
-
if (!(this.
|
|
1132
|
+
if (!(this.i2q_1 === other.i2q_1))
|
|
1102
1133
|
return false;
|
|
1103
|
-
if (!(this.
|
|
1134
|
+
if (!(this.j2q_1 === other.j2q_1))
|
|
1104
1135
|
return false;
|
|
1105
1136
|
return true;
|
|
1106
1137
|
};
|
|
1107
1138
|
function Companion_2() {
|
|
1108
1139
|
}
|
|
1109
|
-
protoOf(Companion_2).
|
|
1140
|
+
protoOf(Companion_2).a2d = function () {
|
|
1110
1141
|
return $serializer_getInstance_2();
|
|
1111
1142
|
};
|
|
1112
1143
|
var Companion_instance_5;
|
|
@@ -1116,59 +1147,59 @@
|
|
|
1116
1147
|
function $serializer_2() {
|
|
1117
1148
|
$serializer_instance_2 = this;
|
|
1118
1149
|
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.
|
|
1150
|
+
tmp0_serialDesc.uy('status', false);
|
|
1151
|
+
tmp0_serialDesc.uy('data', false);
|
|
1152
|
+
this.k2q_1 = tmp0_serialDesc;
|
|
1153
|
+
}
|
|
1154
|
+
protoOf($serializer_2).l2q = function (encoder, value) {
|
|
1155
|
+
var tmp0_desc = this.k2q_1;
|
|
1156
|
+
var tmp1_output = encoder.lr(tmp0_desc);
|
|
1157
|
+
tmp1_output.zs(tmp0_desc, 0, value.m2q_1);
|
|
1158
|
+
tmp1_output.bt(tmp0_desc, 1, $serializer_getInstance_3(), value.n2q_1);
|
|
1159
|
+
tmp1_output.mr(tmp0_desc);
|
|
1129
1160
|
};
|
|
1130
|
-
protoOf($serializer_2).
|
|
1131
|
-
return this.
|
|
1161
|
+
protoOf($serializer_2).po = function (encoder, value) {
|
|
1162
|
+
return this.l2q(encoder, value instanceof TagSuccessResponse ? value : THROW_CCE());
|
|
1132
1163
|
};
|
|
1133
|
-
protoOf($serializer_2).
|
|
1134
|
-
var tmp0_desc = this.
|
|
1164
|
+
protoOf($serializer_2).qo = function (decoder) {
|
|
1165
|
+
var tmp0_desc = this.k2q_1;
|
|
1135
1166
|
var tmp1_flag = true;
|
|
1136
1167
|
var tmp2_index = 0;
|
|
1137
1168
|
var tmp3_bitMask0 = 0;
|
|
1138
1169
|
var tmp4_local0 = null;
|
|
1139
1170
|
var tmp5_local1 = null;
|
|
1140
|
-
var tmp6_input = decoder.
|
|
1141
|
-
if (tmp6_input.
|
|
1142
|
-
tmp4_local0 = tmp6_input.
|
|
1171
|
+
var tmp6_input = decoder.lr(tmp0_desc);
|
|
1172
|
+
if (tmp6_input.bs()) {
|
|
1173
|
+
tmp4_local0 = tmp6_input.vr(tmp0_desc, 0);
|
|
1143
1174
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1144
|
-
tmp5_local1 = tmp6_input.
|
|
1175
|
+
tmp5_local1 = tmp6_input.xr(tmp0_desc, 1, $serializer_getInstance_3(), tmp5_local1);
|
|
1145
1176
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1146
1177
|
} else
|
|
1147
1178
|
while (tmp1_flag) {
|
|
1148
|
-
tmp2_index = tmp6_input.
|
|
1179
|
+
tmp2_index = tmp6_input.cs(tmp0_desc);
|
|
1149
1180
|
switch (tmp2_index) {
|
|
1150
1181
|
case -1:
|
|
1151
1182
|
tmp1_flag = false;
|
|
1152
1183
|
break;
|
|
1153
1184
|
case 0:
|
|
1154
|
-
tmp4_local0 = tmp6_input.
|
|
1185
|
+
tmp4_local0 = tmp6_input.vr(tmp0_desc, 0);
|
|
1155
1186
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1156
1187
|
break;
|
|
1157
1188
|
case 1:
|
|
1158
|
-
tmp5_local1 = tmp6_input.
|
|
1189
|
+
tmp5_local1 = tmp6_input.xr(tmp0_desc, 1, $serializer_getInstance_3(), tmp5_local1);
|
|
1159
1190
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1160
1191
|
break;
|
|
1161
1192
|
default:
|
|
1162
1193
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1163
1194
|
}
|
|
1164
1195
|
}
|
|
1165
|
-
tmp6_input.
|
|
1196
|
+
tmp6_input.mr(tmp0_desc);
|
|
1166
1197
|
return TagSuccessResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1167
1198
|
};
|
|
1168
|
-
protoOf($serializer_2).
|
|
1169
|
-
return this.
|
|
1199
|
+
protoOf($serializer_2).oo = function () {
|
|
1200
|
+
return this.k2q_1;
|
|
1170
1201
|
};
|
|
1171
|
-
protoOf($serializer_2).
|
|
1202
|
+
protoOf($serializer_2).wy = function () {
|
|
1172
1203
|
// Inline function 'kotlin.arrayOf' call
|
|
1173
1204
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1174
1205
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1182,25 +1213,25 @@
|
|
|
1182
1213
|
}
|
|
1183
1214
|
function TagSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, $this) {
|
|
1184
1215
|
if (!(3 === (3 & seen0))) {
|
|
1185
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1216
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().k2q_1);
|
|
1186
1217
|
}
|
|
1187
|
-
$this.
|
|
1188
|
-
$this.
|
|
1218
|
+
$this.m2q_1 = status;
|
|
1219
|
+
$this.n2q_1 = data;
|
|
1189
1220
|
return $this;
|
|
1190
1221
|
}
|
|
1191
1222
|
function TagSuccessResponse_init_$Create$(seen0, status, data, serializationConstructorMarker) {
|
|
1192
1223
|
return TagSuccessResponse_init_$Init$(seen0, status, data, serializationConstructorMarker, objectCreate(protoOf(TagSuccessResponse)));
|
|
1193
1224
|
}
|
|
1194
1225
|
function TagSuccessResponse(status, data) {
|
|
1195
|
-
this.
|
|
1196
|
-
this.
|
|
1226
|
+
this.m2q_1 = status;
|
|
1227
|
+
this.n2q_1 = data;
|
|
1197
1228
|
}
|
|
1198
1229
|
protoOf(TagSuccessResponse).toString = function () {
|
|
1199
|
-
return 'TagSuccessResponse(status=' + this.
|
|
1230
|
+
return 'TagSuccessResponse(status=' + this.m2q_1 + ', data=' + this.n2q_1.toString() + ')';
|
|
1200
1231
|
};
|
|
1201
1232
|
protoOf(TagSuccessResponse).hashCode = function () {
|
|
1202
|
-
var result = getStringHashCode(this.
|
|
1203
|
-
result = imul(result, 31) + this.
|
|
1233
|
+
var result = getStringHashCode(this.m2q_1);
|
|
1234
|
+
result = imul(result, 31) + this.n2q_1.hashCode() | 0;
|
|
1204
1235
|
return result;
|
|
1205
1236
|
};
|
|
1206
1237
|
protoOf(TagSuccessResponse).equals = function (other) {
|
|
@@ -1208,9 +1239,9 @@
|
|
|
1208
1239
|
return true;
|
|
1209
1240
|
if (!(other instanceof TagSuccessResponse))
|
|
1210
1241
|
return false;
|
|
1211
|
-
if (!(this.
|
|
1242
|
+
if (!(this.m2q_1 === other.m2q_1))
|
|
1212
1243
|
return false;
|
|
1213
|
-
if (!this.
|
|
1244
|
+
if (!this.n2q_1.equals(other.n2q_1))
|
|
1214
1245
|
return false;
|
|
1215
1246
|
return true;
|
|
1216
1247
|
};
|
|
@@ -1223,50 +1254,50 @@
|
|
|
1223
1254
|
function $serializer_3() {
|
|
1224
1255
|
$serializer_instance_3 = this;
|
|
1225
1256
|
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.
|
|
1257
|
+
tmp0_serialDesc.uy('tag', false);
|
|
1258
|
+
this.o2q_1 = tmp0_serialDesc;
|
|
1259
|
+
}
|
|
1260
|
+
protoOf($serializer_3).p2q = function (encoder, value) {
|
|
1261
|
+
var tmp0_desc = this.o2q_1;
|
|
1262
|
+
var tmp1_output = encoder.lr(tmp0_desc);
|
|
1263
|
+
tmp1_output.zs(tmp0_desc, 0, value.q2q_1);
|
|
1264
|
+
tmp1_output.mr(tmp0_desc);
|
|
1234
1265
|
};
|
|
1235
|
-
protoOf($serializer_3).
|
|
1236
|
-
return this.
|
|
1266
|
+
protoOf($serializer_3).po = function (encoder, value) {
|
|
1267
|
+
return this.p2q(encoder, value instanceof TagData ? value : THROW_CCE());
|
|
1237
1268
|
};
|
|
1238
|
-
protoOf($serializer_3).
|
|
1239
|
-
var tmp0_desc = this.
|
|
1269
|
+
protoOf($serializer_3).qo = function (decoder) {
|
|
1270
|
+
var tmp0_desc = this.o2q_1;
|
|
1240
1271
|
var tmp1_flag = true;
|
|
1241
1272
|
var tmp2_index = 0;
|
|
1242
1273
|
var tmp3_bitMask0 = 0;
|
|
1243
1274
|
var tmp4_local0 = null;
|
|
1244
|
-
var tmp5_input = decoder.
|
|
1245
|
-
if (tmp5_input.
|
|
1246
|
-
tmp4_local0 = tmp5_input.
|
|
1275
|
+
var tmp5_input = decoder.lr(tmp0_desc);
|
|
1276
|
+
if (tmp5_input.bs()) {
|
|
1277
|
+
tmp4_local0 = tmp5_input.vr(tmp0_desc, 0);
|
|
1247
1278
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1248
1279
|
} else
|
|
1249
1280
|
while (tmp1_flag) {
|
|
1250
|
-
tmp2_index = tmp5_input.
|
|
1281
|
+
tmp2_index = tmp5_input.cs(tmp0_desc);
|
|
1251
1282
|
switch (tmp2_index) {
|
|
1252
1283
|
case -1:
|
|
1253
1284
|
tmp1_flag = false;
|
|
1254
1285
|
break;
|
|
1255
1286
|
case 0:
|
|
1256
|
-
tmp4_local0 = tmp5_input.
|
|
1287
|
+
tmp4_local0 = tmp5_input.vr(tmp0_desc, 0);
|
|
1257
1288
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1258
1289
|
break;
|
|
1259
1290
|
default:
|
|
1260
1291
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1261
1292
|
}
|
|
1262
1293
|
}
|
|
1263
|
-
tmp5_input.
|
|
1294
|
+
tmp5_input.mr(tmp0_desc);
|
|
1264
1295
|
return TagData_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
1265
1296
|
};
|
|
1266
|
-
protoOf($serializer_3).
|
|
1267
|
-
return this.
|
|
1297
|
+
protoOf($serializer_3).oo = function () {
|
|
1298
|
+
return this.o2q_1;
|
|
1268
1299
|
};
|
|
1269
|
-
protoOf($serializer_3).
|
|
1300
|
+
protoOf($serializer_3).wy = function () {
|
|
1270
1301
|
// Inline function 'kotlin.arrayOf' call
|
|
1271
1302
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1272
1303
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1280,40 +1311,40 @@
|
|
|
1280
1311
|
}
|
|
1281
1312
|
function TagData_init_$Init$(seen0, tag, serializationConstructorMarker, $this) {
|
|
1282
1313
|
if (!(1 === (1 & seen0))) {
|
|
1283
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_3().
|
|
1314
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_3().o2q_1);
|
|
1284
1315
|
}
|
|
1285
|
-
$this.
|
|
1316
|
+
$this.q2q_1 = tag;
|
|
1286
1317
|
return $this;
|
|
1287
1318
|
}
|
|
1288
1319
|
function TagData_init_$Create$(seen0, tag, serializationConstructorMarker) {
|
|
1289
1320
|
return TagData_init_$Init$(seen0, tag, serializationConstructorMarker, objectCreate(protoOf(TagData)));
|
|
1290
1321
|
}
|
|
1291
1322
|
function TagData(tag) {
|
|
1292
|
-
this.
|
|
1323
|
+
this.q2q_1 = tag;
|
|
1293
1324
|
}
|
|
1294
1325
|
protoOf(TagData).toString = function () {
|
|
1295
|
-
return 'TagData(tag=' + this.
|
|
1326
|
+
return 'TagData(tag=' + this.q2q_1 + ')';
|
|
1296
1327
|
};
|
|
1297
1328
|
protoOf(TagData).hashCode = function () {
|
|
1298
|
-
return getStringHashCode(this.
|
|
1329
|
+
return getStringHashCode(this.q2q_1);
|
|
1299
1330
|
};
|
|
1300
1331
|
protoOf(TagData).equals = function (other) {
|
|
1301
1332
|
if (this === other)
|
|
1302
1333
|
return true;
|
|
1303
1334
|
if (!(other instanceof TagData))
|
|
1304
1335
|
return false;
|
|
1305
|
-
if (!(this.
|
|
1336
|
+
if (!(this.q2q_1 === other.q2q_1))
|
|
1306
1337
|
return false;
|
|
1307
1338
|
return true;
|
|
1308
1339
|
};
|
|
1309
1340
|
function versionSuccessResponse(data) {
|
|
1310
|
-
return Default_getInstance().
|
|
1341
|
+
return Default_getInstance().p2a(Companion_instance_2.a2d(), new VersionSuccessResponse('success', data));
|
|
1311
1342
|
}
|
|
1312
1343
|
function tagSuccessResponse(data) {
|
|
1313
|
-
return Default_getInstance().
|
|
1344
|
+
return Default_getInstance().p2a(Companion_instance_5.a2d(), new TagSuccessResponse('success', data));
|
|
1314
1345
|
}
|
|
1315
1346
|
function errorResponse(message, code) {
|
|
1316
|
-
return Default_getInstance().
|
|
1347
|
+
return Default_getInstance().p2a(Companion_instance_4.a2d(), new ErrorResponse('error', message, code));
|
|
1317
1348
|
}
|
|
1318
1349
|
function main_0(args) {
|
|
1319
1350
|
return main(cli(), platformArgCorrection(args));
|
|
@@ -1326,11 +1357,11 @@
|
|
|
1326
1357
|
}
|
|
1327
1358
|
function _get_gitRepoArgument__zxde8_0($this) {
|
|
1328
1359
|
var tmp = KProperty1;
|
|
1329
|
-
return $this.
|
|
1360
|
+
return $this.g2r_1.u1m($this, getPropertyCallableRef('gitRepoArgument', 1, tmp, Tag$_get_gitRepoArgument_$ref_dketaj_0(), null));
|
|
1330
1361
|
}
|
|
1331
1362
|
function _get_gitRepoOption__rk7ta0_0($this) {
|
|
1332
1363
|
var tmp = KProperty1;
|
|
1333
|
-
return $this.
|
|
1364
|
+
return $this.h2r_1.u1m($this, getPropertyCallableRef('gitRepoOption', 1, tmp, Tag$_get_gitRepoOption_$ref_10iywz_0(), null));
|
|
1334
1365
|
}
|
|
1335
1366
|
function _get_workingDirectory__eyfbj_0($this) {
|
|
1336
1367
|
var tmp0_elvis_lhs = _get_gitRepoArgument__zxde8_0($this);
|
|
@@ -1345,30 +1376,38 @@
|
|
|
1345
1376
|
}
|
|
1346
1377
|
function _get_releaseBranch__pqrgbs_0($this) {
|
|
1347
1378
|
var tmp = KProperty1;
|
|
1348
|
-
return $this.
|
|
1379
|
+
return $this.i2r_1.u1m($this, getPropertyCallableRef('releaseBranch', 1, tmp, Tag$_get_releaseBranch_$ref_rq8rmb_0(), null));
|
|
1349
1380
|
}
|
|
1350
1381
|
function _get_version__2bx7w9($this) {
|
|
1351
1382
|
var tmp = KProperty1;
|
|
1352
|
-
return $this.
|
|
1383
|
+
return $this.j2r_1.u1m($this, getPropertyCallableRef('version', 1, tmp, Tag$_get_version_$ref_p7wb9e_0(), null));
|
|
1353
1384
|
}
|
|
1354
1385
|
function _get_userName__tupjmd($this) {
|
|
1355
1386
|
var tmp = KProperty1;
|
|
1356
|
-
return $this.
|
|
1387
|
+
return $this.k2r_1.u1m($this, getPropertyCallableRef('userName', 1, tmp, Tag$_get_userName_$ref_kslo5u_0(), null));
|
|
1357
1388
|
}
|
|
1358
1389
|
function _get_userEmail__21hfkw($this) {
|
|
1359
1390
|
var tmp = KProperty1;
|
|
1360
|
-
return $this.
|
|
1391
|
+
return $this.l2r_1.u1m($this, getPropertyCallableRef('userEmail', 1, tmp, Tag$_get_userEmail_$ref_vl09cr_0(), null));
|
|
1392
|
+
}
|
|
1393
|
+
function _get_allowDetachedHead__iyebhm_0($this) {
|
|
1394
|
+
var tmp = KProperty1;
|
|
1395
|
+
return $this.m2r_1.u1m($this, getPropertyCallableRef('allowDetachedHead', 1, tmp, Tag$_get_allowDetachedHead_$ref_qujqxn_0(), null));
|
|
1396
|
+
}
|
|
1397
|
+
function _get_dryRun__18z7px($this) {
|
|
1398
|
+
var tmp = KProperty1;
|
|
1399
|
+
return $this.n2r_1.u1m($this, getPropertyCallableRef('dryRun', 1, tmp, Tag$_get_dryRun_$ref_agy9vo_0(), null));
|
|
1361
1400
|
}
|
|
1362
1401
|
function _get_warningsAsErrors__7mpwfd($this) {
|
|
1363
1402
|
var tmp = KProperty1;
|
|
1364
|
-
return $this.
|
|
1403
|
+
return $this.o2r_1.u1m($this, getPropertyCallableRef('warningsAsErrors', 1, tmp, Tag$_get_warningsAsErrors_$ref_gj8a6o_0(), null));
|
|
1365
1404
|
}
|
|
1366
1405
|
function _get_format__qlarck_0($this) {
|
|
1367
1406
|
var tmp = KProperty1;
|
|
1368
|
-
return $this.
|
|
1407
|
+
return $this.p2r_1.u1m($this, getPropertyCallableRef('format', 1, tmp, Tag$_get_format_$ref_i96vgt_0(), null));
|
|
1369
1408
|
}
|
|
1370
1409
|
function Tag$lambda($this$context) {
|
|
1371
|
-
$this$context.
|
|
1410
|
+
$this$context.a1d([new ConfigFileSource($this$context.w1c_1)]);
|
|
1372
1411
|
return Unit_instance;
|
|
1373
1412
|
}
|
|
1374
1413
|
function Tag$_get_gitRepoArgument_$ref_dketaj() {
|
|
@@ -1431,6 +1470,26 @@
|
|
|
1431
1470
|
return _get_userEmail__21hfkw(p0);
|
|
1432
1471
|
};
|
|
1433
1472
|
}
|
|
1473
|
+
function Tag$_get_allowDetachedHead_$ref_qujqxn() {
|
|
1474
|
+
return function (p0) {
|
|
1475
|
+
return _get_allowDetachedHead__iyebhm_0(p0);
|
|
1476
|
+
};
|
|
1477
|
+
}
|
|
1478
|
+
function Tag$_get_allowDetachedHead_$ref_qujqxn_0() {
|
|
1479
|
+
return function (p0) {
|
|
1480
|
+
return _get_allowDetachedHead__iyebhm_0(p0);
|
|
1481
|
+
};
|
|
1482
|
+
}
|
|
1483
|
+
function Tag$_get_dryRun_$ref_agy9vo() {
|
|
1484
|
+
return function (p0) {
|
|
1485
|
+
return _get_dryRun__18z7px(p0);
|
|
1486
|
+
};
|
|
1487
|
+
}
|
|
1488
|
+
function Tag$_get_dryRun_$ref_agy9vo_0() {
|
|
1489
|
+
return function (p0) {
|
|
1490
|
+
return _get_dryRun__18z7px(p0);
|
|
1491
|
+
};
|
|
1492
|
+
}
|
|
1434
1493
|
function Tag$_get_warningsAsErrors_$ref_gj8a6o() {
|
|
1435
1494
|
return function (p0) {
|
|
1436
1495
|
return _get_warningsAsErrors__7mpwfd(p0);
|
|
@@ -1457,32 +1516,40 @@
|
|
|
1457
1516
|
var tmp = this;
|
|
1458
1517
|
var tmp_0 = optional(argument(this, 'git-repo'));
|
|
1459
1518
|
var tmp_1 = KProperty1;
|
|
1460
|
-
tmp.
|
|
1519
|
+
tmp.g2r_1 = tmp_0.a1m(this, getPropertyCallableRef('gitRepoArgument', 1, tmp_1, Tag$_get_gitRepoArgument_$ref_dketaj(), null));
|
|
1461
1520
|
var tmp_2 = this;
|
|
1462
1521
|
var tmp_3 = option(this, ['--git-repo'], VOID, VOID, VOID, 'PWD');
|
|
1463
1522
|
var tmp_4 = KProperty1;
|
|
1464
|
-
tmp_2.
|
|
1523
|
+
tmp_2.h2r_1 = tmp_3.e1n(this, getPropertyCallableRef('gitRepoOption', 1, tmp_4, Tag$_get_gitRepoOption_$ref_10iywz(), null));
|
|
1465
1524
|
var tmp_5 = this;
|
|
1466
1525
|
var tmp_6 = required(option(this, []));
|
|
1467
1526
|
var tmp_7 = KProperty1;
|
|
1468
|
-
tmp_5.
|
|
1527
|
+
tmp_5.i2r_1 = tmp_6.e1n(this, getPropertyCallableRef('releaseBranch', 1, tmp_7, Tag$_get_releaseBranch_$ref_rq8rmb(), null));
|
|
1469
1528
|
var tmp_8 = this;
|
|
1470
|
-
var tmp_9 = required(option(this, []));
|
|
1529
|
+
var tmp_9 = required(option(this, ['--version'], 'Version to tag (required)'));
|
|
1471
1530
|
var tmp_10 = KProperty1;
|
|
1472
|
-
tmp_8.
|
|
1531
|
+
tmp_8.j2r_1 = tmp_9.e1n(this, getPropertyCallableRef('version', 1, tmp_10, Tag$_get_version_$ref_p7wb9e(), null));
|
|
1473
1532
|
var tmp_11 = this;
|
|
1474
1533
|
var tmp_12 = option(this, []);
|
|
1475
1534
|
var tmp_13 = KProperty1;
|
|
1476
|
-
tmp_11.
|
|
1535
|
+
tmp_11.k2r_1 = tmp_12.e1n(this, getPropertyCallableRef('userName', 1, tmp_13, Tag$_get_userName_$ref_kslo5u(), null));
|
|
1477
1536
|
var tmp_14 = this;
|
|
1478
1537
|
var tmp_15 = option(this, []);
|
|
1479
1538
|
var tmp_16 = KProperty1;
|
|
1480
|
-
tmp_14.
|
|
1539
|
+
tmp_14.l2r_1 = tmp_15.e1n(this, getPropertyCallableRef('userEmail', 1, tmp_16, Tag$_get_userEmail_$ref_vl09cr(), null));
|
|
1481
1540
|
var tmp_17 = this;
|
|
1482
|
-
var tmp_18 = default_0(boolean(option(this, [])), false);
|
|
1541
|
+
var tmp_18 = default_0(boolean(option(this, ['--allow-detached-head'])), false);
|
|
1483
1542
|
var tmp_19 = KProperty1;
|
|
1484
|
-
tmp_17.
|
|
1543
|
+
tmp_17.m2r_1 = tmp_18.e1n(this, getPropertyCallableRef('allowDetachedHead', 1, tmp_19, Tag$_get_allowDetachedHead_$ref_qujqxn(), null));
|
|
1485
1544
|
var tmp_20 = this;
|
|
1545
|
+
var tmp_21 = default_0(boolean(option(this, ['--dry-run'])), false);
|
|
1546
|
+
var tmp_22 = KProperty1;
|
|
1547
|
+
tmp_20.n2r_1 = tmp_21.e1n(this, getPropertyCallableRef('dryRun', 1, tmp_22, Tag$_get_dryRun_$ref_agy9vo(), null));
|
|
1548
|
+
var tmp_23 = this;
|
|
1549
|
+
var tmp_24 = default_0(boolean(option(this, [])), false);
|
|
1550
|
+
var tmp_25 = KProperty1;
|
|
1551
|
+
tmp_23.o2r_1 = tmp_24.e1n(this, getPropertyCallableRef('warningsAsErrors', 1, tmp_25, Tag$_get_warningsAsErrors_$ref_gj8a6o(), null));
|
|
1552
|
+
var tmp_26 = this;
|
|
1486
1553
|
// Inline function 'com.github.ajalt.clikt.parameters.types.enum' call
|
|
1487
1554
|
var this_0 = option(this, ['--format'], 'Output format: text (default) or json');
|
|
1488
1555
|
// Inline function 'kotlin.enumValues' call
|
|
@@ -1502,57 +1569,66 @@
|
|
|
1502
1569
|
destination.p2(tmp$ret$4, element);
|
|
1503
1570
|
}
|
|
1504
1571
|
var tmp$ret$0 = choice(this_0, destination, VOID, true);
|
|
1505
|
-
var
|
|
1506
|
-
var
|
|
1507
|
-
|
|
1508
|
-
}
|
|
1509
|
-
protoOf(Tag).
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
case 0:
|
|
1518
|
-
this.e1c('Success!');
|
|
1519
|
-
break;
|
|
1520
|
-
default:
|
|
1521
|
-
noWhenBranchMatchedException();
|
|
1522
|
-
break;
|
|
1523
|
-
}
|
|
1572
|
+
var tmp_27 = default_0(tmp$ret$0, OutputFormat_TEXT_getInstance());
|
|
1573
|
+
var tmp_28 = KProperty1;
|
|
1574
|
+
tmp_26.p2r_1 = tmp_27.e1n(this, getPropertyCallableRef('format', 1, tmp_28, Tag$_get_format_$ref_i96vgt(), null));
|
|
1575
|
+
}
|
|
1576
|
+
protoOf(Tag).t1d = function () {
|
|
1577
|
+
var gitAdapter = new GitAdapter(_get_workingDirectory__eyfbj_0(this));
|
|
1578
|
+
if (_get_dryRun__18z7px(this)) {
|
|
1579
|
+
var headCommit = gitAdapter.kl();
|
|
1580
|
+
var headBranch = gitAdapter.ql().vl_1;
|
|
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)');
|
|
1524
1584
|
} else {
|
|
1525
|
-
|
|
1585
|
+
// Inline function 'kotlin.let' call
|
|
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));
|
|
1587
|
+
if (equals(it, Success_getInstance())) {
|
|
1526
1588
|
switch (_get_format__qlarck_0(this).y2_1) {
|
|
1527
1589
|
case 1:
|
|
1528
|
-
this.
|
|
1529
|
-
|
|
1530
|
-
throw new CliktError('', VOID, tmp3_statusCode, false);
|
|
1590
|
+
this.g1c(tagSuccessResponse(new TagData(_get_version__2bx7w9(this))));
|
|
1591
|
+
break;
|
|
1531
1592
|
case 0:
|
|
1532
|
-
|
|
1533
|
-
throw new CliktError(it.co_1);
|
|
1534
|
-
} else {
|
|
1535
|
-
this.e1c(it.co_1, VOID, true);
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1593
|
+
this.g1c('Success!');
|
|
1538
1594
|
break;
|
|
1539
1595
|
default:
|
|
1540
1596
|
noWhenBranchMatchedException();
|
|
1541
1597
|
break;
|
|
1542
1598
|
}
|
|
1543
1599
|
} else {
|
|
1544
|
-
|
|
1600
|
+
if (it instanceof Error_0) {
|
|
1601
|
+
switch (_get_format__qlarck_0(this).y2_1) {
|
|
1602
|
+
case 1:
|
|
1603
|
+
this.g1c(errorResponse(it.do_1, 'TAG_ERROR'));
|
|
1604
|
+
var tmp3_statusCode = _get_warningsAsErrors__7mpwfd(this) ? 1 : 0;
|
|
1605
|
+
throw new CliktError('', VOID, tmp3_statusCode, false);
|
|
1606
|
+
case 0:
|
|
1607
|
+
if (_get_warningsAsErrors__7mpwfd(this)) {
|
|
1608
|
+
throw new CliktError(it.do_1);
|
|
1609
|
+
} else {
|
|
1610
|
+
this.g1c(it.do_1, VOID, true);
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
break;
|
|
1614
|
+
default:
|
|
1615
|
+
noWhenBranchMatchedException();
|
|
1616
|
+
break;
|
|
1617
|
+
}
|
|
1618
|
+
} else {
|
|
1619
|
+
noWhenBranchMatchedException();
|
|
1620
|
+
}
|
|
1545
1621
|
}
|
|
1546
1622
|
}
|
|
1547
1623
|
};
|
|
1548
1624
|
function _get_quiet__c6dzoj($this) {
|
|
1549
1625
|
var tmp = KProperty1;
|
|
1550
|
-
return $this.
|
|
1626
|
+
return $this.f2s_1.u1m($this, getPropertyCallableRef('quiet', 1, tmp, Tagger$_get_quiet_$ref_s522ri_0(), null));
|
|
1551
1627
|
}
|
|
1552
1628
|
function Tagger$lambda($version, $this) {
|
|
1553
1629
|
return function ($this$eagerOption) {
|
|
1554
1630
|
var it = $version;
|
|
1555
|
-
var tmp$ret$0 = $this.
|
|
1631
|
+
var tmp$ret$0 = $this.z18_1 + ' version ' + it;
|
|
1556
1632
|
throw new PrintMessage(tmp$ret$0);
|
|
1557
1633
|
};
|
|
1558
1634
|
}
|
|
@@ -1569,29 +1645,29 @@
|
|
|
1569
1645
|
function Tagger() {
|
|
1570
1646
|
CliktCommand.call(this);
|
|
1571
1647
|
// Inline function 'com.github.ajalt.clikt.parameters.options.versionOption' call
|
|
1572
|
-
var version = Versions_instance.
|
|
1648
|
+
var version = Versions_instance.a2o_1;
|
|
1573
1649
|
var help = 'Show the version and exit';
|
|
1574
1650
|
var names = setOf('--version');
|
|
1575
1651
|
eagerOption(this, names, help, VOID, VOID, VOID, Tagger$lambda(version, this));
|
|
1576
1652
|
var tmp = this;
|
|
1577
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);
|
|
1578
1654
|
var tmp_1 = KProperty1;
|
|
1579
|
-
tmp.
|
|
1655
|
+
tmp.f2s_1 = tmp_0.e1n(this, getPropertyCallableRef('quiet', 1, tmp_1, Tagger$_get_quiet_$ref_s522ri(), null));
|
|
1580
1656
|
}
|
|
1581
|
-
protoOf(Tagger).
|
|
1657
|
+
protoOf(Tagger).y1a = function (context) {
|
|
1582
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";
|
|
1583
1659
|
};
|
|
1584
|
-
protoOf(Tagger).
|
|
1585
|
-
if (!_get_quiet__c6dzoj(this) && this.
|
|
1586
|
-
this.
|
|
1660
|
+
protoOf(Tagger).t1d = function () {
|
|
1661
|
+
if (!_get_quiet__c6dzoj(this) && this.o19().b1d() == null) {
|
|
1662
|
+
this.g1c('Welcome to Tagger CLI.');
|
|
1587
1663
|
}
|
|
1588
1664
|
};
|
|
1589
1665
|
//region block: post-declaration
|
|
1590
|
-
protoOf($serializer).
|
|
1591
|
-
protoOf($serializer_0).
|
|
1592
|
-
protoOf($serializer_1).
|
|
1593
|
-
protoOf($serializer_2).
|
|
1594
|
-
protoOf($serializer_3).
|
|
1666
|
+
protoOf($serializer).xy = typeParametersSerializers;
|
|
1667
|
+
protoOf($serializer_0).xy = typeParametersSerializers;
|
|
1668
|
+
protoOf($serializer_1).xy = typeParametersSerializers;
|
|
1669
|
+
protoOf($serializer_2).xy = typeParametersSerializers;
|
|
1670
|
+
protoOf($serializer_3).xy = typeParametersSerializers;
|
|
1595
1671
|
//endregion
|
|
1596
1672
|
//region block: init
|
|
1597
1673
|
Versions_instance = new Versions();
|