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